To configure the switch as CDP-compatible, you must enable the Industry Standard Discovery Protocol (ISDP) on a port, or ports, on the switch. To enable ISDP, you use the lldp cdp command.
If CDP is enabled, the interface accepts only CDP packets. Similarly, if CDP is disabled but LLDP is enabled, the interface accepts only LLDP packets.
To switch a port from CDP mode to LLDP mode, the LLDP status on that port must be txAndrx.
Do not enable CDP mode if you plan to use the port with Fabric Attach.
enable
configure terminal
interface GigabitEthernet {slot/port[/sub-port][-slot/port[/sub-port]][,...]}
Note
If the platform supports channelization and the port is channelized, you must also specify the sub-port in the format slot/port/sub-port.
lldp cdp enable
Enable CDP on a port:
Switch:1>enable Switch:1#configure terminal Switch:1(config)#interface GigabitEthernet 1/4 Switch:1(config-if)#lldp cdp enable
Note
To switch a port from CDP mode to LLDP mode, LLDP status on that port must be txAndrx.
Switch:1>enable Switch:1#configure terminal Switch:1(config)#interface GigabitEthernet 1/4 Switch:1(config-if)#no lldp cdp enable
Shutdown LLDP or CDP on a port:
Switch:1>enable Switch:1#configure terminal Switch:1(config)#interface GigabitEthernet 1/4 Switch:1>(config-if)#no lldp status