Implementing Multiple OSPF Areas

Nerd Cafe

Objective

In this guide, we will configure multiple OSPF areas using Cisco routers in a practical scenario. You will learn how to:

  • Configure OSPF in a multi-area environment.

  • Define Area Border Routers (ABRs).

  • Verify OSPF neighbor relationships and route advertisements.

Scenario Overview

Imagine a company with three branches, each connected through an OSPF network:

  • Area 0 (Backbone Area): The core of the network, connecting all areas.

  • Area 1 (Branch 1): A separate area for one branch.

  • Area 2 (Branch 2): Another separate area for another branch.

Each branch should communicate through Area 0.

🖥️ Step 1: Network Topology

We will use five routers (R1, R2, R3, R4, R5) in this topology:

Topology
  • R1 is in Area 0 (Backbone).

  • R2 is an ABR (Area Border Router), connecting Area 0 and Area 1.

  • R3 is another ABR, connecting Area 0 and Area 2.

  • R4 belongs to Area 1.

  • R5 belongs to Area 2.

🛠️ Step 2: IP Addressing Scheme

Assign IP addresses as follows:

Device
Interface
IP Address
Area

R1

s3/0

192.168.0.1/30

Area 0

R2

s3/0

192.168.0.2/30

Area 0

R2

s3/1

192.168.1.1/30

Area 1

R4

s3/1

192.168.1.2/30

Area 1

R1

s3/1

192.168.2.1/30

Area 0

R3

s3/1

192.168.2.2/30

Area 0

R3

s3/2

192.168.3.1/30

Area 2

R5

s3/2

192.168.3.2/30

Area 2

⚙️ Step 3: Basic Configuring Each Router

📝 R1

📝 R2

📝 R3

📝 R4

📝 R5

⚙️ Step 4: Configuring OSPF on Each Router

Now, configure OSPF on each router.

📝 R1 (Backbone Router in Area 0)

📝 R2 (ABR: Area 0 & Area 1)

📝 R3 (ABR: Area 0 & Area 2)

📝 R4 (Area 1 Router)

📝 R5 (Area 2 Router)

🔍 Step 5: Verify OSPF Configuration

Now, let's check if OSPF is working properly.

🔎 Verify OSPF Neighbor Relationships

On R1:

Output should show R2 and R3 as neighbors.

On R2:

Should list R1 and R4.

On R3:

Should list R1 and R5.

🔎 Verify OSPF Routing Table

Check the routing table on R1:

It should display routes learned from Area 1 and Area 2.

🛠️ Step 6: Testing Connectivity

Use ping to ensure connectivity between different areas.

📌 Key Takeaways

  • OSPF Area 0 (Backbone Area) is mandatory and connects all areas.

  • Area Border Routers (ABRs) are needed to connect different areas.

  • Use show ip ospf neighbor to verify neighbor relationships.

  • Use show ip route ospf to verify routes learned via OSPF.

  • Testing with ping and traceroute ensures correct connectivity.

🛠️ Bonus: OSPF LSA Types in Multi-Area OSPF

  • Type 1 (Router LSA): Sent by every router within an area.

  • Type 2 (Network LSA): Sent by DR (Designated Router).

  • Type 3 (Summary LSA): Sent by ABRs to summarize routes between areas.

  • Type 4 (ASBR Summary LSA): Used when an ASBR exists.

  • Type 5 (External LSA): Used for external routes (e.g., redistribution).

Keywords

OSPF, multiple areas, Area 0, ABR, backbone area, OSPF configuration, router, network, routing table, neighbor relationships, OSPF routing, area border router, LSR, LSA types, OSPF neighbor, OSPF area types, OSPF area boundary, area 1, area 2, OSPF design, IP address configuration, سیسکو

Last updated