일상다반사 로그

VMware - Network Commands 본문

IT/VMWARE

VMware - Network Commands

일상다반사로그 2017. 7. 15. 09:29
반응형

vSwitch

 

List Standard Virtual Switches

# esxcli network vswitch standard list

 

List Distributed Virtual Switches

# esxcli network vswitch dvs vmware list

 

Add/Remove virtual Switch

# esxcli network vswitch standard [ add | remove ]

--vswitch-name <name>

 

List All Physical Network Adapters

# esxcli network nic list

 

Add/Remove Uplink to Virtual Switch

# esxcli network vswitch standard [ add | remove ]

--uplink-name=<vmnic> --vswitch-name <name>

 

Set MTU for Virtual Switch

# esxcli network vswitch standard set --mtu=[900]

--vswitch-name <name>

 

List Network Policy Settings

# esxcli network vswitch standard policy [ failover |

security | shapping ] get

 

Portgroup

 

List Portgroups

# esxcli network vswitch standard portgroup list

 

Add/Remove Portgroup

# esxcli network vswitch standard portgroup [ add | remove ]

--portgroup-name <portgroup> --vswitch-name <name>

 

Set Portgroup VLAN ID

# esxcli network vswitch standard portgroup [ add | remove ]

--portgroup-name <portgroup> --vlan-id=<vlan>

 

VMKernel Interface

 

Add VMKernel Interface

# esxcli network ip interface add --interface-name=<vmk>

--portgroup-name=<portgroup> --mtu=<mtu>

 

Set IP Address for VMkernel Interface

# esxcli network ip interface [ ipv4 | ipv6 ] set

--interface-name=<vmk> --ipv4=<ipaddress>

--netmask=<netmask> --type=[ static | dhcp ]

 

Tag VMkernel Interface Traffic Type

# esxcli network ip interface tag add --interface-

name=vmk1 --tagname=[ Management ] VMotion | faultToler-

anceLogging | vSphereReplication ]

 

List all VMkernel Interfaces

# esxcli network ip interface list

 

Other Network Configurations

 

Add/Remove DNS servers

# esxcli network ip dns server [ add | remove ]

--server=<ipaddress>

 

List DNS Servers

# esxcli network ip dns server list

 

Add/Remove Network Routes

# esxcli network ip route [ ipv4 | ipv6 ] [  add | remove ]

--network=<network/CIDR> --gateway=<gateway>

 

Add/Remove NTP servers(vCLI only)

# vicfg-ntp [ --add | --delete ] <ipaddress>

 

List NTP Servers(vCLI only)

# vicfg-ntp --list

 

Start NTP Service(vCLI only)

# vicfg-ntp --start

 

Network Statistics

 

NIC Statistics

# esxcli network nic list

# esxcli network nic stats get --nic-name=<vmnic>

 

VLAN Statistics

# esxcli network nic vlan stats set --enabled=true --nic-name=<vmnic>

# esxcli network nic vlan stats get --nic-name=<vmnic>

 

VM Port Statistics

# esxcli network vm list

# esxcli network vm port list --world-id=<worldId>

# esxcli network port stats get --portid=<portId>

반응형

'IT > VMWARE' 카테고리의 다른 글

VMware - Virtual Machine Commands  (0) 2017.07.15
VMware esxi Host Commands  (0) 2017.07.11
Comments