6.5

Table Of Contents
n
Disable VLAN for port group g42.
vicfg-vswitch <conn_options> --vlan 0 --pg g42 vSwitch2
Run vicfg-vswitch -l to retrieve information about VLAN IDs currently associated with the virtual
switches in the network.
Managing Uplink Adapters
You can manage uplink adapters, which represent the physical NICs that connect the ESXi host to the
network by using the esxcli network nic or the vicfg-nics command. You can also use esxcli network
vswitch and esxcfg-vswitch to link and unlink the uplink.
You can use vicfg-nics to list information and to specify speed and duplex seing for the uplink.
You can use esxcli network nic to list all uplinks, to list information, to set aributes, and to bring a
specied uplink down or up.
Manage Uplink Adapters with ESXCLI
you can use to manage uplink adapters.
The following example workow lists all uplink adapters, lists properties for one uplink adapter, changes
the uplink's speed and duplex seings, and brings the uplink down and back up. Specify one of the options
listed in “Connection Options for vCLI Host Management Commands,” on page 19 in place of
<conn_options>.
Procedure
1 List all uplinks and information about each device.
esxcli <conn_options> network nic list
You can narrow down the information displayed by using esxcli network nic get --nic-name=<nic>.
2 (Optional) Bring down one of the uplink adapters.
esxcli <conn_options> network nic down --nic-name=vmnic0
3 Change uplink adapter seings.
esxcli <conn_options> network nic set <option>
You must specify one of the following options.
Option Description
-a|--auto
Sets the speed and duplex seings to autonegotiate.
-D|--duplex=<str> Duplex to set this NIC to. Acceptable values are full and half.
-P | --phy-address
Sets the MAC address of the device
-l|--message-level=<long>
Sets the driver message level. Message levels and what they imply dier
per driver.
-n|--nic-name=<str> Name of the NIC to congured. Must be one of the cards listed in the nic
list command (required).
-p|--port=<str>
Selects the device port. The following device ports are available.
n
aui
n
bnc
n
fibre
n
mii
n
tp
-S|--speed=<long>
Speed to set this NIC to. Acceptable values are 10, 100, 1000, and 10000.
vSphere Command-Line Interface Concepts and Examples
142 VMware, Inc.