Check OSPF neighbor information on S series switches

17

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.

Other related questions:
Commands for checking basic OSPF information on S series switches
You can run the following commands on an S series switch supporting OSPF to check basic OSPF information: display ospf abr-asbr The command output displays all entries of routes to the ABR and ASBR. If you run this command on a device in a stub or an NSSA area, information about the ASBR is not displayed. display ospf asbr-summary The command output displays summarization information about OSPF imported routes. If no IP address or mask is specified, summarization information about all OSPF imported routes is displayed. display ospf brief The command output displays brief OSPF information. display ospf cumulative The command output displays statistics on an OSPF process. display ospf error The command output displays OSPF errors. display ospf interface The command output displays OSPF interface information. display ospf lsdb The command output displays information about an LSDB of OSPF. You can select parameters to check LSDB information, such as summary information, information about the LSA of a specified type, the originating device, and the spontaneous LSA. display ospf nexthop The command output displays next-hop information. display ospf peer The command output displays information about an OSPF neighbor. You can troubleshoot OSPF faults and verify the configuration of the OSPF neighbor based on the command output. You can also check whether graceful restart (GR) is enabled on the neighbor. display ospf request-queue The command output displays information about the OSPF request message list. You can locate and rectify OSPF faults based on the command output. display ospf retrans-queue The command output displays information about the OSPF retransmission list. display ospf routing The command output displays OSPF routing table entries. You can select parameters to check information about routes to a specified interface or next-hop address. display ospf vlink The command output displays information about OSPF virtual links. display ospf sham-link The command output displays information about and attributes of all sham links in a specified OSPF process or area. debugging ospf event The command output displays OSPF events. debugging ospf lsa-originate The command output displays the origination information about LSAs. debugging ospf packet The command output displays information about sent and received OSPF packets. Packet types include ACK, DD, Hello, Request, and Update. If no packet type is specified, information about all OSPF packets is displayed. debugging ospf spf The command output displays SPF details, including information about the tunnel interface for IGP shortcuts and forwarding adjacency.

Configure OSPF neighbor authentication on an S series switch
OSPF authentication of S series switches includes area authentication and interface authentication. 1. Area authentication Run the authentication-mode command in an OSPF area view to set the authentication mode and password for the OSPF area. For example: [HUAWEI] ospf 100 [HUAWEI-ospf-100] area 0 [HUAWEI-ospf-100-area-0.0.0.0] authentication-mode simple cipher huawei To configure MD5 authentication, run the following command: [HUAWEI-ospf-100-area-0.0.0.0] authentication-mode md5 1 cipher huawei 2. Interface authentication The interface authentication mode is used among neighbor switches to set the authentication mode and password. Its priority is higher than that of the area authentication mode. Run the ospf authentication-mode command in the interface view to set the authentication mode and password for adjacent switches. For example: [HUAWEI] interface vlanif 100 [HUAWEI-Vlanif100] ospf authentication-mode simple cipher huawei To configure MD5 authentication, run the following command: [HUAWEI-Vlanif100]ospf authentication-mode md5 1 cipher huawei Note: When configuring area authentication or interface authentication, all switches involved must have the same authentication mode and password. If not, the switches may fail to set up an OSPF neighbor relationship.

Check DHCP information on S series switches
Method to check DHCP information on S series switches: - Run the display ip pool [ name ip-pool-name [ start-ip-address [ end-ip-address ] | all | conflict | expired | used ] ] command to check address allocation in interface address pool mode. - Run the display ip pool [ name ip-pool-name [ start-ip-address [ end-ip-address ] | all | conflict | expired | used ] ] command to check address allocation in global address pool mode. - Run the display dhcp server database command to check the names and directories of files in which DHCP data is saved. - Run the display nat-policy template [ template-name ] command to check the configuration of the DHCP Option template. - Run the display dhcp relay { all | interface interface-type interface-number } command to check DHCP server or DHCP server group information on the interface configured with the DHCP relay function. - Run the display dhcp server group [ group-name ] command to check the configuration of the DHCP server group. - Run the display dhcp client command to check information about DHCP clients. - Run the display dhcp server statistics command to check statistics on received and sent DHCP packet by the switch used as the DHCP server. - Run the display dhcp relay statistics command to check statistics on received and sent DHCP packet by the switch used as the DHCP relay agent. - Run the display dhcp client statistics [ interface interface-type interface-number ] command to check statistics on received and sent DHCP packet by the switch used as the DHCP client. - Run the display dhcp statistics command to check statistics on received and sent DHCP packet by the switch.

How to check whether the IP address in neighbor information is correct on S series switches
On Huawei S series switches (except the S1700), run the lldp management-address command to configure the LLDP management IP address. Check whether the IP address on neighbor devices is the same as that configured using this command.

Commands for checking OSPF network type faults on S series switches
You can run the following commands on an S series switch supporting OSPF to check information about OSPF network type faults: display ospf interface The command output displays information about an OSPF interface. ospf network-type This command is used to set the network type of an OSPF interface.

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