LLDP configuration examples
Basic LLDP configuration example
Network requirements
As shown in
, the NMS and Switch A are located in the same Ethernet. An MED device and
Switch B are connected to Ethernet 1/0/1 and Ethernet 1/0/2 of Switch A.
Enable LLDP on the ports of Switch A and Switch B to monitor the link between Switch A and Switch B and
the link between Switch A and the MED device on the NMS.
Figure 60
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. (You can skip this step because LLDP is enabled globally by default.)
<SwitchA> system-view
[SwitchA] lldp enable
# Enable LLDP on GigabitEthernet 1/0/1 and GigabitEthernet 1/0/2. (You can skip this step because
LLDP is enabled on ports by default.) 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. (You can skip this step because LLDP is enabled globally by default.)
<SwitchB> system-view
[SwitchB] lldp enable
# Enable LLDP on GigabitEthernet1/0/1. (You can skip this step because LLDP is enabled on ports by
default.) 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
177