Port 2 [GigabitEthernet1/0/2]:
Port status of LLDP
Admin status
Trap flag
Roll time
Number of neighbors
Number of MED neighbors
Number of CDP neighbors
Number of sent optional TLV
Number of received unknown TLV
As the sample output shows, GigabitEthernet 1/0/2 of Switch A does not connect any neighboring
devices.
CDP-Compatible LLDP Configuration Example
Network requirements
As shown in
Figure
GigabitEthernet 1/0/1 and GigabitEthernet 1/0/2 of Switch A are each connected to a Cisco IP
phone.
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 5-5 Network diagram for CDP-compatible LLDP configuration
Configuration procedure
1)
Configure a voice VLAN on Switch A
# Create VLAN 2.
<SwitchA> system-view
[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
: Enable
: Rx_Only
: No
: 0s
: 0
: 0
: 0
: 0
: 0
5-5:
5-16