Search code examples
network-programmingvirtual-machinedisconnect

Is it correct way that "ifconfig eth0 down" or "ip link set eth0 down" to simulate unplugged network cable


I am working on to simulate network connection fail scenario between two virtual machines. Is it correct way that "ifconfig eth0 down" or "ip link set eth0 down" to simulate unplugged network cable. Is there alternative without down interface.


Solution

  • yes it can to simulate unplugged network cable