Example for Configuring LLDP on the Device That Has Multiple Neighbors
Networking Requirements
As shown in Figure 5-2, SwitchA, SwitchB, SwitchC are interconnected through an unknown network. The NMS has reachable routes to SwitchA, SwitchB, SwitchC, and SNMP configuration has been complete.
A network administrator wants to obtain Layer 2 information about SwitchA, SwitchB, and SwitchC to know the detailed network topology and configuration conflicts.
Configuration Roadmap
- Enable global LLDP on SwitchA, SwitchB, and SwitchC.
- Configure management IP addresses for SwitchA, SwitchB, and SwitchC.
- Configure the interim unknown network to support LLDP transparent transmission. As shown in Figure 5-2, LLDP transparent transmission needs to be configured on SwitchD.
Procedure
- Enable global LLDP on SwitchA, SwitchB,
and SwitchC.
# Configure SwitchA.
<Quidway> system-view [Quidway] sysname SwitchA [SwitchA] lldp enable
# Configure SwitchB.
<Quidway> system-view [Quidway] sysname SwitchB [SwitchB] lldp enable
# Configure SwitchC.
<Quidway> system-view [Quidway] sysname SwitchC [SwitchC] lldp enable
- Configure management IP addresses for SwitchA, SwitchB, and SwitchC.
# Configure SwitchA.
[SwitchA] lldp management-address 10.10.10.1
# Configure SwitchB.
[SwitchB] lldp management-address 10.10.10.2
# Configure SwitchC.
[SwitchC] lldp management-address 10.10.10.3
- Configure LLDP transparent transmission on SwitchD.
Enable group MAC function for the transparent transmission of Layer 2 protocol packets globally.
<Quidway> system-view [Quidway] sysname SwitchD [SwitchD] l2protocol-tunnel lldp group-mac default-group-mac
Enable LLDP transparent transmission on interfaces.
Run the l2protocol-tunnel lldp enable command on all the interfaces requiring this function, that is, the interfaces connecting to SwitchA, SwitchB, and SwitchC. Ensure that LLDP is disabled on these interfaces.
- Verify the configurations.
Check SwitchA.
# Check the neighbor information of SwitchA, and you can see two neighbors connected to the outbound interface of SwitchA.<SwitchA> display lldp neighbor brief Local Intf Neighbor Dev Neighbor Intf Exptime Eth0/0/1 SwitchB Eth0/0/1 20 Eth0/0/1 SwitchC Eth0/0/1 2
Check SwitchB.
Refer to the steps for checking SwitchA.
Check SwitchC.
Refer to the steps for checking SwitchA.
Configuration Files
Configuration file of SwitchA
# sysname SwitchA # lldp enable # interface LoopBack1 ip address 10.10.10.1 255.255.255.255 # lldp management-address 10.10.10.1 # return
Configuration file of SwitchB
# sysname SwitchB # lldp enable # interface LoopBack1 ip address 10.10.10.2 255.255.255.255 # lldp management-address 10.10.10.2 # return
Configuration file of SwitchC
# sysname SwitchC # lldp enable # interface LoopBack1 ip address 10.10.10.3 255.255.255.255 # lldp management-address 10.10.10.3 # return