cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
460
Views
0
Helpful
5
Replies

two ospf processes and network

sarahr202
Level 5
Level 5

Hi every body

Let say we have router running two ospf processes, ospf 1 and ospf 2.

Router is receiving update about a network 10.0.0.0 with the same cost, from both processes.

Will router install the route to 10.0.0.0 from both processes in its routing table ?

Thanks and have a nice weekend.

3 Accepted Solutions

Accepted Solutions

Jon Marshall
Hall of Fame
Hall of Fame

Sarah

No it won't install both routes, it will only install one of them and it will usually be the one it receives first.

Jon

View solution in original post

Lucien Avramov
Level 10
Level 10

two exact same networks can not coexist in the routing table, there will be an election process if the cost is the same, and I believe that is with the routing-id value.

If you want to receive updates from both, you need to be more specific in the network, for example, you can send a /27 or /32 instead and that will show in the routing table. If at least one is more specific it will work:

R5#sho ip route ospf

10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks

O IA 10.0.0.0/24 [110/2] via 1.1.1.6, 00:00:09, FastEthernet0/0

O 10.0.0.4/32 [110/2] via 2.2.2.4, 00:00:09, FastEthernet0/1

Or if both are more specific as well:

R5#sho ip route ospf

10.0.0.0/32 is subnetted, 2 subnets

O IA 10.0.0.6 [110/2] via 1.1.1.6, 00:00:12, FastEthernet0/0

O 10.0.0.4 [110/2] via 2.2.2.4, 00:00:22, FastEthernet0/1

Here i used 2 ospf process and both in different areas, hen you see the IA for one route.

Only 1 route installed for the /24:

R5#show ip route ospf

10.0.0.0/24 is subnetted, 1 subnets

O 10.0.0.0 [110/2] via 2.2.2.4, 00:00:20, FastEthernet0/1

View solution in original post

As soon as there will be a bouncing of the ospf process, the router-id will be used to determine which one is prefered.

After a clear ip ospf process, it seems to use the routing id to decide the preferred route of what I can see: the highest routing id.

View solution in original post

5 Replies 5

Jon Marshall
Hall of Fame
Hall of Fame

Sarah

No it won't install both routes, it will only install one of them and it will usually be the one it receives first.

Jon

As soon as there will be a bouncing of the ospf process, the router-id will be used to determine which one is prefered.

After a clear ip ospf process, it seems to use the routing id to decide the preferred route of what I can see: the highest routing id.

Hello Lucien,

I agre with Jon first process that converges will have its route installed in the routing table the OSPF process-id should play no role here.

different ospf processes are treated as "ships in the night" and no OSPF type of route is considered by the IP router maintaner process only AD and metric.

Hope to help

Giuseppe

I said routing id not process id. Play in the lab with 3 routers and you will see it.

Lucien Avramov
Level 10
Level 10

two exact same networks can not coexist in the routing table, there will be an election process if the cost is the same, and I believe that is with the routing-id value.

If you want to receive updates from both, you need to be more specific in the network, for example, you can send a /27 or /32 instead and that will show in the routing table. If at least one is more specific it will work:

R5#sho ip route ospf

10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks

O IA 10.0.0.0/24 [110/2] via 1.1.1.6, 00:00:09, FastEthernet0/0

O 10.0.0.4/32 [110/2] via 2.2.2.4, 00:00:09, FastEthernet0/1

Or if both are more specific as well:

R5#sho ip route ospf

10.0.0.0/32 is subnetted, 2 subnets

O IA 10.0.0.6 [110/2] via 1.1.1.6, 00:00:12, FastEthernet0/0

O 10.0.0.4 [110/2] via 2.2.2.4, 00:00:22, FastEthernet0/1

Here i used 2 ospf process and both in different areas, hen you see the IA for one route.

Only 1 route installed for the /24:

R5#show ip route ospf

10.0.0.0/24 is subnetted, 1 subnets

O 10.0.0.0 [110/2] via 2.2.2.4, 00:00:20, FastEthernet0/1

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: