R2511-HP MSR Router Series Layer 2 - LAN Switching Configuration Guide(V5)

122
Figure 40 Network diagram
Configuration procedure
1. Configure Router A:
# Enable LLDP globally.
<RouterA> system-view
[RouterA] lldp enable
# Enable LLDP on Ethernet 1/1 and Ethernet 1/2. (You can skip this step because LLDP is enabled
on ports by default.) Set the LLDP operating mode to Rx.
[RouterA] interface ethernet 1/1
[RouterA-Ethernet1/1] lldp enable
[RouterA-Ethernet1/1] lldp admin-status rx
[RouterA-Ethernet1/1] quit
[RouterA] interface ethernet 1/2
[RouterA-Ethernet1/2] lldp enable
[RouterA-Ethernet1/2] lldp admin-status rx
[RouterA-Ethernet1/2] quit
2. Configure Router B:
# Enable LLDP globally.
<RouterB> system-view
[RouterB] lldp enable
# Enable LLDP on Ethernet1/1. (You can skip this step because LLDP is enabled on ports by default.)
Set the LLDP operating mode to Tx.
[RouterB] interface ethernet 1/1
[RouterB-Ethernet1/1] lldp enable
[RouterB-Ethernet1/1] lldp admin-status tx
[RouterB-Ethernet1/1] quit
3. Verify the configuration:
# Display the global LLDP status and port LLDP status on Router A.
[RouterA] 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
Hold multiplier : 4
Reinit delay : 2s
Transmit delay : 2s