You successfully resolved the OSPF neighbor issue and restored network connectivity.
With the incident now fixed, the senior network engineer suggests reviewing the OSPF design to improve scalability.
This leads us to the concept of dividing OSPF into multiple areas.OSPF Multi-Area
OSPF works very well in a single-area design.
But imagine this:
What happens if you place many routers inside Area 0 (the backbone)?
Figure 1 - Area 0 LSDB overview
Scalability issues start to appear.
Let's understand why.In the example above, you can see six routers inside Area 0.
Shared LSDB in Area 0
All of them are backbone routers.
And they all share the same Link-State Database (LSDB).This means every router stores the same topology information.

Figure 2 - Backbone router role
Now think about it:
The more routers you add, the bigger the LSDB becomes.Answer the question below
If you add many routers inside Area 0, what becomes larger?
What Happens During a Topology Change?
If we follow the OSPF concept strictly, you already know that when a topology change occurs,
LSAs are distributed inside Area 0 so that all routers are informed about the change.That is exactly what is happening below.
R5 experiences a link failure, and this triggers an OSPF reaction.
Figure 3 - Global LSA flooding
LSAs are sent across the topology to indicate the change.
All routers inside Area 0 take this new information into account, and the SPF algorithm is executed on every router.The Scalability Problem
If all routers must execute SPF every time a small change happens in Area 0, CPU usage increases significantly.
The more routers you have in Area 0, the greater the impact.
Figure 4 - Full SPF recalculation
The size of the LSDB increases with the number of routers.
It is clear that single-area OSPF does not scale well when there are many routers.This is where OSPF Multi-Area comes into play.
We will see how it works in the next section.Answer the question below
When a topology change occurs, which algorithm is executed on every router?
OSPF Multi-Area allows you to divide OSPF into multiple areas.
As you can see below, each area has its own dedicated LSDB.Area Separation and Independent LSDBs
Each router runs a separate SPF calculation for every area in which it has interfaces.

Figure 5 - Separate LSDB per area
There is one fundamental rule you must understand.
Area 0 is the central backbone area, and all inter-area traffic must transit through Area 0.
All other areas must connect directly to Area 0 for Multi-Area OSPF to function properly.Answer the question below
Which area is the central backbone area in OSPF Multi-Area?
The Role of the ABR
To achieve this, OSPF uses a router called an Area Border Router (ABR).
As you can see below, an ABR connects two areas together.
An ABR maintains one LSDB per area.
Figure 6 - ABR multi-area design
In our topology, R2 is an ABR connecting Area 1 and Area 0.
R3 is an ABR connecting Area 0 and Area 2.Let's stop the theory here and move on to configuring OSPF Multi-Area together.
Answer the question below
Which router type connects two areas together in OSPF Multi-Area?
Here, you have the topology with the networks indicated.

