Skip to content

14 OSPF triangle ​

Three FRR routers in a ring learn each other's loopbacks with OSPF and route around a broken cable.

What you practice ​

  • FRR on Debian: /etc/frr/daemons and /etc/frr/frr.conf
  • OSPF neighbors, point-to-point networks and loopbacks
  • Reconvergence after vz link down

Topology ​

NodeImageCPUs / memoryAddressesRole
r1debian-131 / 1GiBmgmt 10.114.0.11; to-r2 172.16.14.1/30; to-r3 172.16.14.10/30Loopback 10.0.0.1
r2debian-131 / 1GiBmgmt 10.114.0.12; to-r1 172.16.14.2/30; to-r3 172.16.14.5/30Loopback 10.0.0.2
r3debian-131 / 1GiBmgmt 10.114.0.13; to-r2 172.16.14.6/30; to-r1 172.16.14.9/30Loopback 10.0.0.3

Before you start ​

bash
vz image pull disk debian-13

Run it ​

bash
cd examples/14-ospf-triangle
vz validate
vz up
vz node ls
ssh lab@10.114.0.11        # password: lab

First boot installs packages; give it a minute or two after vz up returns.

Try it ​

bash
ssh lab@10.114.0.11 "sudo vtysh -c 'show ip ospf neighbor' -c 'show ip route ospf'"
ssh lab@10.114.0.11 'ping -c 2 -I 10.0.0.1 10.0.0.2'
vz link down r1-r2
ssh lab@10.114.0.11 'traceroute -n -s 10.0.0.1 10.0.0.2'   # now through r3
vz link up r1-r2

Notes ​

Every node also has a mgmt NIC on a NAT switch: out-of-band access from the Mac and package downloads. The exercise traffic stays on the links.

Clean up ​

bash
vz down
vz destroy --yes   # deletes the overlays and state of this lab