esxcliコマンドでやるよ。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
#IPアドレス [root@localhost:~] esxcli network ip interface ipv4 get -i vmk0 Name IPv4 Address IPv4 Netmask IPv4 Broadcast Address Type DHCP DNS ---- ------------ ------------- -------------- ------------ -------- vmk0 192.168.0.40 255.255.255.0 192.168.0.255 STATIC false #ネットワーク情報 [root@localhost:~] esxcli network ip interface list vmk0 Name: vmk0 MAC Address: 00:19:99:b1:a2:ac Enabled: true Portset: vSwitch0 Portgroup: Management Network Netstack Instance: defaultTcpipStack VDS Name: N/A VDS UUID: N/A VDS Port: N/A VDS Connection: -1 Opaque Network ID: N/A Opaque Network Type: N/A External ID: N/A MTU: 1500 TSO MSS: 65535 Port ID: 33554436 #デュプレックス情報 [root@localhost:~] esxcfg-nics -l Name PCI Driver Link Speed Duplex MAC Address MTU Description vmnic0 0000:00:19.0 e1000e Up 1000Mbps Full 00:19:99:b1:a2:ac 1500 Intel Corporation 82579LM Gigabit Network Connection vmnic1 0000:02:00.0 e1000e Down 0Mbps Half 00:19:99:b4:89:25 1500 Intel Corporation 82574L Gigabit Network Connection [root@localhost:~] #DNS情報 [root@localhost:~] esxcli network ip dns server list DNSServers: 192.168.0.1, 2001:268:fd07:4::1 [root@localhost:~] esxcli network ip dns search list DNSSearch Domains: #ルーティング [root@localhost:~] esxcli network ip route ipv4 list Network Netmask Gateway Interface Source ----------- ------------- ----------- --------- ------ default 0.0.0.0 192.168.0.1 vmk0 MANUAL 192.168.0.0 255.255.255.0 0.0.0.0 vmk0 MANUAL |