SlideShare a Scribd company logo
1 of 3
Download to read offline
How to configure the basic OSPF?
OSPF is a popular interior gateway protocol, frequently encountered by network
engineers. Here's how to get it up and running in a network.
Open shortest path first, or OSPF, is a routing protocol that's based on open
standards, meaning any vendor can implement its features. For years Cisco, Juniper,
and other major networking vendors have coupled OSPF into their platform. When
you configure OSPF, there are a few fundamental requirements in order to exchange
routing information. To begin with, OSPF uses a Hello mechanism to detect
neighboring devices that run OSPF. Once detected OSPF attempts to form an
adjacency. Once an adjacency is established Link-State Advertisements (LSA) are used
to exchange routing information.
The Hello packet is one of the first things you should have a solid understanding of.
The following image shows the format of a Hello packet:
This packet is used by the Hello protocol, which is responsible for establishing and
maintaining neighbor relationships. The Hello protocol also ensures that
communication between neighbors is bidirectional. These packets get sent out of an
interface where OSPF is enabled on a periodic basis. If a router receives a packet and
sees its own address listed it knows that bidirectional communication exists. Once
bidirectional communication is established a Designated Router (DR) is selected if on
a multiaccess network. We're not going to cover that process in this article, however
we highlight it because it's an integral part of OSPF. After two devices neighbor up,
they synchronize Link-State databases.
To configure basic OSPF to form a neighbor adjacency on a Elins router perform the
following:
1.Identify the network interfaces that should run OSPF.
2.Identify the OSPF area
3.Issue the required commands to enable OSPF
Let's assume the following topology in which we are using OSPF area 5 and ABR5 and
R5 are pre-configured for us. We need to enable OSPF on R6.
Start by entering OSPF configuration mode. You'll need to identify OSPF by a process
ID. In this case, it's 1.
R6>en
R6#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R6(config)#router ospf 1
R6(config-router)#
Next, issue the network statement for each interface that should run OSPF. According
to our network topology we will enable OSPF on interface g0/1 and g0/2. The
network statement format is as follows:
network X.X.X.X W.W.W.W area A
In this syntax, the X.X.X.X indicates the network address. The W.W.W.W is the
wildcard mask. The A is the area ID.
R6(config-router)#network 10.0.0.80 0.0.0.3 area 5
R6(config-router)#network 10.0.0.84 0.0.0.3 area 5
R6(config-router)#
A simple way to identify the wildcard mask is to subtract the subnet mask in the last
octet from 255. In this case 255 - 252 - 3 so our wildcard mask is going to end in .3.
We now need to verify that OSPF has neighbored up and synchronized databases. To
do so, issue the show ip ospf neighbors command.
R6#sh ip ospf neighbor
`
Neighbor ID Pri State Dead Time Address Interface`
192.168.0.10 1 FULL/DR 00:00:35 10.0.0.85 GigabitEthernet0/2`
192.168.0.9 1 FULL/BDR 00:00:31 10.0.0.81 GigabitEthernet0/1`
R6#`
As you can tell, we are receiving OSPF routes. In fact, we are receiving more routes to
destinations that we don't see in our topology. This is because we are only focusing
on a small part of the topology. What we don't see is that ABR5 is connected to
several other routers forming a backbone and exchanging routes between other
areas. This obviously leads to more questions about OSPF, however, as it stands we
have configured basic OSPF and can now route traffic on R6.
Visit E-Lins Technology for more details!

More Related Content

Similar to How to configure the basic OSPF?

ENSA_Module_2 Packet Tracer - Single-Area OSPFv2 Configuration
ENSA_Module_2 Packet Tracer - Single-Area OSPFv2 ConfigurationENSA_Module_2 Packet Tracer - Single-Area OSPFv2 Configuration
ENSA_Module_2 Packet Tracer - Single-Area OSPFv2 Configurationkecatem465
 
OSPFv3_Technology_White_Paper.pdf
OSPFv3_Technology_White_Paper.pdfOSPFv3_Technology_White_Paper.pdf
OSPFv3_Technology_White_Paper.pdfDenis Rasskazov
 
ENSA_Module_2.pptx
ENSA_Module_2.pptxENSA_Module_2.pptx
ENSA_Module_2.pptxserieux1
 
