The Wayback Machine - https://web.archive.org/web/20240717024526/https://www.geeksforgeeks.org/open-shortest-path-first-ospf-router-roles-configuration/
Open In App

Open shortest path first (OSPF) router roles and configuration

Last Updated : 25 Oct, 2021
Improve
Suggest changes
Post a comment
Like Article
Like
Save
Share
Report

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 10.255.255.80/30 (interface fa0/1), 192.168.10.48/29 (interface fa0/0) and 10.255.255.8/30 (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 192.168.10.64/29 (interface fa0/0), 10.255.255.80/30 (interface fa0/1). R3 is connected to networks 10.255.255.8/30 (int fa0/1), 192.168.10.16/29 (int fa0/0).

Now, configuring OSPF for R1.

R1(config)#router ospf 1
R1(config-router)#network 192.168.10.48 0.0.0.7 area 1
R1(config-router)#network 10.255.255.80 0.0.0.3 area 1
R1(config-router)#network 10.255.255.8 0.0.0.3 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 192.168.10.64 0.0.0.7 area 1
R2(config-router)#network 10.255.255.80 0.0.0.3 area 1

Similarly, for R3

R3(config)#router ospf 1
R3(config-router)#network 192.168.10.16 0.0.0.7 area 1
R3(config-router)#network 10.255.255.8 0.0.0.3 area 1

You can check the configuration by typing command

R3#show ip protocols 

Previous Article
Next Article

Similar Reads

Open Shortest Path First (OSPF) Protocol fundamentals
Open shortest path first (OSPF) is a link-state routing protocol that is used to find the best path between the source and the destination router using its own shortest path first (SPF) algorithm. A link-state routing protocol is a protocol that uses the concept of triggered updates, i.e., if there is a change observed in the learned routing table
5 min read
Open Shortest Path First (OSPF) protocol States
Prerequisite - OSPF fundamentals Open Shortest Path First (OSPF) is a link-state routing protocol that is used to find the best path between the source and the destination router using its own Shortest Path First). OSPF is developed by Internet Engineering Task Force (IETF) as one of the Interior Gateway Protocol (IGP), i.e, the protocol which aims
4 min read
Open shortest path first (OSPF) - Set 2
OSPF is abbreviated as Open Shortest Path First. OSPF is an intradomain routing protocol and it is the implementation of link state routing protocol. It falls into the group of interior gateway protocols (IGPs), operating within a single autonomous system (AS). OSPF was designed as an interior gateway protocol. It is used in an autonomous system su
4 min read
Introduction of Virtual Router Redundancy Protocol (VRRP) and its configuration
VRRP is an open standard protocol, which is used to provide redundancy in a network. It is a network layer protocol (protocol number-112). The number of routers (group members) in a group acts as a virtual logical router which will be the default gateway of all the local hosts. If one router goes down, one of the other group members can take place
4 min read
Hot Standby Router Protocol (HSRP) and Virtual Router Redundancy Protocol (VRRP)
Hot Standby Router Protocol (HSRP) is a CISCO proprietary protocol used to provide redundancy in a network. Only one router is the active router while others will be in standby state i.e the standby router will be responsible for forwarding the traffic when the active router fails. Virtual Router Redundancy Protocol (VRRP) is an open standard proto
3 min read
Configuration of Router on a stick
Prerequisite - Access and trunk ports Switches divide broadcast domain through VLAN (Virtual LAN). VLAN is a partitioned broadcast domain from a single broadcast domain. Switch doesn't forward packets across different VLANs by itself. If we want to make these virtual LANs communicate with each other, a concept of Inter VLAN Routing is used. Inter V
3 min read
Difference between OSPF and BGP
Open Shortest Path First (OSPF): OSPF is type of hierarchical network topology or design. OSPF prefers fastest path rather than shortest path. In Open Shortest Path First, internet protocol is used. It uses link-state-routing (LSR) algorithm for its functionality. OSPF is an Interior Gateway Protocol (IGP), where routers connect networks using the
3 min read
Difference between EIGRP and OSPF
EIGRP (Enhanced Interior Gateway Routing Protocol) It is used to share the information from one router to the neighbor routers if they exist in the same region. It is also a complex protocol but can be configured and make it work easily in small and large networks. It is also a hybrid protocol because it uses the features of the both distance vecto
2 min read
Difference between RIP and OSPF
1. Routing Information Protocol (RIP): RIP stands for Routing Information Protocol in which distance vector routing protocol is used for data/packet transmission. In the Routing Information Protocol (RIP), the maximum number of Hop is 15, because it prevents routing loops from source to destination. Mechanisms like the split horizon, route poisonin
3 min read
Difference between OSPF and IGRP
1. Open Shortest Path First (OSPF): OSPF uses a link-state routing algorithm. Using the link state information which is available in routers, it constructs the topology in which topology determines the routing table for routing decisions. It supports both variable-length subnet masking and classless inter-domain routing addressing models. Since it
3 min read
Article Tags :