Page 1 of 1

how to simulate link failure?

Posted: 22. Apr 2010, 11:43
by bokica18
Hi,

I'm running Linux guest on Windows XP host and I need to temporarily disable one internal interface on VM, while VM is running. I have to test link failure, so I would need something which will cause the same effect as the cable is unplugged. If I just do "ifconfig eth1 down", ethernet interface is still present.
I searched the forums and tried something like this:
VBoxManger "masterA" ----cableconnected 2 off.
and it didn't worked:

How to properly use this command, cause according to manuales it seems it can resolves my problem?

Thanks in advance,
Bojana

Re: how to simulate link failure?

Posted: 22. Apr 2010, 15:19
by Perryg
VBoxManage controlvm <name|uuid> setlinkstate<1-N> <off|on>

VBoxManage controlvm Ubuntu-10.04 setlinkstate1 off
is the same as pulling the cable on the first adapter.
VBoxManage controlvm Ubuntu-10.04 setlinkstate1 on will plug the cable back in.