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.

11.1.1.0/3013.1.1.0/30 12.1.1.0/3014.1.1.0/30 R1RID 1.1.1.1 R2RID 2.2.2.2 R3RID 3.3.3.3 R4RID 4.4.4.4 Ubuntu OOB hostens4–ens7 · 10.0.31–34.10 OSPF PROCESS 1 · AREA 0

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).

LinkDeviceInterfaceIP addressSubnet
R1–R2R1FastEthernet0/011.1.1.1/30
R1–R2R2FastEthernet0/011.1.1.2/30
R1–R3R1FastEthernet1/013.1.1.1/30
R1–R3R3FastEthernet0/013.1.1.2/30
R2–R4R2FastEthernet1/012.1.1.1/30
R2–R4R4FastEthernet0/012.1.1.2/30
R3–R4R3FastEthernet2/014.1.1.1/30
R3–R4R4FastEthernet1/014.1.1.2/30

3. Out-of-band management addressing

Ubuntu connects directly to each router through a dedicated management interface.

RouterRouter OOB IPUbuntu NICUbuntu IP
R110.0.31.1/24ens410.0.31.10/24
R210.0.32.1/24ens510.0.32.10/24
R310.0.33.1/24ens610.0.33.10/24
R410.0.34.1/24ens710.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

RouterProcessRouter IDArea 0 networks
R111.1.1.111.1.1.0/30, 13.1.1.0/30
R212.2.2.211.1.1.0/30, 12.1.1.0/30
R313.3.3.313.1.1.0/30, 14.1.1.0/30
R414.4.4.412.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