You can set the maximum transmission unit (MTU) and CDP status for a virtual switch. The CDP status shows which Cisco switch port is connected to which uplink.
Specify one of the options listed in Connection Options for vCLI Host Management Commands in place of <conn_options>
.
- Set the MTU for a vSwitch.
esxcli <conn_options> network vswitch standard set --mtu=9000 --vswitch-name=vSwitch1
The MTU is the size, in bytes, of the largest protocol data unit the switch can process. When you set this option, it affects all uplinks assigned to the virtual switch. - Set the CDP value for a vSwitch. You can set status to
down
,listen
,advertise
, orboth
.esxcli <conn_options> network vswitch standard set --cdp-status=listen --vswitch-name=vSwitch1