6.0
Table Of Contents
- Command-Line Management in vSphere 5 and vSphere 6 for Service Console Users
--link | -L
<physical_nic>
<vswitch_name>
network vswitch standard uplink add
--uplink --vswitch
Addanuplinkadapter(physicalNIC)to
avirtualswitch.Runningthecommand
withthisoptionattachesanewunused
physicalnetworkadaptertoavirtual
switch.
--list | -l network vswitch standard list Listallvirtualswitchesandtheirport
groups.
--mtu | -m
<vswitch_name>
network vswitch standard set
--mtu=<long>
SettheMTU(maximumtransmission
unit)ofthevirtualswitch.Thisoption
affectsallphysicalNICsassignedtothe
virtualswitch.
--pg | -p
<port_group>
network vswitch standard portgroup set
--vlan-id=<long>
Providethenameoftheportgroupfor
the--vlanoption.SpecifyALLtoset
VLANIDsonallportgroupsofavirtual
switch.
--set-cdp | -B
<vswitch_name>
[down | listen |
advertise | both]
network vswitch standard set
--cpd-status=<string>
SettheCDPstatusforagivenvirtual
switch(validforvSphere4.0
andlater).
Toset,specifydown,listen,advertise,
orboth.
--unlink | -U
<physical_nic>
<vswitch_name>
network vswitch standard uplink remove
--uplink=<uplink> --vswitch=<vswitch>
Removeanuplinkadapterfromavirtual
switch.Anuplinkadaptercorresponds
toaphysicalEthernetadaptertowhich
thevirtualswitchisconnected.Ifyou
removethelastuplinkadapter,youlose
physicalnetworkconnectivityfor
that
switch.
--vlan | -v --pg
<port_group>
network vswitch standard portgroup set
--portgroup-name=<str>
--vlan-id=<long>
SettheVLANIDforaspecificportgroup
ofavirtualswitch.Settingtheoptionto0
disablestheVLANforthisportgroup.If
youspecifythisoption,youmustalso
specifythe--portgroupoption.
-X --set-maxactive network vswitch standard portgroup
policy failover set
--active-uplinks=vmnic1,vmnic6,vminic7
Explicitlyspecifythemaximumnumber
ofactiveuplinks.
At
anytime,thereisoneportgroupNIC
array,andacorrespondingsetofactive
uplinks.Forexample,assumethe
portgroupnicarrayis[vmnic1,vmnic0,
vmnic3,vmnic5,vmnic6,vmnic7]and
active-uplinksissettothreeuplinks
(vmnic1,vmnic0,vmnic3),andtherest
arestandby
uplinks.Ifyousettheactive
uplinkswithnewset[vmnic3,vmnic5],
thoseuplinksoverridetheoldset.The
NICarraychangesto[vmnic3,vmnic5,
vmnic6,vmnic7]andmax-active
becomes2.
Table 24. esxcfg-vswitch Replacement Commands (Continued)
esxcfg-vswitch Option ESXCLI Command Description