Implementing a scalable ospf based solution
Implementing a scalable ospf based solutionImplementing a scalable ospf based solution
Implementing a scalable ospf based solutionArnold Derrick Kinney
 
CCNA3 Verson6 Chapter10
CCNA3 Verson6 Chapter10CCNA3 Verson6 Chapter10
CCNA3 Verson6 Chapter10Chaing Ravuth
 
Routing and OSPF
Routing and OSPFRouting and OSPF
Routing and OSPFarpit
 
CCNA (R & S) Module 04 - Scaling Networks - Chapter 8
CCNA (R & S) Module 04 - Scaling Networks - Chapter 8CCNA (R & S) Module 04 - Scaling Networks - Chapter 8
CCNA (R & S) Module 04 - Scaling Networks - Chapter 8Waqas Ahmed Nawaz
 
CCNA (R & S) Module 04 - Scaling Networks - Chapter 9
CCNA (R & S) Module 04 - Scaling Networks - Chapter 9CCNA (R & S) Module 04 - Scaling Networks - Chapter 9
CCNA (R & S) Module 04 - Scaling Networks - Chapter 9Waqas Ahmed Nawaz
 
CCNA3 Verson6 Chapter9
CCNA3 Verson6 Chapter9CCNA3 Verson6 Chapter9
CCNA3 Verson6 Chapter9Chaing Ravuth
 
Configurasi ospf
Configurasi ospfConfigurasi ospf
Configurasi ospfamri am
 
Лекц 15
Лекц 15Лекц 15
Лекц 15Muuluu
 
ENSA_Module_1.pptx
ENSA_Module_1.pptxENSA_Module_1.pptx
ENSA_Module_1.pptxserieux1
 

Similar to How to configure the basic OSPF? (20)

ENSA_Module_2 Packet Tracer - Single-Area OSPFv2 Configuration
ENSA_Module_2 Packet Tracer - Single-Area OSPFv2 ConfigurationENSA_Module_2 Packet Tracer - Single-Area OSPFv2 Configuration
ENSA_Module_2 Packet Tracer - Single-Area OSPFv2 Configuration
 
OSPFv3_Technology_White_Paper.pdf
OSPFv3_Technology_White_Paper.pdfOSPFv3_Technology_White_Paper.pdf
OSPFv3_Technology_White_Paper.pdf
 
ENSA_Module_2.pptx
ENSA_Module_2.pptxENSA_Module_2.pptx
ENSA_Module_2.pptx
 
ENSA_Module_2.pptx
ENSA_Module_2.pptxENSA_Module_2.pptx
ENSA_Module_2.pptx
 
Ospf
OspfOspf
Ospf
 
Implementing a scalable ospf based solution
Implementing a scalable ospf based solutionImplementing a scalable ospf based solution
Implementing a scalable ospf based solution
 
CCNA3 Verson6 Chapter10
CCNA3 Verson6 Chapter10CCNA3 Verson6 Chapter10
CCNA3 Verson6 Chapter10
 
Routing and OSPF
Routing and OSPFRouting and OSPF
Routing and OSPF
 
CCNA (R & S) Module 04 - Scaling Networks - Chapter 8
CCNA (R & S) Module 04 - Scaling Networks - Chapter 8CCNA (R & S) Module 04 - Scaling Networks - Chapter 8
CCNA (R & S) Module 04 - Scaling Networks - Chapter 8
 
CCNA (R & S) Module 04 - Scaling Networks - Chapter 9
CCNA (R & S) Module 04 - Scaling Networks - Chapter 9CCNA (R & S) Module 04 - Scaling Networks - Chapter 9
CCNA (R & S) Module 04 - Scaling Networks - Chapter 9
 
CCNA3 Verson6 Chapter9
CCNA3 Verson6 Chapter9CCNA3 Verson6 Chapter9
CCNA3 Verson6 Chapter9
 
Ospf
OspfOspf
Ospf
 
Configurasi ospf
Configurasi ospfConfigurasi ospf
Configurasi ospf
 
OSPF by Abdullah Mukhtar
OSPF by Abdullah MukhtarOSPF by Abdullah Mukhtar
OSPF by Abdullah Mukhtar
 
