For the complete documentation index, see llms.txt. This page is also available as Markdown.

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

stand-plan

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

Device A
Interface A
IPv4 A
IPv6 A
Device B
Interface B
IPv4 B
IPv6 B

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

Device
Loopback ipv4
loopback ipv6

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

Since task doesn't contain instructions for host IP addressing, and both leaf and spine nodes are implemented as routers, host IPs are assigned from separate subnets prior to overlay configuration. This ensures basic connectivity while keeping underlay and overlay roles clearly separated.

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

Clear-text is used because Netlab does not support MD5 authentication for FRR. Since authentication here serves mainly as a safeguard against misconfiguration, using plain text is acceptable.

Enable BFD on interfaces.

While the timers may appear overly conservative, in practice it's best to avoid values below 500 ms on virtual devices. This ensures stability without compromising responsiveness.

File Topology For quick reference, here’s the inline listing:

topology.yml

Validating

spine-1
spine-2

Verify ping reachability to all device loopbacks from leaf-1.

leaf-1 pings

Device configuration files: Spine-1 Spine-2 Leaf-1 Leaf-2 Leaf-3

Last updated