As the sample output shows, GigabitEthernet 4/1/2 of Router A does not connect to any neighboring
devices.
CDP-compatible LLDP configuration example
Network requirements
As shown in
GigabitEthernet 4/1/1 and GigabitEthernet 4/1/2 of Router A are each connected to a Cisco IP
•
phone.
Configure voice VLAN 2 on Router A. Enable CDP compatibility of LLDP on Router A to allow the
•
Cisco IP phones to automatically configure the voice VLAN, confining their voice traffic within the
voice VLAN to be isolated from other types of traffic.
Figure 78 Network diagram for CDP-compatible LLDP configuration
Configuration procedure
Configure a voice VLAN on Router A
1.
# Create VLAN 2.
<RouterA> system-view
[RouterA] vlan 2
[RouterA-vlan2] quit
# Set the link type of GigabitEthernet 4/1/1 and GigabitEthernet 4/1/2 to trunk and enable voice VLAN
on them.
[RouterA] interface gigabitethernet 4/1/1
[RouterA-GigabitEthernet4/1/1] port link-type trunk
[RouterA-GigabitEthernet4/1/1] voice vlan 2 enable
[RouterA-GigabitEthernet4/1/1] quit
[RouterA] interface gigabitethernet 4/1/2
[RouterA-GigabitEthernet4/1/2] port link-type trunk
[RouterA-GigabitEthernet4/1/2] voice vlan 2 enable
[RouterA-GigabitEthernet4/1/2] quit
Configure CDP-compatible LLDP on Router A
2.
# Enable LLDP globally and enable LLDP to be compatible with CDP globally.
[RouterA] lldp enable
[RouterA] lldp compliance cdp
# Enable LLDP (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 4/1/1 and
GigabitEthernet 4/1/2.
[RouterA] interface gigabitethernet 4/1/1
[RouterA-GigabitEthernet4/1/1] lldp enable
[RouterA-GigabitEthernet4/1/1] lldp admin-status txrx
[RouterA-GigabitEthernet4/1/1] lldp compliance admin-status cdp txrx
Figure
78:
214