Allwyn ospf ppt
Allwyn ospf pptAllwyn ospf ppt
Allwyn ospf ppt
 
Day 12.2 enablingospf
Day 12.2 enablingospfDay 12.2 enablingospf
Day 12.2 enablingospf
 
Лекц 15
Лекц 15Лекц 15
Лекц 15
 
ENSA_Module_1.pptx
ENSA_Module_1.pptxENSA_Module_1.pptx
ENSA_Module_1.pptx
 
Osp fv3 cs
Osp fv3 csOsp fv3 cs
Osp fv3 cs
 
Ospf
OspfOspf
Ospf
 

Recently uploaded

Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your BudgetHyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your BudgetEnjoy Anytime
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2Hyundai Motor Group
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 

Recently uploaded (20)

Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your BudgetHyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 

How to configure the basic OSPF?

  • 1. How to configure the basic OSPF? OSPF is a popular interior gateway protocol, frequently encountered by network engineers. Here's how to get it up and running in a network. Open shortest path first, or OSPF, is a routing protocol that's based on open standards, meaning any vendor can implement its features. For years Cisco, Juniper, and other major networking vendors have coupled OSPF into their platform. When you configure OSPF, there are a few fundamental requirements in order to exchange routing information. To begin with, OSPF uses a Hello mechanism to detect neighboring devices that run OSPF. Once detected OSPF attempts to form an adjacency. Once an adjacency is established Link-State Advertisements (LSA) are used to exchange routing information. The Hello packet is one of the first things you should have a solid understanding of. The following image shows the format of a Hello packet:
  • 2. This packet is used by the Hello protocol, which is responsible for establishing and maintaining neighbor relationships. The Hello protocol also ensures that communication between neighbors is bidirectional. These packets get sent out of an interface where OSPF is enabled on a periodic basis. If a router receives a packet and sees its own address listed it knows that bidirectional communication exists. Once bidirectional communication is established a Designated Router (DR) is selected if on a multiaccess network. We're not going to cover that process in this article, however we highlight it because it's an integral part of OSPF. After two devices neighbor up, they synchronize Link-State databases. To configure basic OSPF to form a neighbor adjacency on a Elins router perform the following: 1.Identify the network interfaces that should run OSPF. 2.Identify the OSPF area 3.Issue the required commands to enable OSPF Let's assume the following topology in which we are using OSPF area 5 and ABR5 and R5 are pre-configured for us. We need to enable OSPF on R6. Start by entering OSPF configuration mode. You'll need to identify OSPF by a process ID. In this case, it's 1. R6>en R6#conf t Enter configuration commands, one per line. End with CNTL/Z.
  • 3. R6(config)#router ospf 1 R6(config-router)# Next, issue the network statement for each interface that should run OSPF. According to our network topology we will enable OSPF on interface g0/1 and g0/2. The network statement format is as follows: network X.X.X.X W.W.W.W area A In this syntax, the X.X.X.X indicates the network address. The W.W.W.W is the wildcard mask. The A is the area ID. R6(config-router)#network 10.0.0.80 0.0.0.3 area 5 R6(config-router)#network 10.0.0.84 0.0.0.3 area 5 R6(config-router)# A simple way to identify the wildcard mask is to subtract the subnet mask in the last octet from 255. In this case 255 - 252 - 3 so our wildcard mask is going to end in .3. We now need to verify that OSPF has neighbored up and synchronized databases. To do so, issue the show ip ospf neighbors command. R6#sh ip ospf neighbor ` Neighbor ID Pri State Dead Time Address Interface` 192.168.0.10 1 FULL/DR 00:00:35 10.0.0.85 GigabitEthernet0/2` 192.168.0.9 1 FULL/BDR 00:00:31 10.0.0.81 GigabitEthernet0/1` R6#` As you can tell, we are receiving OSPF routes. In fact, we are receiving more routes to destinations that we don't see in our topology. This is because we are only focusing on a small part of the topology. What we don't see is that ABR5 is connected to several other routers forming a backbone and exchanging routes between other areas. This obviously leads to more questions about OSPF, however, as it stands we have configured basic OSPF and can now route traffic on R6. Visit E-Lins Technology for more details!