Networking and esxcli on esxi command line
~ # esxcli network ip
Usage: esxcli network ip {cmd} [cmd options]
Available Namespaces:
dns Operations pertaining to Domain Name Server configuration.
interface Operations having to do with the creation, management and deletion of VMkernel network interfaces (vmknic).
ipsec Operations on Internet Protocol Security
route Operations pertaining to route configuration
connection List active tcpip connections
neighbor Operations that can be performed on arp tables
# esxcli network ip interface list
vmk0
Name: vmk0
MAC Address: 6c:62:6d:a3:2e:c2
Enabled: true
Portset: vSwitch0
Portgroup: Management Network
VDS Name: N/A
VDS UUID: N/A
VDS Port: N/A
VDS Connection: -1
MTU: 1500
TSO MSS: 65535
Port ID: 33554436
# esxcli network ip interface ipv4 get
Name IPv4 Address IPv4 Netmask IPv4 Broadcast Address Type DHCP DNS
---- -------------- ------------- -------------- ------------ --------
vmk0 172.16.0.10 255.255.255.0 172.16.0.255 STATIC false
~ # esxcli network ip neighbor list
Neighbor Mac Address Vmknic Expiry State
------------------------- ----------------- ------ -------- ---------
172.16.0.2 00:1f:ca:88:96:8c vmk0 1139 sec
fe80::6e62:6dff:fea3:2ec2 6c:62:6d:a3:2e:c2 vmk0 0 sec Reachable
~ # esxcli network ip route ipv4 list
Network Netmask Gateway Interface Source
------------ ------------- ------------ --------- ------
default 0.0.0.0 172.16.200.2 vmk0 MANUAL
172.16.200.0 255.255.255.0 0.0.0.0 vmk0 MANUAL
# esxcfg-route
VMkernel default gateway is 172.16.200.2
To make routing changes on the command line use the esxcli network ip route ipv4 add
command.
https://knowledge.broadcom.com/external/article/324496/link-state-up-or-down-for-a-vmnic-interf.html
https://blog.technodrone.cloud/2011/09/netstat-for-esxi.html
-30--
No comments:
Post a Comment