Setting Switch
Attributes with vicfg-vswitch
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.
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.vicfg-vswitch <conn_options> -m 9000 vSwitch1 - Set the CDP value for a vSwitch. You can set status todown,listen,advertise, orboth.vicfg-vswitch <conn_options> --set-cdp 'listen'