lab02-OSPF-CLOS
Task Underlay. OSPF
Set up OSPF in the underlay network to establish IP connectivity between all network devices
• Document the following:
◦ Implementation plan
◦ IP addressing scheme
◦ Network topology diagram
◦ Device configurations (if applied manually or via automation)
• Verify IP reachability between all devices within the OSPF domain
Network diagram

The lab is built using the following role-based device mapping host- linux, leaf - frr, spine - arista
Underlay IP Address Allocation
• Underlay addressing follows the format 10.x.y.z, where:
◦ x = Data Center ID
◦ y = Spine switch ID
◦ z = Sequential host address per leaf connection
• Host addressing uses the 172.16.x.z/24 format, where:
◦ x = Leaf switch ID
◦ z = Sequential host address
◦ Each leaf switch uses .1 as its own IP in the corresponding subnet
• Loopback addressing uses 192.168.a.b/32, where:
◦ a = 1 for spine switches
◦ a = 2 for leaf switches
◦ b = Spine or leaf ID (assigned sequentially)
• IPv6 addressing uses fd00::[IPv4]
Interconnect ipv4 ipv6
Spine-1
Eth1
10.1.1.0/31
fd00::10:1:1:0/127
Leaf-1
Eth8
10.1.1.1/31
fd00::10:1:1:1/127
Spine-1
Eth2
10.1.1.2/31
fd00::10:1:1:2/127
Leaf-2
Eth8
10.1.1.3/31
fd00::10:1:1:3/127
Spine-1
Eth3
10.1.1.4/31
fd00::10:1:1:4/127
Leaf-3
Eth8
10.1.1.5/31
fd00::10:1:1:5/127
Spine-2
Eth2
10.1.2.0/31
fd00::10:2:1:0/127
Leaf-1
Eth9
10.1.2.1/31
fd00::10:2:1:1/127
Spine-2
Eth2
10.1.2.2/31
fd00::10:2:1:2/127
Leaf-2
Eth9
10.1.2.3/31
fd00::10:2:1:3/127
Spine-2
Eth3
10.1.2.4/31
fd00::10:2:1:4/127
Leaf-3
Eth9
10.1.2.5/31
fd00::10:2:1:5/127
Host-1
Eth1
172.16.1.2/24
fd00::172:16:1:2/116
Leaf-1
Eth1
172.16.1.1/24
fd00::172:16:1:1/116
Host-2
Eth1
172.16.2.2/24
fd00::172:16:2:2/116
Leaf-2
Eth1
172.16.2.1/24
fd00::172:16:2:1/116
Host-3
Eth1
172.16.3.2/24
fd00::172:16:3:2/116
Leaf-3
Eth1
172.16.3.1/24
fd00::172:16:3:1/116
Host-4
Eth1
172.16.4.2/24
fd00::172:16:4:2/116
Leaf-3
Eth2
172.16.4.1/24
fd00::172:16:4:1/116
loopback
Spine-1
192.168.1.1
fd00::192:168:1:1
Spine-2
192.168.1.2
fd00::192:168:1:2
Leaf-1
192.168.2.1
fd00::192:168:2:1
Leaf-2
192.168.2.2
fd00::192:168:2:2
Leaf-3
192.168.2.2
fd00::192:168:2:3
Once the overlay is deployed, we’ll place all hosts into a single subnet to emulate Layer 2 connectivity.
Launching a lab in the Netlab
Netlab Usage Notes:
To enable BFD in FRR, you need to manually activate the daemon in the default image, since Netlab does not officially declare BFD support for FRR devices. Edit the following file: /usr/local/lib/python3.10/dist-packages/netsim/templates/provider/clab/frr/daemons.j2 and add: bfdd=yes
Similarly, if you want to use other protocols without declaring Netlab modules, you can enable the desired daemons directly in the same file.
Lab Notes:
For OSPF, enable authentication on leaf–spine links using clear-text passwords (spine1, spine2).
Enable BFD on interfaces.
File Topology For quick reference, here’s the inline listing:
Validating
Verify ping reachability to all device loopbacks from leaf-1.
Device configuration files: Spine-1 Spine-2 Leaf-1 Leaf-2 Leaf-3
Last updated