I have an ESXi 5.1 enviornment with two uplinks (vmnic0 and vmnic1), both configured to vDistributed Switch. I am running some tests to validate the network and want to simulate one of the network failure, rather than pulling out the cable.
This should be possible thru esxcli but not sure about the steps. Can someone help me know the steps?
Would esxcli network ip interface list & esxcli network ip interface set --enabled false/true be of use?
Although it's possible to disable an uplink on the ESXi host, I'd suggest you rather do this on the physical switch (bringing the interface down) to see whether the ESXi host behaves as expected to an "external" failure.
I agree that the test A.P. suggest is more fair, since we can not really know what the vmkernel does or does not when interfaces are taken down logically from inside the host.
A "shutdown" (Cisco) or "disable" (HP) from the switch CLI should be a great way to simulate an unexpected linkloss from the ESXi point of view.