Alpha Centauri Studies
CoursesFor Institutions

Loading...

Alpha Centauri Studies

CSEC past papers, worked

Past papers worked question by question, and courses built on the CSEC syllabus, for students across the Caribbean.

Serving Caribbean students since 2025

Explore

CoursesAboutContact

Support

PrivacyTermsHelp

Subscribe to Our Newsletter

New papers and courses, when they land.

Connect With Us
© 2026 Alpha Centauri Studies. All rights reserved.
3.4 OSPF: how it works, and configuring it

TutorialLab 1099 min

Lab 109: Configuring OSPF Routing

Lab 109: Configuring OSPF Routing

OSPF stands for Open Standard Path First. It is an open standard link state routing protocol. It uses cost metric to calculate the best route from source to destination for a given network. It supports unlimited number of hops and typically used for large networks such as Internet. It is complex routing protocol and understanding each and everything about the OSPF is beyond from the CCNA syllabus. However, following link will give provide you the basis concept and features that you must know about OSPF.

Click here to know the key features, components and notes of the OSPF routing protocol.

Once you are familiar with the basics of OSPF routing protocol, let’s start to configure OSPF. Load the Routing Topology file (same that we have been using with RIP and EIGRP) in Packet Tracer. We assume that the IP address configuration is already configured on each router as per the following table.

Sr. No.DeviceInterfaceIP Address
1Router1Fa0/ 110.0.0.1/ 8
S1/ 0192.168.1.1/ 24
2Router2S1/ 0192.168.1.2/24
Fa0/ 020.0.0.1/ 8
Fa0/ 1150.150.150.1/ 24
3Router3Fa0/ 1150.150.150.2/ 24
4Switch1N/ AN/ A
5Switch2N/ AN/ A
6PC0Fa010.0.0.2/ 8
7PC1Fa010.0.0.3/ 8
8PC2Fa020.0.0.2/ 8
9PC3Fa020.0.0.3/ 8

Please have a look at the following figure that we will use to configure and test the OSPF configuration. Understand clearly which interfaces are connected to which areas and what IP addresses are configured on them.

Packet Tracer topology for Lab 109, the same three router chain as the RIP lab but marked up with OSPF areas. A red box drawn round Router1 and Router2 is labelled Area 0 with networks 10.0.0.0/8, 20.0.0.0/8 and 192.168.1.0/24. A green box drawn round Router3, whose left edge cuts through Router2, is labelled Area 1 with network 150.150.150.0/24. A callout points at Router2 and reads ABR. Router1 and Router2 are 2811s, Router3 is a 2621XM. Router1 goes down to Switch0, a 2960-24TT, carrying PC0 and PC1; Router2 goes down to Switch1, also a 2960-24TT, carrying PC2 and PC3. The Router2 to Router3 link is drawn dashed.

Execute the show ip interface brief command on each router to verify the IP configuration. Once you verified the IP configuration on each router, proceed next to perform this exercise.

Understating Command Syntax

The OSPF routing protocol uses the following command syntax:

Router( config)# router ospf < process id 1-65535 >
Router( config-router) network < network address > < wild card mask > area < 0-
4294967295 >

Note: You can define an area number either in the decimal format or in the IP address format. For example, the area number 20 could be defined as 20 in the decimal format or as 0.0.0.20 in the IP address format.

Configuring the OSPF Routing

To configure the OSPF protocol in the loaded topology (Routing Topology), you need to perform the following steps:

  1. On Router1, execute the following commands:
Router1( config)# router ospf 100
Router1( config-router)# network 10.0.0.0 0.255.255.255 area 0
Router1( config-router)# network 192.168.1.0 0.0.0.255 area 0.0.0.0
Router1( config-router)# exit

A Packet Tracer IOS command line window titled Router1. OSPF process 100 is started with router ospf 100, and two networks are placed in area 0: network 10.0.0.0 0.255.255.255 area 0 and network 192.168.1.0 0.0.0.255 area 0. The router then exits config-router mode.

  1. On Router2, execute the following commands:
Router2( config)# router ospf 100
Router2( config-router)# network 20.0.0.0 0.255.255.255 area 0
Router2( config-router)# network 192.168.1.0 0.0.0.255 area 0
Router2( config-router)# network 150.150.150.0 0.0.0.255 area 1
Router2( config-router)# exit
Router2( config)# exit
Router2# show ip route

A Packet Tracer IOS command line window titled Router2. OSPF process 100 is started and network 20.0.0.0 0.255.255.255 area 0 and network 192.168.1.0 0.0.0.255 area 0 are entered. A log line timestamped 00:13:49 reports %OSPF-5-ADJCHG: Process 100, Nbr 192.168.1.1 on FastEthernet1/0 from LOADING to FULL, Loading D. network 150.150.150.0 0.0.0.255 area 1 is then entered, putting this router in two areas, and the router exits config-router mode.

  1. On Router3, execute the following commands:
Router3( config)# router ospf 200
Router3( config-router)# network 150.150.150.0 0.0.0.255 area 1
Router3( config-router)# exit
Router3( config)# exit
Router3# show ip route

A Packet Tracer IOS command line window titled Router3. config t is entered, OSPF process 100 is started with router ospf 100, and network 150.150.150.0 0.0.0.255 area 1 places the single link in area 1 before the router exits config-router mode.

Verifying OSFP Configuration

Once, you have configured OSPF on all the routers, now it is time to test and verify your configuration. To verify and test the OSPF configuration, execute the following commands on any router and review the output of each command. All of the following commands are self-explanatory.

Router# show ip ospf neighbor
Router# show ip ospf border-routers
Router# show ip ospf border-routers

A Packet Tracer IOS command line window titled Router3. show ip ospf neighbor lists one neighbour: ID 192.168.1.2, priority 0, state FULL with a dash, dead time 00:00:32, address 150.150.150.1, interface Serial2/0, which wraps onto its own line. show ip ospf database then prints OSPF Router with ID (150.150.150.2) (Process ID 100). Under Router Link States (Area 1) there are two entries, both aged 1045 with sequence 0x80000002: link ID 150.150.150.2 advertised by 150.150.150.2 with checksum 0x00152f and link count 2, and link ID 192.168.1.2 advertised by 192.168.1.2 with checksum 0x00108d and link count 2. Under Summary Net Link States (Area 1) there are three entries, all advertised by 192.168.1.2: 192.168.1.0 aged 1354 with sequence 0x80000001 and checksum 0x00b7cf, 10.0.0.0 aged 269 with sequence 0x80000002 and checksum 0x00f9eb, and 20.0.0.0 aged 259 with sequence 0x80000003 and checksum 0x006b70.

  1. To test the connectivity between all the devices in the loaded topology, execute the ping 10.0.0.2 command on Router3.

You should be able to communicate to PC0 successfully.

  1. Close Packet Tracer without saving any configuration in the Routing Topology file.

Source: itexamanswers.net