01 · LAB DESIGN
Lab Setup & IP Addressing
Four-router OSPF Area 0 diamond topology with a dedicated Ubuntu out-of-band management network.
1. Logical topology
All four router-to-router transit links participate in OSPF Area 0. OOB management links are separate and excluded from OSPF.
Conceptual logical diagram. Router-to-router /30 links and separate OOB management connections are shown; physical EVE-NG port layout may differ.
2. Router-to-router transit addressing
Point-to-point links use /30 networks (255.255.255.252).
| Link | Device | Interface | IP address | Subnet |
|---|---|---|---|---|
| R1–R2 | R1 | FastEthernet0/0 | 11.1.1.1 | /30 |
| R1–R2 | R2 | FastEthernet0/0 | 11.1.1.2 | /30 |
| R1–R3 | R1 | FastEthernet1/0 | 13.1.1.1 | /30 |
| R1–R3 | R3 | FastEthernet0/0 | 13.1.1.2 | /30 |
| R2–R4 | R2 | FastEthernet1/0 | 12.1.1.1 | /30 |
| R2–R4 | R4 | FastEthernet0/0 | 12.1.1.2 | /30 |
| R3–R4 | R3 | FastEthernet2/0 | 14.1.1.1 | /30 |
| R3–R4 | R4 | FastEthernet1/0 | 14.1.1.2 | /30 |
3. Out-of-band management addressing
Ubuntu connects directly to each router through a dedicated management interface.
| Router | Router OOB IP | Ubuntu NIC | Ubuntu IP |
|---|---|---|---|
| R1 | 10.0.31.1/24 | ens4 | 10.0.31.10/24 |
| R2 | 10.0.32.1/24 | ens5 | 10.0.32.10/24 |
| R3 | 10.0.33.1/24 | ens6 | 10.0.33.10/24 |
| R4 | 10.0.34.1/24 | ens7 | 10.0.34.10/24 |
Management separation: OOB subnets are used for SSH/Netmiko access and are excluded from OSPF. This allows management access during the R1–R2 transit-link failure test.
4. OSPF design
| Router | Process | Router ID | Area 0 networks |
|---|---|---|---|
| R1 | 1 | 1.1.1.1 | 11.1.1.0/30, 13.1.1.0/30 |
| R2 | 1 | 2.2.2.2 | 11.1.1.0/30, 12.1.1.0/30 |
| R3 | 1 | 3.3.3.3 | 13.1.1.0/30, 14.1.1.0/30 |
| R4 | 1 | 4.4.4.4 | 12.1.1.0/30, 14.1.1.0/30 |
Example OSPF configuration – R1
router ospf 1
router-id 1.1.1.1
network 11.1.1.0 0.0.0.3 area 0
network 13.1.1.0 0.0.0.3 area 0
Useful verification commands
show ip ospf
show ip ospf neighbor
show ip ospf interface brief
show ip route ospf
show ip interface brief
5. Automation environment
Hypervisor / labEVE-NG Pro 7.0.1-21
Automation hostUbuntu Server 22.04.02
Python3.10.12
Netmiko4.8.0
Paramiko4.0.0
Project directory/home/user/network-automation
cd ~/network-automation
source venv/bin/activate