Figure 7 - Multi-area IP topology
Topology and Assumptions
We assume that all interfaces already have their IP addresses configured, and we will focus only on the OSPF Multi-Area configuration.
We also assume that OSPF is already configured on R1, R4, R5, and R6.
We now only need to configure OSPF on the ABRs.Configure the ABRs
The first step is to start the OSPF process, define a router ID, and when advertising networks, specify the correct area.
R2# conf t Enter configuration commands, one per line. End with CNTL/Z. R2(config)# router ospf 1 R2(config-router)# router-id 2.2.2.2 R2(config-router)# network 10.1.12.0 0.0.0.3 area 1 R2(config-router)# network 10.0.23.0 0.0.0.3 area 0 R2(config-router)# endHere, R2 is connected to 10.1.12.0 in Area 1 and to 10.0.23.0 in Area 0.
Now we move to R3, the ABR that connects Area 0 and Area 2.R3# conf t Enter configuration commands, one per line. End with CNTL/Z. R3(config)# router ospf 1 R3(config-router)# router-id 3.3.3.3 R3(config-router)# network 10.0.23.0 0.0.0.3 area 0 R3(config-router)# network 10.2.34.0 0.0.0.3 area 2 R3(config-router)# endAfter defining the networks for each area, we can verify that the interfaces belong to the correct areas.
Verify OSPF Area Membership
We can use the command:
show ip ospf interface briefR2# show ip ospf interface brief Interface PID Area IP Address/Mask Cost State Nbrs F/C Gi0/0 1 0 10.0.23.1/30 1 DR 1/1 Gi0/1 1 1 10.1.12.2/30 1 BDR 1/1This confirms that the interfaces are assigned to the correct areas.
The same verification can be done on R3.R3# show ip ospf interface brief Interface PID Area IP Address/Mask Cost State Nbrs F/C Gi0/0 1 0 10.0.23.2/30 1 BDR 1/1 Gi0/1 1 2 10.2.34.1/30 1 BDR 1/1We will now look at the routes installed in our routing table.
Verify Inter-Area Routes
On R2, using the command:
show ip route ospfR2# show ip route ospf Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 Gateway of last resort is not set 10.0.0.0/8 is variably subnetted, 6 subnets, 3 masks O IA 10.2.34.0/30 [110/2] via 10.0.23.2, 00:04:04, GigabitEthernet0/0 O IA 10.2.100.0/24 [110/3] via 10.0.23.2, 00:04:03, GigabitEthernet0/0We can see that R2 has learned two OSPF routes marked as O IA.
This means these routes are inter-area routes.R2 has learned the networks
10.2.34.0/30and10.2.100.0/24, which belong to Area 2.
If we check R3, we observe the same principle.R3# show ip route ospf Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 Gateway of last resort is not set 10.0.0.0/8 is variably subnetted, 6 subnets, 3 masks O IA 10.1.12.0/30 [110/2] via 10.0.23.1, 00:04:27, GigabitEthernet0/0 O 10.2.100.0/24 [110/2] via 10.2.34.2, 00:04:22, GigabitEthernet0/1R3 has learned the network
10.1.12.0/30, which belongs to Area 1.Answer the question below
In the routing table, which code identifies inter-area OSPF routes?
There is another important concept you need to understand: the ASBR.
An ASBR (Autonomous System Boundary Router) is a router that connects OSPF to an external routing domain.An ASBR can exist in any area.
The ASBR Role
This router sits at the boundary between OSPF and an external autonomous system.
It allows OSPF to exchange routing information with networks outside the OSPF domain.
Figure 8 - ASBR Router
An ASBR is responsible for:
Learning routes from outside OSPF
Injecting external routes into the OSPF domain
Redistributing routes from other sources (static, connected, or other routing protocols)
This process is called route redistribution.
Answer the question below
What is the process called when an ASBR injects routes from other sources into OSPF?
Example of a Redistributed Route
On R3, we can verify this using:
R3# show ip route ospf Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 Gateway of last resort is not set 10.0.0.0/8 is variably subnetted, 4 subnets, 2 masks O IA 10.1.12.0/30 [110/2] via 10.0.23.1, 00:12:44, GigabitEthernet0/0 O 10.0.23.0/30 [110/1] is directly connected, GigabitEthernet0/0 O IA 10.2.34.0/30 [110/2] via 10.2.34.2, 00:12:41, GigabitEthernet0/1 O E2 172.16.1.0/24 [110/20] via 10.0.23.1, 00:05:18, GigabitEthernet0/0Notice the code O E2.
O = OSPF
E2 = External Type 2 route
This confirms that the network
172.16.1.0/24was redistributed into OSPF by the ASBR.
Once redistribution happens, all OSPF routers can learn about those external networks.Important
This is a more advanced topic.
We will go step by step.To fully understand how OSPF propagates external routes, we now need to study the different OSPF LSA types.
In the next lesson, we will dive into OSPF LSA Types in detail.Answer the question below
In the routing table, which code identifies an External Type 2 route?