To enable CDP on a standard virtual switch installed on an ESX Server:
-
Log in to the Service Console using SSH, remote console, or physical console as root. Verify the current CDP setting for the desired virtual switch. In this example, vSwitch1:
[root@server root]# esxcfg-vswitch -b vSwitch1 down
-
Set the CDP status for a given virtual switch. The possible values are:
-
down
-
listen
-
advertise
-
both
[root@server root]# esxcfg-vswitch -B both vSwitch1
-
-
-
Verify the new setting:
[root@server root]# esxcfg-vswitch -b vSwitch1 both