Skip to content

Instantly share code, notes, and snippets.

@rwestphal
Created May 24, 2018 23:20
Show Gist options
  • Save rwestphal/f066501b4c61192e9acd5b997a1db404 to your computer and use it in GitHub Desktop.
Save rwestphal/f066501b4c61192e9acd5b997a1db404 to your computer and use it in GitHub Desktop.
# +-----------+
# +--------+rt2-eth0 rt1-eth0| |rt1-eth7 rt9-eth0+--------+
# | rt2 +-----------------------+ +-----------------------+ rt9 |
# +--------+ (ah-md5) | | (esp-3des/ah-sha1) +--------+
# | |
# +--------+rt3-eth0 rt1-eth1| |rt1-eth8 rt10-eth0+--------+
# | rt3 +-----------------------+ +-----------------------+ rt10 |
# +--------+ (ah-sha1) | | (esp-aes-128/ah-md5) +--------+
# | |
# +--------+rt4-eth0 rt1-eth2| |rt1-eth9 rt11-eth0+--------+
# | rt4 +-----------------------+ +-----------------------+ rt11 |
# +--------+ (esp-null/ah-md5) | | (esp-aes-128/ah-sha1) +--------+
# | |
# +--------+rt5-eth0 rt1-eth3| |rt1-eth10 rt12-eth0+--------+
# | rt5 +-----------------------+ +-----------------------+ rt12 |
# +--------+ (esp-null/ah-sha1) | rt1 | (esp-aes-192/ah-md5) +--------+
# | |
# +--------+rt6-eth0 rt1-eth4| |rt1-eth11 rt13-eth0+--------+
# | rt6 +-----------------------+ +-----------------------+ rt13 |
# +--------+ (esp-des/ah-md5) | | (esp-aes-192/ah-sha1) +--------+
# | |
# +--------+rt7-eth0 rt1-eth5| |rt1-eth12 rt14-eth0+--------+
# | rt7 +-----------------------+ +-----------------------+ rt14 |
# +--------+ (esp-des/ah-sha1) | | (esp-aes-256/ah-md5) +--------+
# | |
# +--------+rt8-eth0 rt1-eth6| |rt1-eth13 rt15-eth0+--------+
# | rt8 +-----------------------+ +-----------------------+ rt15 |
# +--------+ (esp-3des/ah-md5) | | (esp-aes-256/ah-sha1) +--------+
# | |
# +-----------+
---
routers:
rt1:
links:
rt1-eth0:
peer: [rt2, rt2-eth0]
rt1-eth1:
peer: [rt3, rt3-eth0]
rt1-eth2:
peer: [rt4, rt4-eth0]
rt1-eth3:
peer: [rt5, rt5-eth0]
rt1-eth4:
peer: [rt6, rt6-eth0]
rt1-eth5:
peer: [rt7, rt7-eth0]
rt1-eth6:
peer: [rt8, rt8-eth0]
rt1-eth7:
peer: [rt9, rt9-eth0]
rt1-eth8:
peer: [rt10, rt10-eth0]
rt1-eth9:
peer: [rt11, rt11-eth0]
rt1-eth10:
peer: [rt12, rt12-eth0]
rt1-eth11:
peer: [rt13, rt13-eth0]
rt1-eth12:
peer: [rt14, rt14-eth0]
rt1-eth13:
peer: [rt15, rt15-eth0]
frr:
zebra:
config: |
config: |
ospf6d:
config: |
router ospf6
router-id 1.1.1.1
interface rt1-eth0 area 0.0.0.0
interface rt1-eth1 area 0.0.0.0
interface rt1-eth2 area 0.0.0.0
interface rt1-eth3 area 0.0.0.0
interface rt1-eth4 area 0.0.0.0
interface rt1-eth5 area 0.0.0.0
interface rt1-eth6 area 0.0.0.0
interface rt1-eth7 area 0.0.0.0
interface rt1-eth8 area 0.0.0.0
interface rt1-eth9 area 0.0.0.0
interface rt1-eth10 area 0.0.0.0
interface rt1-eth11 area 0.0.0.0
interface rt1-eth12 area 0.0.0.0
interface rt1-eth13 area 0.0.0.0
!
interface rt1-eth0
ipv6 ospf6 hello-interval 1
ipv6 ospf6 dead-interval 3
ipv6 ospf authentication ipsec spi 1002 md5 01234567890123456789012345678901
!
interface rt1-eth1
ipv6 ospf6 hello-interval 1
ipv6 ospf6 dead-interval 3
ipv6 ospf authentication ipsec spi 1003 sha1 0123456789012345678901234567890123456789
!
interface rt1-eth2
ipv6 ospf6 hello-interval 1
ipv6 ospf6 dead-interval 3
ipv6 ospf encryption ipsec spi 1004 esp null md5 12345678901234567890123456789012
!
interface rt1-eth3
ipv6 ospf6 hello-interval 1
ipv6 ospf6 dead-interval 3
ipv6 ospf encryption ipsec spi 1005 esp null sha1 0123456789012345678901234567890123456789
!
interface rt1-eth4
ipv6 ospf6 hello-interval 1
ipv6 ospf6 dead-interval 3
ipv6 ospf encryption ipsec spi 1006 esp des 0123456789012345 md5 12345678901234567890123456789012
!
interface rt1-eth5
ipv6 ospf6 hello-interval 1
ipv6 ospf6 dead-interval 3
ipv6 ospf encryption ipsec spi 1007 esp des 0123456789012345 sha1 0123456789012345678901234567890123456789
!
interface rt1-eth6
ipv6 ospf6 hello-interval 1
ipv6 ospf6 dead-interval 3
ipv6 ospf encryption ipsec spi 1008 esp triple-des 123456789012345678901234567890123456789012345678 md5 12345678901234567890123456789012
!
interface rt1-eth7
ipv6 ospf6 hello-interval 1
ipv6 ospf6 dead-interval 3
ipv6 ospf encryption ipsec spi 1009 esp triple-des 123456789012345678901234567890123456789012345678 sha1 0123456789012345678901234567890123456789
!
interface rt1-eth8
ipv6 ospf6 hello-interval 1
ipv6 ospf6 dead-interval 3
ipv6 ospf encryption ipsec spi 1010 esp aes-cbc-128 12345678901234567890123456789012 md5 12345678901234567890123456789012
!
interface rt1-eth9
ipv6 ospf6 hello-interval 1
ipv6 ospf6 dead-interval 3
ipv6 ospf encryption ipsec spi 1011 esp aes-cbc-128 12345678901234567890123456789012 sha1 0123456789012345678901234567890123456789
!
interface rt1-eth10
ipv6 ospf6 hello-interval 1
ipv6 ospf6 dead-interval 3
ipv6 ospf encryption ipsec spi 1012 esp aes-cbc-192 123456789012345678901234567890123456789012345678 md5 12345678901234567890123456789012
!
interface rt1-eth11
ipv6 ospf6 hello-interval 1
ipv6 ospf6 dead-interval 3
ipv6 ospf encryption ipsec spi 1013 esp aes-cbc-192 123456789012345678901234567890123456789012345678 sha1 0123456789012345678901234567890123456789
!
interface rt1-eth12
ipv6 ospf6 hello-interval 1
ipv6 ospf6 dead-interval 3
ipv6 ospf encryption ipsec spi 1014 esp aes-cbc-256 1234567890123456789012345678901234567890123456789012345678901234 md5 12345678901234567890123456789012
!
interface rt1-eth13
ipv6 ospf6 hello-interval 1
ipv6 ospf6 dead-interval 3
ipv6 ospf encryption ipsec spi 1015 esp aes-cbc-256 1234567890123456789012345678901234567890123456789012345678901234 sha1 0123456789012345678901234567890123456789
!
rt2:
links:
rt2-eth0:
peer: [rt1, rt1-eth0]
frr:
zebra:
config: |
ospf6d:
config: |
router ospf6
router-id 2.2.2.2
interface rt2-eth0 area 0.0.0.0
!
interface rt2-eth0
ipv6 ospf6 hello-interval 1
ipv6 ospf6 dead-interval 3
ipv6 ospf authentication ipsec spi 1002 md5 01234567890123456789012345678901
!
rt3:
links:
rt3-eth0:
peer: [rt1, rt1-eth1]
frr:
zebra:
config: |
ospf6d:
config: |
router ospf6
router-id 3.3.3.3
interface rt3-eth0 area 0.0.0.0
!
interface rt3-eth0
ipv6 ospf6 hello-interval 1
ipv6 ospf6 dead-interval 3
ipv6 ospf authentication ipsec spi 1003 sha1 0123456789012345678901234567890123456789
!
rt4:
links:
rt4-eth0:
peer: [rt1, rt1-eth2]
frr:
zebra:
config: |
ospf6d:
config: |
router ospf6
router-id 4.4.4.4
interface rt4-eth0 area 0.0.0.0
!
interface rt4-eth0
ipv6 ospf6 hello-interval 1
ipv6 ospf6 dead-interval 3
ipv6 ospf encryption ipsec spi 1004 esp null md5 12345678901234567890123456789012
!
rt5:
links:
rt5-eth0:
peer: [rt1, rt1-eth3]
frr:
zebra:
config: |
ospf6d:
config: |
router ospf6
router-id 5.5.5.5
interface rt5-eth0 area 0.0.0.0
!
interface rt5-eth0
ipv6 ospf6 hello-interval 1
ipv6 ospf6 dead-interval 3
ipv6 ospf encryption ipsec spi 1005 esp null md5 12345678901234567890123456789012
!
rt6:
links:
rt6-eth0:
peer: [rt1, rt1-eth4]
frr:
zebra:
config: |
ospf6d:
config: |
router ospf6
router-id 6.6.6.6
interface rt6-eth0 area 0.0.0.0
!
interface rt6-eth0
ipv6 ospf6 hello-interval 1
ipv6 ospf6 dead-interval 3
ipv6 ospf encryption ipsec spi 1006 esp des 0123456789012345 md5 12345678901234567890123456789012
!
rt7:
links:
rt7-eth0:
peer: [rt1, rt1-eth5]
frr:
zebra:
config: |
ospf6d:
config: |
router ospf6
router-id 7.7.7.7
interface rt7-eth0 area 0.0.0.0
!
interface rt7-eth0
ipv6 ospf6 hello-interval 1
ipv6 ospf6 dead-interval 3
ipv6 ospf encryption ipsec spi 1007 esp des 0123456789012345 sha1 0123456789012345678901234567890123456789
!
rt8:
links:
rt8-eth0:
peer: [rt1, rt1-eth6]
frr:
zebra:
config: |
ospf6d:
config: |
router ospf6
router-id 8.8.8.8
interface rt8-eth0 area 0.0.0.0
!
interface rt8-eth0
ipv6 ospf6 hello-interval 1
ipv6 ospf6 dead-interval 3
ipv6 ospf encryption ipsec spi 1008 esp triple-des 123456789012345678901234567890123456789012345678 md5 12345678901234567890123456789012
!
rt9:
links:
rt9-eth0:
peer: [rt1, rt1-eth7]
frr:
zebra:
config: |
ospf6d:
config: |
router ospf6
router-id 9.9.9.9
interface rt9-eth0 area 0.0.0.0
!
interface rt9-eth0
ipv6 ospf6 hello-interval 1
ipv6 ospf6 dead-interval 3
ipv6 ospf encryption ipsec spi 1009 esp triple-des 123456789012345678901234567890123456789012345678 sha1 0123456789012345678901234567890123456789
!
rt10:
links:
rt10-eth0:
peer: [rt1, rt1-eth8]
frr:
zebra:
config: |
ospf6d:
config: |
router ospf6
router-id 10.10.10.10
interface rt10-eth0 area 0.0.0.0
!
interface rt10-eth0
ipv6 ospf6 hello-interval 1
ipv6 ospf6 dead-interval 3
ipv6 ospf encryption ipsec spi 1010 esp aes-cbc-128 12345678901234567890123456789012 md5 12345678901234567890123456789012
!
rt11:
links:
rt11-eth0:
peer: [rt1, rt1-eth9]
frr:
zebra:
config: |
ospf6d:
config: |
router ospf6
router-id 11.11.11.11
interface rt11-eth0 area 0.0.0.0
!
interface rt11-eth0
ipv6 ospf6 hello-interval 1
ipv6 ospf6 dead-interval 3
ipv6 ospf encryption ipsec spi 1011 esp aes-cbc-128 12345678901234567890123456789012 sha1 0123456789012345678901234567890123456789
!
rt12:
links:
rt12-eth0:
peer: [rt1, rt1-eth10]
frr:
zebra:
config: |
ospf6d:
config: |
router ospf6
router-id 12.12.12.12
interface rt12-eth0 area 0.0.0.0
!
interface rt12-eth0
ipv6 ospf6 hello-interval 1
ipv6 ospf6 dead-interval 3
ipv6 ospf encryption ipsec spi 1012 esp aes-cbc-192 123456789012345678901234567890123456789012345678 md5 12345678901234567890123456789012
!
rt13:
links:
rt13-eth0:
peer: [rt1, rt1-eth11]
frr:
zebra:
config: |
ospf6d:
config: |
router ospf6
router-id 13.13.13.13
interface rt13-eth0 area 0.0.0.0
!
interface rt13-eth0
ipv6 ospf6 hello-interval 1
ipv6 ospf6 dead-interval 3
ipv6 ospf encryption ipsec spi 1013 esp aes-cbc-192 123456789012345678901234567890123456789012345678 sha1 0123456789012345678901234567890123456789
!
rt14:
links:
rt14-eth0:
peer: [rt1, rt1-eth12]
frr:
zebra:
config: |
ospf6d:
config: |
router ospf6
router-id 14.14.14.14
interface rt14-eth0 area 0.0.0.0
!
interface rt14-eth0
ipv6 ospf6 hello-interval 1
ipv6 ospf6 dead-interval 3
ipv6 ospf encryption ipsec spi 1014 esp aes-cbc-256 1234567890123456789012345678901234567890123456789012345678901234 md5 12345678901234567890123456789012
!
rt15:
links:
rt15-eth0:
peer: [rt1, rt1-eth13]
frr:
zebra:
config: |
ospf6d:
config: |
router ospf6
router-id 15.15.15.15
interface rt15-eth0 area 0.0.0.0
!
interface rt15-eth0
ipv6 ospf6 hello-interval 1
ipv6 ospf6 dead-interval 3
ipv6 ospf encryption ipsec spi 1015 esp aes-cbc-256 1234567890123456789012345678901234567890123456789012345678901234 sha1 0123456789012345678901234567890123456789
!
frr:
base-configs:
all: |
hostname %(node)-%(daemon)
password 1
log file %(logdir)/%(node)-%(daemon).log
zebra: |
debug zebra packet
ospf6d: |
debug ospf6 ipsec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment