Got it

OSPF peers with same Router id but in different areas

Created: Nov 2, 2020 17:15:34Latest reply: Nov 21, 2020 11:16:36 643 14 1 0 0
  Rewarded HiCoins: 0 (problem resolved)
Hi guys,

Can we have two OSPF peers using the same Router ID if they are in different areas? When could a problem appear under this scenario?

Featured Answers

Best answer

Recommended answer

DDSN
Admin Created Nov 3, 2020 02:59:42

Hi Herediano,

1

The neighbor relationships between R2 and R1 and between R2 and R3 are normal, and intra-area and inter-area routes can be learned into the routing table. If R1 and R3 do not import external routes, the problem does not occur. OSPF uses LSA3 between areas. LSA3 is generated by the ABR in the area based on LSA1 and LSA2. adv is the router ID of the ABR. Inter-area routes are only attached to the ABR as leaf routes, no node with the same router ID exists in the SPT in the area. However, if routes are imported to devices with the same router ID, the problem occurs because the router ID of the ASBR must be known to all routers in the OSPF area. If the router ID of the ASBR is the same as that of the local device, the problem occurs.

Assume that R1 imports a route to 10.10.10.0/24. R1 sends the LSA (adv=1.1.1.1, type=5, LS ID=1.1.1.1, seq=80000001) to R2. After receiving the LSA, R2 sends it to R3. After receiving the LSA, R3 finds that the advertiser is 1.1.1.1, but does not have the network segment, then, R3 sends an LSA5 (age=3600s, seq=80000001) to R2. After receiving the LSA5, R2 compares it with the LSA5 received previously. Because the seq and check sum are the same as those before, R2 preferentially selects the LSA5 with age=3600s, then, R1 forwards the LSA5 to R1. After receiving the LSA5, R1 finds that it has the network segment and sends a new LSA5 (seq=80000002). Such a repetitive situation may occur, causing route flapping.

I hope it helps!

View more
  • x
  • convention:

Herediano
Herediano Created Nov 3, 2020 16:05:38 (0) (0)
Thank you @DDSN, pretty clear now.  
carlosdua
carlosdua Reply Herediano  Created Nov 29, 2020 19:51:31 (0) (0)
 
All Answers
Hello,

Each OSPF router selects a router ID (RID) that has to be unique on your network. OSPF stores the topology of the network in its LSDB (Link State Database) and each router is identified with its unique router ID , if you have duplicate router IDs then you will run into reachability issues.

Because of this, two OSPF routers with the same router ID will not become neighbors but you could still have duplicated router IDs in the network with routers that are not directly connected to each other.

OSPF uses the following criteria to select the router ID:

Manual configuration of the router ID.
Highest IP address on a loopback interface.
Highest IP address on a non-loopback interface.

Thanks
View more
  • x
  • convention:

Herediano
Herediano Created Nov 3, 2020 16:03:43 (0) (0)
Thank you Wissal  
Hello Herediano

The problem with that scenario is that you could have a LSA flood w***.

The OSPF flood w*** occurs when the router repeatedly receives its own Link State Advertisement (LSA) and flushes it from the network or sends a new version of it. This is meant to detect issues with Type-2 LSAs when duplicate IP addresses are present in the network, or with Type-5 LSAs when there is a duplicate router ID in different OSPF Areas.

Flood w***s due to Type-5 LSAs occur when there are duplicate router IDs on routers that are located in different Areas. It is compulsory to change the router ID on one of the routers.

In summary, ensure that the router IDs are not the same, and the correct redistribution of external LSAs should prevent flood w*** issues due to Type-5 LSAs.

Best regards!
View more
  • x
  • convention:

Herediano
Herediano Created Nov 3, 2020 16:04:45 (0) (0)
Thank you @gabo.lr , good answer!  
DDSN
DDSN Admin Created Nov 3, 2020 02:59:42

Hi Herediano,

1

The neighbor relationships between R2 and R1 and between R2 and R3 are normal, and intra-area and inter-area routes can be learned into the routing table. If R1 and R3 do not import external routes, the problem does not occur. OSPF uses LSA3 between areas. LSA3 is generated by the ABR in the area based on LSA1 and LSA2. adv is the router ID of the ABR. Inter-area routes are only attached to the ABR as leaf routes, no node with the same router ID exists in the SPT in the area. However, if routes are imported to devices with the same router ID, the problem occurs because the router ID of the ASBR must be known to all routers in the OSPF area. If the router ID of the ASBR is the same as that of the local device, the problem occurs.

Assume that R1 imports a route to 10.10.10.0/24. R1 sends the LSA (adv=1.1.1.1, type=5, LS ID=1.1.1.1, seq=80000001) to R2. After receiving the LSA, R2 sends it to R3. After receiving the LSA, R3 finds that the advertiser is 1.1.1.1, but does not have the network segment, then, R3 sends an LSA5 (age=3600s, seq=80000001) to R2. After receiving the LSA5, R2 compares it with the LSA5 received previously. Because the seq and check sum are the same as those before, R2 preferentially selects the LSA5 with age=3600s, then, R1 forwards the LSA5 to R1. After receiving the LSA5, R1 finds that it has the network segment and sends a new LSA5 (seq=80000002). Such a repetitive situation may occur, causing route flapping.

I hope it helps!

View more
  • x
  • convention:

Herediano
Herediano Created Nov 3, 2020 16:05:38 (0) (0)
Thank you @DDSN, pretty clear now.  
carlosdua
carlosdua Reply Herediano  Created Nov 29, 2020 19:51:31 (0) (0)
 
Thanks
View more
  • x
  • convention:

Herediano
Herediano Created Nov 24, 2020 16:04:07 (0) (0)
 
Thank you
View more
  • x
  • convention:

carlosdua
carlosdua Created Nov 29, 2020 19:51:44 (0) (0)
 
Herediano
Herediano Reply carlosdua  Created Nov 29, 2020 22:27:56 (0) (0)
 
Thanks
View more
  • x
  • convention:

Herediano
Herediano Created Nov 29, 2020 22:28:32 (0) (0)
 

Comment

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

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 " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.