今回は、ESXiのコマンド「esxcfg-nics」について記述していく。

まずはヘルプの内容から。

~ # esxcfg-nics --help
esxcfg-nics <options> [nic]
-s|--speed <speed> Set the speed of this NIC to one of 10/100/1000/10000.
Requires a NIC parameter.
-d|--duplex <duplex> Set the duplex of this NIC to one of 'full' or 'half'.
Requires a NIC parameter.
-a|--auto Set speed and duplexity automatically. Requires a NIC parameter.
-l|--list Print the list of NICs and their settings.
-r|--restore Restore the nics configured speed/duplex settings (INTERNAL ONLY)
-h|--help Display this message.
~ #

このコマンド「esxcfg-nics」は、ESXiが認識している物理NICの情報を取得したり、NICの速度を設定したりするコマンドだ。 基本的には、以下のオプションくらいしか使わないと思う。

esxcfg-nics -l

これは、ESXiが認識している物理NICを一覧で取得出来るコマンドだ。実際に実行した結果が以下。

~ # esxcfg-nics -l
Name PCI Driver Link Speed Duplex MAC Address MTU Description
vmnic0 0000:03:00.00 e1000e Up 100Mbps Full 00:15:17:16:ad:92 1500 Intel Corporation 82571EB Gigabit Ethernet Controller
vmnic1 0000:03:00.01 e1000e Down 0Mbps Half 00:15:17:16:ad:93 1500 Intel Corporation 82571EB Gigabit Ethernet Controller

基本的にはこれくらいでしか使わないコマンドだと思う。