User Tools

Site Tools


virtualization:vmware:67:netw_cli_01

This is an old revision of the document!


Managing Networking from ESXy CLI

Vmkernel ip interfaces

esxcli network ip interface list

Remove /add vmk0 interface

esxcli network ip interface remove --interface-name=vmk0
esxcli network ip interface add --interface-name=vmk0 --dvs-name=DVSWITCHNAME --dvport-id=PORT_ID

Switches

esxcli network vswitch standard list

Switch remove / add

esxcli network vswitch standard remove --vswitch-name=vSwitch0
esxcli network vswitch standard add --vswitch-name=sw0

Portgroups

esxcli network vswitch standard portgroup list

Portgroup remove / add

esxcli network vswitch standard portgroup add --portgroup-name=vmn_10 -v=sw0
esxcli network vswitch standard portgroup remove --portgroup-name=vmn_10 -v=sw0

Network Adapters

esxcli network nic list

Configuring vSwitch or vNetwork Distributed Switch from the command line in ESXi/ESX (1008127)

virtualization/vmware/67/netw_cli_01.1571980341.txt.gz · Last modified: 2019/10/25 05:12 by rplecko