
You can also view and change the status using ESXCLI. b|-get-cdp Print the current CDP setting for this switch. To set pass one of "down", "listen", "advertise", "both". The following segment from the help file shows the possible CDP modes that can be set: -B|-set-cdp Set the CDP status for a given virtual switch. Using ‘both’ as the mode in the example above means that CDP on that vSwitch will both listen for and advertise CDP information. To change the mode that CDP is running in you can run: ~ # esxcfg-vswitch vSwitch0 -B both To view the CDP status for a vSwitch you can run: ~ # esxcfg-vswitch vSwitch0 -b
Both – When Both is set as the mode the host both receives/displays CDP data and sends CDP to the physical switch. Therefore this is the opposite of the listen mode. Advertise – In this mode, the host will send CDP information to the physical switch, but will not display any information about the physical switch. Listen – When in listen mode the host will display information about the physical switch it is connect to, but will not send CDP data, so CDP information on the vSwitch will not be available on the physical switch. If it is enabled, it will be running in one of three possible modes: On a standard vSwitch you can view CDP information by clicking on the ‘speech’ icon next to the physical adapters:Ĭonfiguring Cisco Discovery Protocol (CDP) on ESXi HostsĬDP is enabled by default on standard vSwitches, though you can view and configure CDP status using command line tools.ĬDP can be disabled or configured on a per vSwitch basis. Link Layer Discovery Protocol (LLDP) can be used on dvSwitches that are version 5.0 or later. Cisco Discovery Protocol (CDP) can be used on standard and distributed vSwitches which are connected to Cisco network equipment. Both protocols perform similar functions, and the choice between the two generally comes down to which protocol the physical networking equipment supports and is configured to use. CDP stands for Cisco Discovery Protocol, and is Cisco proprietary, whilst LLDP stands for Link Layer Discovery Protocol and is an open standard. Discovery protocols are most commonly used between switches and routers, but can also be configured on an ESXi host.
CDP and LLDP are discovery protocols that allow devices (or hosts in the case of ESXi) to share network information with the networking equipment they are connected to.