Friday, September 20, 2013

vSphere networking using console commands

To list network adapters run this:

esxcfg-nics -l

Output will be something like this:

Name    PCI           Driver      Link Speed     Duplex MAC Address       MTU    Description
vmnic0  0000:01:00.00 igb         Down 0Mbps     Half   bc:30:5b:ee:b3:c8 1500   Intel Corporation I350 Gigabit Network Connection
vmnic1  0000:01:00.01 igb         Down 0Mbps     Half   bc:30:5b:ee:b3:c9 1500   Intel Corporation I350 Gigabit Network Connection
vmnic2  0000:01:00.02 igb         Down 0Mbps     Half   bc:30:5b:ee:b3:ca 1500   Intel Corporation I350 Gigabit Network Connection
vmnic3  0000:01:00.03 igb         Down 0Mbps     Half   bc:30:5b:ee:b3:cb 1500   Intel Corporation I350 Gigabit Network Connection

To view driver and firmware versions for a particular NIC run this:

ethtool -i vmnic4

Output will be similar to this:

driver: ixgbe
version: 3.14.3iov
firmware-version: 0x8000042f
bus-info: 0000:03:00.0