OSPF Basic Setup Steps | Blog

Aug 24

OSPF Basic Setup Steps

OSPF is link-state routing protocol which is often used to implement internetwork routing. It uses Dijkstra algorithm to calculate best route which follows the rule of open shortest path first. This article guides you through the basic setup of OSPF in your organization. When configuring OSPF, there are some fundamental requirements in order for it work. To begin with, OSPF uses a Hello messages to detect neighboring devices that run OSPF. Once detected OSPF attempts to form an adjacency with neighbors. Once an adjacency is formed LSA (Link-State Advertisements) are used to exchange routing information.


  1. Working LAN connections
  2. Basic router configuration such as ip address assignment and turning on interfaces from shutdown state.

Step1: The very first thing to do is to select the best OSPF design according to your organizational needs such as single-Area OSPF or multi-area OSPF.

Step2: Identify the network interfaces on which you want to setup OSPF and the OSPF area.

Step3: On a router, use the router ospf process-id global command to enter OSPF configuration mode for a particular OSPF process. Example:

R9> enable

R9#configure terminal

Enter configuration commands, one per line.  End with CNTL/Z.

R9(config)#router ospf 1


Step4: (Optional) Configure the OSPF router ID by doing following:

  1. Use the router-id id-value router subcommand to define the router ID. Example:

R9(config-router) # router-id

  1. Use the interface loopback number global command, along with an ip address address mask command, to configure an IP address on a loopback interface (chooses the highest IP address of all working loops). Example:

R9(config)#Interface loopback2

R9(config-interface) #Ip address

  1. Rely on an interface IP address (chooses the highest IP address of the nonloopback interfaces).

Step5: Use one or more network ip-address wildcard-mask area area-id router subcommands to enable OSPF on any interfaces matched by the configured address and mask, enabling OSPF on the interface for the listed area. Example:

R9(config-router) #network area 1

R9(config-router) #network area 1

Step6: (Optional) Use the passive-interface type number router subcommand to configure any OSPF interfaces as passive if no neighbors can or must be discovered on it.

Perform these steps on all the routers in your internetwork. And then for verification purpose you can use these commands on your router:

  1. Show ip route
  2. Show ip protocols
  3. Show ip ospf database
  4. Show ip ospf neighbor

Click here for CCNA Certification

The supply of this course/package/program is governed by our terms and conditions. Please read them carefully before enrolling, as enrolment is conditional on acceptance of these terms and conditions. Courses run subject to registrations.


Find out why we are the leading choice to help boost your career in Australia

Prepare to get IT job ready in 8 weeks

Trained 10,000+ professionals and counting

Experienced Provider: Operating Since 2004

Trained staff from 1000+ Australian Businesses

We Have Placed Candidates In

Over 1000 organisations have relied on Logitrain to be their trusted training partner.

High-quality, cost-effective training in Australia
Learn More
  • OpenPay
  • This field is for validation purposes and should be left unchanged.

Dont’ Wait. Fill the form for a free no-obligation information session with our course specialists.

About The Author

Delivering Classroom and Live Virtual Training with Price Beat Guarantee

COVID discounts on Job Programs end soon, register today.