270
Configuration prerequisites
Before you configure CDP compatibility, complete the following tasks:
• Globally enable LLDP.
• Enable LLDP on the port connecting to a CDP device.
• Configure LLDP to operate in TxRx mode on the port.
Configuration procedure
CDP-compatible LLDP operates in one of the following modes:
• TxRx—CDP packets can be transmitted and received.
• Rx—CDP packets can be received but cannot be transmitted.
• Disable—CDP packets cannot be transmitted or received.
To make CDP-compatible LLDP take effect on a port, follow these steps:
1. Enable CDP-compatible LLDP globally.
2. Configure CDP-compatible LLDP to operate in TxRx mode on the port.
The maximum TTL value that CDP allows is 255 seconds. To make CDP-compatible LLDP work
correctly with CDP devices, configure the LLDP frame transmission interval to be no more than 1/3 of
the TTL value.
To configure LLDP to be compatible with CDP:
Step Command Remarks
1. Enter system view.
system-view
N/A
2. Enable CDP compatibility
globally.
lldp compliance cdp
By default, CDP compatibility is
disabled globally.
3. Enter Layer 2/Layer 3
Ethernet interface view,
management Ethernet
interface view, or Layer
2/Layer 3 aggregate
interface view.
interface
interface-type
interface-number
N/A
4. Configure CDP-compatible
LLDP to operate in TxRx
mode.
lldp compliance admin-status
cdp txrx
By default, CDP-compatible LLDP
operates in
disable
mode.
5. Set the voice VLAN ID
carried in CDP packets.
cdp voice-vlan
vlan-id
By default, no voice VLAN ID is
configured to be carried in CDP
packets.
Configuring LLDP trapping and LLDP-MED
trapping
LLDP trapping or LLDP-MED trapping notifies the network management system of events such as
newly detected neighboring devices and link failures.
To prevent excessive LLDP traps from being sent when the topology is unstable, set a trap
transmission interval for LLDP.
To configure LLDP trapping and LLDP-MED trapping: