3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

esxcli 各種確認コマンド

Posted at

インターフェイスの確認

esxcli network ip interface list

[root@vmware:~] esxcli network ip interface list
vmk0
   Name: vmk0
   MAC Address: 00:xx:xx:xx:xx:xx
   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: 33554440

IPアドレス情報(IPv4)

esxcli network ip interface ipv4 get -i インターフェイス名

[root@vmware:~] esxcli network ip interface ipv4 get -i vmk0
Name  IPv4 Address  IPv4 Netmask   IPv4 Broadcast  Address Type  DHCP DNS
----  ------------  -------------  --------------  ------------  --------
vmk0  192.168.1.1  255.255.255.0  192.168.1.255  STATIC           false
1
2
3
4
[root@vmware:~] esxcli network ip interface ipv4 get -i vmk0
Name  IPv4 Address  IPv4 Netmask   IPv4 Broadcast  Address Type  DHCP DNS
----  ------------  -------------  --------------  ------------  --------
vmk0  192.168.1.1  255.255.255.0  192.168.1.255  STATIC           false

IPアドレス情報(IPv6)

esxcli network ip interface ipv6 get -n インターフェイス名

[root@vmware:~] esxcli network ip interface ipv6 get -n vmk0
Name  DHCPv6 Enabled  Router Adv Enabled  DHCP DNS
----  --------------  ------------------  --------
vmk0           false               false     false
1
2
3
4
[root@vmware:~] esxcli network ip interface ipv6 get -n vmk0
Name  DHCPv6 Enabled  Router Adv Enabled  DHCP DNS
----  --------------  ------------------  --------
vmk0           false               false     false

DNS情報

esxcli network ip dns server list

[root@vmware:~] esxcli network ip dns server list
   DNSServers: 192.168.1.2, 192.168.1.3

[root@vmware:~] esxcli network ip dns search list
   DNSSearch Domains: rootlinks.net
1
2
3
4
5
[root@vmware:~] esxcli network ip dns server list
   DNSServers: 192.168.1.2, 192.168.1.3
 
[root@vmware:~] esxcli network ip dns search list
   DNSSearch Domains: rootlinks.net

経路情報(IPv4)

esxcli network ip route ipv4 list

[root@vmware:~] esxcli network ip route ipv4 list
Network       Netmask        Gateway       Interface  Source
------------  -------------  ------------  ---------  ------
default       0.0.0.0        192.168.1.4  vmk0       MANUAL
192.168.1.0  255.255.255.0  0.0.0.0       vmk0       MANUAL
1
2
3
4
5
[root@vmware:~] esxcli network ip route ipv4 list
Network       Netmask        Gateway       Interface  Source
------------  -------------  ------------  ---------  ------
default       0.0.0.0        192.168.1.4  vmk0       MANUAL
192.168.1.0  255.255.255.0  0.0.0.0       vmk0       MANUAL
esxcli network
3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?