1-13
Figure 1-4
Network diagram for basic LLDP configuration
NMS
Switch A
MED
Switch B
Eth1/0/2
Eth1/0/1
Eth1/0/1
Configuration procedure
1) Configure Switch A.
# Enable LLDP globally.
<SwitchA> system-view
[SwitchA] lldp enable
# Enable LLDP on Ethernet 1/0/1 and Ethernet 1/0/2 (you can skip this step because LLDP is enabled
on ports by default), and set the LLDP operating mode to Rx.
[SwitchA] interface ethernet 1/0/1
[SwitchA-Ethernet1/0/1] lldp enable
[SwitchA-Ethernet1/0/1] lldp admin-status rx
[SwitchA-Ethernet1/0/1] quit
[SwitchA] interface ethernet 1/0/2
[SwitchA-Ethernet1/0/2] lldp enable
[SwitchA-Ethernet1/0/2] lldp admin-status rx
[SwitchA-Ethernet1/0/2] quit
2) Configure Switch B.
# Enable LLDP globally.
<SwitchB> system-view
[SwitchB] lldp enable
# Enable LLDP on Ethernet1/0/1 (you can skip this step because LLDP is enabled on ports by default),
and set the LLDP operating mode to Tx.
[SwitchB] interface ethernet 1/0/1
[SwitchB-Ethernet1/0/1] lldp enable
[SwitchB-Ethernet1/0/1] lldp admin-status tx
[SwitchB-Ethernet1/0/1] quit
3) Verify the configuration.
# Display the global LLDP status and port LLDP status on Switch A.
[SwitchA] display lldp status
Global status of LLDP : Enable
The current number of LLDP neighbors : 2
The current number of CDP neighbors : 0
LLDP neighbor information last changed time: 0 days,0 hours,4 minutes,40 seconds
Transmit interval : 30s