Got it

The OSPF neighbor relationship is not established

Latest reply: Feb 20, 2020 12:05:54 75 3 3 0

Hello everyone,

Today, I will share a situation where OSPF neighbor relationships are not established and the solution.

Problem Description and Networking

On the live network, active and standby static routes are used to connect to the BSC/RNC of another vendor. After the cutover, the OSPF neighbor relationship is not established.

The following figure shows the simplified networking.


(1) The sub-interfaces between the RSGs are configured with a private network IGP and use the OSPF protocol.

(2) Configure static routes from the master and slave RSGs to the logical interfaces of the RNC (deploy BFD between the RSGs and RNC and configure the routes to track the BFD) and import the routes to OSPF. The master and slave RSGs import static routes and IGP routes to BGP.

Problem Identification Method

Run the display ospf error command every 10s to check the number of OSPF errors. The command output shows that there are OSPF router ID conflicts.


Run the debugging ospf eventcommand. The following conflict information is displayed:


Run the display ospf peer command to check the router ID.


Check the configuration.


Configure a loopback interface on the RSG for the private network to associate with the default route to prevent blackhole routes.


The ospf router-id is not manually specified.


Root Cause

When OSPF is configured, the router ID is not manually specified. As a result, RSG1 and RSG2 select Loopback10 as their OSPF router IDs. HoVPN default routes are associated to prevent route blackholes. The loopback10 addresses configured on the master and slave RSGs are the same. As a result, OSPF router IDs conflict and OSPF neighbor relationships fail to be established.


Manually specify the router ID of the OSPF process. Note that the modification of the OSPF process takes effect only after the OSPF process is restarted.

ospf 102 router-id X.X.X.X(loopback0 ip) vpn-instance NCELL_2G

reset ospf 102 process

Experience summary

(1) By default, a router automatically selects an IP address of the current interface as the router ID. When manually configuring router IDs, ensure that any two routers in an AS have different router IDs. Generally, the router ID is the same as the IP address of an interface on the device.

(2) When configuring OSPF on the live network, you are advised to manually specify a router ID.

This is what I want to share with you, thank you!


  • x
  • convention:

Admin Created Feb 7, 2020 06:10:52 Helpful(0) Helpful(0)

this is great, thanks for the sharing. :D
View more
  • x
  • convention:

Created Feb 19, 2020 01:57:12 Helpful(0) Helpful(0)

Thanks for sharing :D
View more
  • x
  • convention:

Created Feb 20, 2020 12:05:54 Helpful(0) Helpful(0)

Thanks for sharing !

I am sure we should remember to put default routes that are associated to prevent route blackhole towards Interface NULL0 :)

Take care, guys!
View more
  • x
  • convention:



You need to log in to comment to the post Login | Register

Notice Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " Privacy."
If the attachment button is not available, update the Adobe Flash Player to the latest version!

My Followers

Login and enjoy all the member benefits


Huawei Enterprise Support Community
Huawei Enterprise Support Community
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.