To enable CDP on a standard virtual switch installed on an ESX Server:

  1. 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
    
  2. 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
        
  3. Verify the new setting:

    [root@server root]# esxcfg-vswitch -b vSwitch1
    both