Open In App
Related Articles

Open shortest path first (OSPF) router roles and configuration

Improve Article
Save Article
Like Article

Prerequisite – Open shortest path first (OSPF)
Open shortest path first (OSPF) is a link-state routing protocol which is used to find the best path between the source and the destination router using its own SPF algorithm.

Open shortest path first (OSPF) router roles –
An area is a group of contiguous networks and routers. Routers belonging to same area shares a common topology table and area I’d. The area I’d is associated with router’s interface as a router can belong to more than one area. There are some roles of router in OSPF:

  1. Backbone router – The area 0 is known as backbone area and the routers in area 0 are known as backbone routers. If the routers exists partially in the area 0then also it is a backbone router.
  2. Internal router – An internal router is a router which have all of its interfaces in a single area.
  3. Area Boundary Router (ABR) – The router which connects backbone area with another area is called Area Boundary Router. It belongs to more than one area. The ABRs, therefore, maintain multiple link-state databases that describe both the backbone topology and the topology of the other areas.
  4. Area Summary Border Router (ASBR) – When an OSPF router is connected to a different protocol like EIGRP or Border Gateway Protocol, or any other routing protocol then it is known as AS. The router which connects two different AS (in which one of the interfaces is operating OSPF) is known as Area Summary Border Router. These routers perform redistribution. ASBRs run both OSPF and another routing protocol, such as RIP or BGP. ASBRs advertise the exchanged external routing information throughout their AS.

Note – A router can be backbone router and Area Boundary Router at the same time i.e a router can perform more than one role at a time.

Configuration –

There is a small topology in which there are 3 routers namely R1, R2, R3 are connected. R1 is connected to networks (interface fa0/1), (interface fa0/0) and (interface gi0/0)
Note – In the figure, IP addresses are written with their respected interfaces but as have to advertise networks therefore, you have to write network I’d. R2 is connected to networks (interface fa0/0), (interface fa0/1). R3 is connected to networks (int fa0/1), (int fa0/0).

Now, configuring OSPF for R1.

R1(config)#router ospf 1
R1(config-router)#network area 1
R1(config-router)#network area 1
R1(config-router)#network area 1

Here, 1 is the OSPF instance or process I’d. It can be same or different (doesn’t matter). You have use wildcard mask here and area used is 1.
Now, configuring R2

R2(config)#router ospf 1
R2(config-router)#network area 1
R2(config-router)#network area 1

Similarly, for R3

R3(config)#router ospf 1
R3(config-router)#network area 1
R3(config-router)#network area 1

You can check the configuration by typing command

R3#show ip protocols 
Level Up Your GATE Prep!
Embark on a transformative journey towards GATE success by choosing Data Science & AI as your second paper choice with our specialized course. If you find yourself lost in the vast landscape of the GATE syllabus, our program is the compass you need.

Last Updated : 25 Oct, 2021
Like Article
Save Article
Similar Reads