Skip to content

Instantly share code, notes, and snippets.

@rwestphal
Created January 30, 2019 12:53
Show Gist options
  • Save rwestphal/9fc59b2bc055371f9814c84e9472e3f4 to your computer and use it in GitHub Desktop.
Save rwestphal/9fc59b2bc055371f9814c84e9472e3f4 to your computer and use it in GitHub Desktop.
# +---------+
# | |
# | RT1 |
# | 1.1.1.1 |
# | |
# +---------+
# |rt1-eth0 (.1)
# |
# |10.0.1.0/24
# |
# |rt2-eth0 (.2)
# +---------+
# | |
# | RT2 |
# | 2.2.2.2 |
# | |
# +---------+
# (.2) rt2-eth1| |rt2-eth2 (.2)
# | |
# 10.0.2.0/24 | | 10.0.3.0/24
# +---------+ +--------+
# | |
# | |
# |rt3-eth0 (.3) |rt4-eth0 (.4)
# +---------+ +---------+
# | | | |
# | RT3 | | RT4 |
# | 3.3.3.3 | | 4.4.4.4 |
# | | | |
# +---------+ +---------+
---
routers:
rt1:
links:
rt1-lo1:
ipv4: 1.1.1.1/32
rt1-eth0:
peer: [rt2, rt2-eth0]
ipv4: 10.0.1.1/24
frr:
zebra:
config: |
ospfd:
config: |
interface rt1-lo1
ip ospf network point-to-point
ip ospf area 0
!
interface rt1-eth0
ip ospf network point-to-point
ip ospf area 0
ip ospf hello-interval 1
ip ospf dead-interval 3
!
router ospf
router-id 1.1.1.1
capability opaque
router-info area 0.0.0.0
segment-routing on
segment-routing prefix 1.1.1.1/32 index 1
!
rt2:
links:
rt2-lo1:
ipv4: 2.2.2.2/32
rt2-eth0:
peer: [rt1, rt1-eth0]
ipv4: 10.0.1.2/24
rt2-eth1:
peer: [rt3, rt3-eth0]
ipv4: 10.0.2.2/24
rt2-eth2:
peer: [rt4, rt4-eth0]
ipv4: 10.0.3.2/24
frr:
zebra:
config: |
ospfd:
config: |
interface rt2-lo1
ip ospf network point-to-point
ip ospf area 0
!
interface rt2-eth0
ip ospf network point-to-point
ip ospf area 0
ip ospf hello-interval 1
ip ospf dead-interval 3
!
interface rt2-eth1
ip ospf network point-to-point
ip ospf area 0
ip ospf hello-interval 1
ip ospf dead-interval 3
!
interface rt2-eth2
ip ospf network point-to-point
ip ospf area 0
ip ospf hello-interval 1
ip ospf dead-interval 3
!
router ospf
router-id 2.2.2.2
capability opaque
router-info area 0.0.0.0
segment-routing on
segment-routing prefix 2.2.2.2/32 index 2
!
rt3:
links:
rt3-lo1:
ipv4: 3.3.3.3/32
rt3-eth0:
peer: [rt2, rt2-eth1]
ipv4: 10.0.2.3/24
frr:
zebra:
config: |
ospfd:
config: |
interface rt3-lo1
ip ospf network point-to-point
ip ospf area 0
!
interface rt3-eth0
ip ospf network point-to-point
ip ospf area 0
ip ospf hello-interval 1
ip ospf dead-interval 3
!
router ospf
router-id 3.3.3.3
capability opaque
router-info area 0.0.0.0
segment-routing on
segment-routing prefix 3.3.3.3/32 index 3
!
rt4:
links:
rt4-lo1:
ipv4: 4.4.4.4/32
rt4-eth0:
peer: [rt2, rt2-eth0]
ipv4: 10.0.3.4/24
frr:
zebra:
config: |
ospfd:
config: |
interface rt4-lo1
ip ospf network point-to-point
ip ospf area 0
!
interface rt4-eth0
ip ospf network point-to-point
ip ospf area 0
ip ospf hello-interval 1
ip ospf dead-interval 3
!
router ospf
router-id 4.4.4.4
capability opaque
router-info area 0.0.0.0
segment-routing on
segment-routing prefix 4.4.4.4/32 index 4
!
switches:
frr:
base-configs:
all: |
hostname %(node)-%(daemon)
password 1
log file %(logdir)/%(node)-%(daemon).log
zebra: |
debug zebra kernel
ospfd: |
debug ospf zebra
debug ospf sr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment