Blame

f7e3aa Francesco 2026-10-14 20:12:46
1
# Lab: Multi-Area OSPFv2
2
7aaf17 Francesco 2026-10-14 20:13:19
3
https://www.pingmynetwork.com
4
f7e3aa Francesco 2026-10-14 20:12:46
5
## 1. Topology Overview
6
7
This lab implements a network consisting of five routers (R1 through R5) and two end devices (PC1 and PC2).
8
The network uses OSPFv2 (Process 1) and is hierarchically divided into three areas to optimize routing traffic:
9
10
- **Area 0 (Backbone):** Forms the central core of the network. It includes router R1 entirely, as well as the links toward R2 (on the 192.168.12.0/24 subnet) and R3 (on the 192.168.13.0/24 subnet).
11
- **Area 1:** Managed by R2, which acts as the Area Border Router (ABR). This area includes router R4, the 192.168.24.0/24 transit link, and the 10.10.1.0/24 LAN, to which PC1 is connected.
12
- **Area 2:** Managed by R3 in the ABR role. It includes router R5, the 192.168.35.0/24 transit link, and the 10.10.2.0/24 LAN, where PC2 resides.
13
14
## 2. Configuration Details and Best Practices
15
16
- **Static Router IDs:** Each router has an explicit unique identifier (for example, `router-id 1.1.1.1` on R1 and `router-id 4.4.4.4` on R4), ensuring topology stability during OSPF elections.
17
- **Point-to-Point Networks:** All direct links between routers (for example, GigabitEthernet0/0 and 0/1) are configured with `ip ospf network point-to-point`. This configuration disables the unnecessary Designated Router (DR) and Backup Designated Router (BDR) election, significantly speeding up convergence.
18
- **Passive Interfaces for Security:** On the edge routers R4 and R5, the interfaces connected to the user LANs (GigabitEthernet0/2 on R4 and GigabitEthernet0/0 on R5) are configured as `passive-interface`. This allows the routers to advertise the 10.10.1.0/24 and 10.10.2.0/24 networks into the OSPF domain without sending `Hello` packets toward the PCs, improving security and saving bandwidth.
19
20
## 3. Host Configuration
21
22
The two PCs are statically configured with the following parameters for their respective subnets:
23
24
- **PC1:** Has IP address `10.10.1.10/24` and points to gateway `10.10.1.4` (R4).
25
- **PC2:** Has IP address `10.10.2.10/24` and points to gateway `10.10.2.5` (R5).
26
27
### R1
28
```
29
hostname R1
30
!
31
interface GigabitEthernet0/0
32
ip address 192.168.12.1 255.255.255.0
33
ip ospf network point-to-point
34
!
35
interface GigabitEthernet0/1
36
ip address 192.168.13.1 255.255.255.0
37
ip ospf network point-to-point
38
!
39
router ospf 1
40
router-id 1.1.1.1
41
network 192.168.12.0 0.0.0.255 area 0
42
network 192.168.13.0 0.0.0.255 area 0
43
!
44
45
```
46
47
### R2
48
```
49
hostname R2
50
!
51
interface GigabitEthernet0/0
52
ip address 192.168.12.2 255.255.255.0
53
ip ospf network point-to-point
54
!
55
interface GigabitEthernet0/1
56
ip address 192.168.24.2 255.255.255.0
57
ip ospf network point-to-point
58
!
59
router ospf 1
60
router-id 2.2.2.2
61
network 192.168.12.0 0.0.0.255 area 0
62
network 192.168.24.0 0.0.0.255 area 1
63
!
64
```
65
66
### R3
67
```
68
hostname R3
69
!
70
interface GigabitEthernet0/0
71
ip address 192.168.13.3 255.255.255.0
72
ip ospf network point-to-point
73
!
74
interface GigabitEthernet0/1
75
ip address 192.168.35.3 255.255.255.0
76
ip ospf network point-to-point
77
!
78
router ospf 1
79
router-id 3.3.3.3
80
network 192.168.13.0 0.0.0.255 area 0
81
network 192.168.35.0 0.0.0.255 area 2
82
!
83
```
84
85
### R4
86
```
87
hostname R4
88
!
89
interface GigabitEthernet0/1
90
ip address 192.168.24.4 255.255.255.0
91
ip ospf network point-to-point
92
!
93
interface GigabitEthernet0/2
94
ip address 10.10.1.4 255.255.255.0
95
!
96
router ospf 1
97
router-id 4.4.4.4
98
passive-interface GigabitEthernet0/2
99
network 10.10.1.0 0.0.0.255 area 1
100
network 192.168.24.0 0.0.0.255 area 1
101
!
102
```
103
104
### R5
105
```
106
hostname R5
107
!
108
interface GigabitEthernet0/0
109
ip address 10.10.2.5 255.255.255.0
110
!
111
interface GigabitEthernet0/1
112
ip address 192.168.35.5 255.255.255.0
113
ip ospf network point-to-point
114
!
115
router ospf 1
116
router-id 5.5.5.5
117
passive-interface GigabitEthernet0/0
118
network 10.10.2.0 0.0.0.255 area 2
119
network 192.168.35.0 0.0.0.255 area 2
120
!
121
```