Monday, July 16, 2012

Forcing a link state up or down for a vmnic interface on ESXi 5.x

To change the link state of the physical interface from the Management Network vmkernel log in to the ESXi 5.0 host using Tech Support Mode with root account privilege.
Change the link status of the uplink vmnic with one of these commands:
esxcli network nic down -n vmnicX
esxcli network nic up -n vmnicX
Where X is the vmnic number (for example,vmnic0)

1 comment:

  1. Instead of "esxcli" you can also use "localcli", in case of "esxcli" reports "Connect to localhost failed: Connection failure".

    esxcli -> Remote
    localcli -> Local

    I use localcli from ESXShell over the KVM Interface. :-)