Enabling CDP Mode on a Port

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.

About this task

Do not enable CDP mode if you plan to use the port with an ONA or Fabric Attach.

Procedure

  1. Enter GigabitEthernet Interface Configuration mode:

    enable

    configure terminal

    interface GigabitEthernet {slot/port[/sub-port][-slot/port[/sub-port]][,...]}

    Note

    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.

  2. To enable CDP, enter the following command:

    lldp cdp enable

  3. Optional: To disable CDP, enter the following command:

    no lldp cdp enable

Example

To enable CDP on a port:
Switch:1>enable
Switch:1#configure terminal
Switch:1(config)#interface GigabitEthernet 4/4
Switch:1(config-if)#lldp cdp enable
Note

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 4/4
Switch:1(config-if)#no lldp cdp enable

To shutdown LLDP or CDP on a port:

Switch:1>enable
Switch:1#configure terminal
Switch:1(config)#interface GigabitEthernet 4/4
Switch:1>(config-if)#no lldp status