OSPF

Configure single-area OSPF in area 0 and verify reachability between routers.

Routing & Switching ·

I used this lab to practice getting routers in a single OSPF area to learn routes to remote subnets. I started with IP addressing and interface status before configuring area 0.

Lab topology

The goal is to establish dynamic reachability between the subnets in this topology. OSPF routers exchange link-state information and use interface costs to compute paths.

Figure 1 · Single-area OSPF topology
Figure 1 · Single-area OSPF topology

1. Assign IP addresses and enable interfaces

Configure the correct IP subnet on each connected interface on Routers 1, 2, and 3, then bring the interfaces up. Confirm the connected links are up before configuring OSPF.

Figure 2 · Router 1 interface settings
Figure 2 · Router 1 interface settings
Figure 3 · Router 2 interface settings
Figure 3 · Router 2 interface settings
Figure 4 · Router 3 interface settings
Figure 4 · Router 3 interface settings
Figure 5 · Topology with links up
Figure 5 · Topology with links up

2. Configure OSPF area 0

Configure OSPF on the three routers, create the loopbacks shown in the lab, and place the intended interfaces in area 0. The example network 0.0.0.0 255.255.255.255 area 0 matches every local IPv4 interface. Use a narrower interface match when you only want particular interfaces to participate.

Figure 6 · Router 1 OSPF configuration
Figure 6 · Router 1 OSPF configuration
Figure 7 · Router 2 OSPF configuration
Figure 7 · Router 2 OSPF configuration
Figure 8 · Router 3 OSPF configuration
Figure 8 · Router 3 OSPF configuration

3. Verify reachability with ping

Run a ping to a remote address after OSPF converges. If it fails, check interface status, OSPF neighbor adjacencies, and learned routes before retrying.

Figure 9 · Ping test across the routed topology
Figure 9 · Ping test across the routed topology

What I took away

The useful order was to bring up the links, configure OSPF, and then test reachability beyond directly connected networks. If the final ping fails, I can go back through those checks to narrow down where the problem starts.

Today I want to show a demonstration on how to configure an OSPF.

- OSPF is a routing protocol. Two routers speaking OSPF to each other exchange information about the routes they know about and the cost for them to get there.

The Goal of this Lab Topology

-  Achieve dynamic reachability between all the different subnet on the following network

-  Using OSPF, routers will be able to ping across neighboring routers

-  Subsequently affiliated switches will also be able to ping across network 

-  We will use the Lab Provided below to configure an OSPF (Single Area 0)


1.PNG

Steps Overview

  • Configure Router port interfaces (Correct Subnet)

  • Enable port Interfaces

  • OSPF Configuration applied

  • Ping Test to confirm dynamic reachability 

Step 1

  • Configuring Router 1/2/3 

  • Proper IP address applied to its connected Interfaces

  • Port Interfaces all enabled

Router 1.PNG
white spacing.PNG
Router 2.PNG
white spacing.PNG
Router 3.PNG
white spacing.PNG

Once all Interfaces have been assigned IP Address & Interfaces all enabled, you should see the following diagram

- All neighboring port Interfaces should be green

2.PNG

Step 2

  • Configuring OSPF on Router 1/2/3 

  • Create Loopback IP Address (Always stays up/up State)

  • Apply OSPF config for individual Interfaces 

  • Please Note that there are variety of method of applying OSPF config 

Example : network 0.0.0.0 255.255.255.255 area 0 

This specific command would apply OSPF to entire Interface at once 

(Not recommended)

Router OSPF 1.PNG
white spacing.PNG
Router OSPF 2.PNG
white spacing.PNG
Router OSPF 3.PNG

Step 3

Test ping once configuration is done

- If all the configuration is properly configured, you would be able to ping one router to another

ping test.PNG

This is how you setup dynamic routing using OSPF to achieve reachability between all the different subnet

- Chris

Previous
Previous

OSPF LAB

Next
Next

Static Route