Cdp-compatible lldp configuration example, Network requirements, Configuration procedure – H3C Technologies H3C S5120 Series Switches User Manual
Page 140

1-16
Number of MED neighbors : 0
Number of CDP neighbors : 0
Number of sent optional TLV : 0
Number of received unknown TLV : 0
As the sample output shows, GigabitEthernet 1/0/2 of Switch A does not connect to any neighboring
devices.
CDP-Compatible LLDP Configuration Example
Network requirements
As shown in
z
GigabitEthernet 1/0/1 and GigabitEthernet 1/0/2 of Switch A are each connected to a Cisco IP
phone.
z
Configure voice VLAN 2 on Switch A. Enable CDP compatibility of LLDP on Switch A to allow the
Cisco IP phones to automatically configure the voice VLAN, thus confining their voice traffic within
the voice VLAN to be isolated from other types of traffic.
Figure 1-5 Network diagram for CDP-compatible LLDP configuration
z
Configuration procedure
1) Configure a voice VLAN on Switch A
# Create VLAN 2.
[SwitchA] vlan 2
[SwitchA-vlan2] quit
# Set the link type of GigabitEthernet 1/0/1 and GigabitEthernet 1/0/2 to trunk and enable voice VLAN
on them.
[SwitchA] interface gigabitethernet 1/0/1
[SwitchA-GigabitEthernet1/0/1] port link-type trunk
[SwitchA-GigabitEthernet1/0/1] voice vlan 2 enable
[SwitchA-GigabitEthernet1/0/1] quit
[SwitchA] interface gigabitethernet 1/0/2
[SwitchA-GigabitEthernet1/0/2] port link-type trunk
[SwitchA-GigabitEthernet1/0/2] voice vlan 2 enable
[SwitchA-GigabitEthernet1/0/2] quit
2) Configure CDP-compatible LLDP on Switch A
# Enable LLDP globally and enable LLDP to be compatible with CDP globally.
[SwitchA] lldp enable
[SwitchA] lldp compliance cdp
# Enable LLDP (you can skip this step because LLDP is enabled on ports by default), configure LLDP to
operate in TxRx mode, and configure CDP-compatible LLDP to operate in TxRx mode on
GigabitEthernet 1/0/1 and GigabitEthernet 1/0/2.