Why cannot an S series switches obtain LLDP neighbor information through SNMP

129

On a Huawei S series switch (except the S1700), the LLDP module has two MIB files, that is, HUAWEI-LLDP-MIB.mib and LLDP-MIB.mib.
In the default configuration of the switch, SNMP is only applicable to the objects in the internet tree. The objects such as neighbor information in LLDP-MIB.mib are not in the internet tree. Therefore, the SNMP MIB view needs to be set to ISO. Then, all the objects in the ISO view can be accessed through SNMP.
To obtain LLDP neighbor information through SNMP, run the following commands on the switch:
[HUAWEI]snmp-agent community read huawei123 mib-view iso-view
[HUAWEI]snmp-agent community write huawei123 mib-view iso-view
[HUAWEI]snmp-agent sys-info version all
[HUAWEI]snmp-agent mib-view included iso-view iso

Other related questions:
How do I query LLDP neighbor information
Run the display lldp neighbor [ interface < interface-type > < interface-number > ] command to check neighbor information on the AR or interface. Run the display lldp neighbor brief command to check brief information about neighbors.

What is SNMP for S series switches
The Simple Network Management Protocol (SNMP) is a standard network management protocol widely used on TCP/IP networks. Devices function as agents and can be managed and monitored by the manager (NMS). A network administrator can query information, modify data, and locate faults on devices through SNMP, greatly improving work efficiency.

Why can one switch view neighbor information but cannot the other switch view neighbor information after the two S series switches establish RIP neighbor relationship
Q: Why can one switch view neighbor information but cannot the other switch view neighbor information after the two switches establish RIP neighbor relationship? A: A switch enabled with RIP does not send the route of the interface directly connected to the neighbor. If both ends only have direct routes, only one switch can discover the neighbor. For example, before device A and device B establish RIP neighbor relationship, if device A sends the interface route to device B, device B will discover device A. Device B then does not advertise its interface route to device A. Consequently, device A cannot discover the neighbor device B. RIP does not stipulate that whether a switch needs to send the route of the interface directly connected to the neighbor to the neighbor. This issue occurs when Huawei's communications products establish RIP neighbor relationship.

Check OSPF neighbor information on S series switches
You can run the display ospf peer command on an S series switch with OSPF configured to check whether the OSPF neighbor status is normal. For example: [HUAWEI] display ospf peer OSPF Process 1 with Router ID 10.1.1.2 Neighbors Area 0.0.0.0 interface 10.1.1.2(Vlanif100)'s neighbors Router ID: 10.1.1.1 Address: 10.1.1.1 GR State: Normal GR State: Normal State: Full Mode:Nbr is Slave Priority: 1 DR: 10.1.1.2 BDR: 10.1.1.1 MTU: 0 Dead timer due in 35 sec Retrans timer interval: 5 Neighbor is up for 00:00:05 Authentication Sequence: [ 0 ] Note: If Full is displayed in State, LSDB synchronization has been completed and the two switches have set up the full adjacency relationship.

What should I do if an S series switches fails to discover LLDP neighbors
If a Huawei S series switch (except the S1700) fails to discover LLDP neighbors, the solutions are as follows: 1. Ensure that LLDP is enabled globally on the local switch and not disabled on related interfaces. 2. Ensure that LLDP is enabled globally on the peer switch and not disabled on related interfaces. 3. Ensure that the BPDU processing function is enabled on the related interfaces on the local and peer switches, and no other policy is used to discard LLDP BPDUs.

If you have more questions, you can seek help from following ways:
To iKnow To Live Chat
Scroll to top