OSPF Single Area Configuration

Nerd Cafe

Introduction

Open Shortest Path First (OSPF) is a link-state routing protocol used in medium to large networks due to its scalability and fast convergence. In this guide, we will configure Single-Area OSPF in GNS3, step by step, using a practical topology.

Step 1: Network Topology & Scenario

We will use three routers (R1, R2, and R3), all belonging to OSPF Area 0 (Backbone Area).

Network Diagram

Topology
  • R1 connects to R2 using 192.168.12.0/30

  • R2 connects to R3 using 192.168.23.0/30

  • All routers will participate in OSPF Area 0

Step 2: Setting Up GNS3

  1. Open GNS3 and create a new project.

  2. Drag and drop three routers (e.g., Cisco 7200 or C3725).

  3. Connect the routers as shown in the diagram using Ethernet links.

  4. Assign IP addresses to interfaces.

Step 3: Configuring IP Addresses

  • Router R1

  • Router R2

  • Router R3

Step 4: Configuring OSPF (Single Area 0)

  • Router R1

  • Router R2

  • Router R3

Step 5: Verify OSPF Configuration

Check OSPF Neighbor Relationships

Run this command on all routers:

  • Router R1

  • Router R2

  • Router R3

Check OSPF Routing Table

Run this command on all routers:

  • Router R1

  • Router R2

  • Router R3

Step 5: Testing Connectivity

Ping from R1 to R3 to test end-to-end reachability:

A successful ping means that OSPF has correctly learned and propagated routes.

Keywords

OSPF, single area, configuration, GNS3, routing, Cisco, neighbor adjacency, link-state, area 0, SPF algorithm, LSAs, network topology, IP addressing, OSPF process, routing table, cost metric, hello packets, DR/BDR, route propagation, troubleshooting, CCNP, CCNA, سیسکو

Last updated