Last active
April 10, 2019 14:25
-
-
Save rwestphal/9707df2ff6c2073c8b46a23e7d603859 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# +---------+ | |
# | | | |
# | RT1 | | |
# | 1.1.1.1 |-lo1 (2001:db8:1000::1/128) | |
# | | | |
# +---------+ | |
# |rt1-eth0 (.1) | |
# | | |
# |10.0.1.0/24 | |
# |2001:DB8:1::/64 | |
# | | |
# |rt2-eth0 (.2) | |
# +---------+ | |
# | | | |
# | RT2 | | |
# | 2.2.2.2 |-lo1 (2001:db8:1000::2/128) | |
# | | | |
# +---------+ | |
# |rt2-eth1 (.2) | |
# | | |
# | | |
# +----------+----------+ | |
# | 10.0.2.0/24 | | |
# | 2001:DB8:2::/64 | | |
# | | | |
# |rt3-eth0 (.3) |rt4-eth0 (.4) | |
# +---------+ +---------+ | |
# | | | | | |
#(2001:db8:1000::3/128) lo1-| RT3 | | RT4 |-lo1 (2001:db8:1000::4/128) | |
# | 3.3.3.3 | | 4.4.4.4 | | |
# | | | | | |
# +---------+ +---------+ | |
--- | |
routers: | |
rt1: | |
links: | |
rt1-lo1: | |
ipv4: 1.1.1.1/32 | |
ipv6: 2001:db8:1000::1/128 | |
rt1-eth0: | |
peer: [rt2, rt2-eth0] | |
mpls: yes | |
ipv4: 10.0.1.1/24 | |
ipv6: 2001:DB8:1::1/64 | |
frr: | |
staticd: | |
delay: 1 | |
config: | | |
ip route 10.0.2.0/24 10.0.1.2 | |
ipv6 route 2001:DB8:2::/64 2001:DB8:1::2 | |
zebra: | |
config: | | |
mpls label global-block 16 1000 | |
mpls label bind 1.1.1.1/32 101 | |
mpls label bind 2.2.2.2/32 102 | |
mpls label bind 3.3.3.3/32 103 | |
mpls label bind 4.4.4.4/32 104 | |
mpls label bind 2001:db8:1000::1/128 151 | |
mpls label bind 2001:db8:1000::2/128 152 | |
mpls label bind 2001:db8:1000::3/128 153 | |
mpls label bind 2001:db8:1000::4/128 154 | |
bgpd: | |
config: | | |
router bgp 1 | |
neighbor 10.0.1.2 remote-as 1 | |
! | |
address-family ipv4 unicast | |
network 1.1.1.1/32 | |
no neighbor 10.0.1.2 activate | |
exit-address-family | |
! | |
address-family ipv4 labeled-unicast | |
neighbor 10.0.1.2 activate | |
exit-address-family | |
! | |
address-family ipv6 unicast | |
network 2001:db8:1000::1/128 | |
no neighbor 10.0.1.2 activate | |
exit-address-family | |
! | |
address-family ipv6 labeled-unicast | |
neighbor 10.0.1.2 activate | |
exit-address-family | |
! | |
! | |
rt2: | |
links: | |
rt2-lo1: | |
ipv4: 2.2.2.2/32 | |
ipv6: 2001:db8:1000::2/128 | |
rt2-eth0: | |
peer: [rt1, rt1-eth0] | |
mpls: yes | |
ipv4: 10.0.1.2/24 | |
ipv6: 2001:DB8:1::2/64 | |
rt2-eth1: | |
peer: [sw1, sw1-1] | |
mpls: yes | |
ipv4: 10.0.2.2/24 | |
ipv6: 2001:DB8:2::2/64 | |
frr: | |
zebra: | |
config: | | |
mpls label global-block 16 1000 | |
mpls label bind 1.1.1.1/32 201 | |
mpls label bind 2.2.2.2/32 202 | |
mpls label bind 3.3.3.3/32 203 | |
mpls label bind 4.4.4.4/32 204 | |
mpls label bind 2001:db8:1000::1/128 251 | |
mpls label bind 2001:db8:1000::2/128 252 | |
mpls label bind 2001:db8:1000::3/128 253 | |
mpls label bind 2001:db8:1000::4/128 254 | |
bgpd: | |
config: | | |
router bgp 1 | |
neighbor 10.0.1.1 remote-as 1 | |
neighbor 10.0.2.3 remote-as 1 | |
neighbor 10.0.2.4 remote-as 1 | |
! | |
address-family ipv4 unicast | |
network 2.2.2.2/32 | |
no neighbor 10.0.1.1 activate | |
no neighbor 10.0.2.3 activate | |
no neighbor 10.0.2.4 activate | |
exit-address-family | |
! | |
address-family ipv4 labeled-unicast | |
neighbor 10.0.1.1 activate | |
neighbor 10.0.1.1 route-reflector-client | |
neighbor 10.0.2.3 activate | |
neighbor 10.0.2.3 route-reflector-client | |
neighbor 10.0.2.4 activate | |
neighbor 10.0.2.4 route-reflector-client | |
exit-address-family | |
! | |
address-family ipv6 unicast | |
network 2001:db8:1000::2/128 | |
no neighbor 10.0.1.1 activate | |
no neighbor 10.0.2.3 activate | |
no neighbor 10.0.2.4 activate | |
exit-address-family | |
! | |
address-family ipv6 labeled-unicast | |
neighbor 10.0.1.1 activate | |
neighbor 10.0.1.1 route-reflector-client | |
neighbor 10.0.2.3 activate | |
neighbor 10.0.2.3 route-reflector-client | |
neighbor 10.0.2.4 activate | |
neighbor 10.0.2.4 route-reflector-client | |
exit-address-family | |
! | |
! | |
rt3: | |
links: | |
rt3-lo1: | |
ipv4: 3.3.3.3/32 | |
ipv6: 2001:db8:1000::3/128 | |
rt3-eth0: | |
peer: [sw1, sw1-2] | |
mpls: yes | |
ipv4: 10.0.2.3/24 | |
ipv6: 2001:DB8:2::3/64 | |
frr: | |
staticd: | |
delay: 1 | |
config: | | |
ip route 10.0.1.0/24 10.0.2.2 | |
ipv6 route 2001:DB8:1::/64 2001:DB8:2::2 | |
zebra: | |
config: | | |
mpls label global-block 16 1000 | |
mpls label bind 1.1.1.1/32 301 | |
mpls label bind 2.2.2.2/32 302 | |
mpls label bind 3.3.3.3/32 303 | |
mpls label bind 4.4.4.4/32 304 | |
mpls label bind 2001:db8:1000::1/128 351 | |
mpls label bind 2001:db8:1000::2/128 352 | |
mpls label bind 2001:db8:1000::3/128 353 | |
mpls label bind 2001:db8:1000::4/128 354 | |
bgpd: | |
config: | | |
router bgp 1 | |
neighbor 10.0.2.2 remote-as 1 | |
! | |
address-family ipv4 unicast | |
network 3.3.3.3/32 | |
no neighbor 10.0.2.2 activate | |
exit-address-family | |
! | |
address-family ipv4 labeled-unicast | |
neighbor 10.0.2.2 activate | |
exit-address-family | |
! | |
address-family ipv6 unicast | |
network 2001:db8:1000::3/128 | |
no neighbor 10.0.2.2 activate | |
exit-address-family | |
! | |
address-family ipv6 labeled-unicast | |
neighbor 10.0.2.2 activate | |
exit-address-family | |
! | |
! | |
rt4: | |
links: | |
rt4-lo1: | |
ipv4: 4.4.4.4/32 | |
ipv6: 2001:db8:1000::4/128 | |
rt4-eth0: | |
peer: [sw1, sw1-3] | |
mpls: yes | |
ipv4: 10.0.2.4/24 | |
ipv6: 2001:DB8:2::4/64 | |
frr: | |
staticd: | |
delay: 1 | |
config: | | |
ip route 10.0.1.0/24 10.0.2.2 | |
ipv6 route 2001:DB8:1::/64 2001:DB8:2::2 | |
zebra: | |
config: | | |
mpls label global-block 16 1000 | |
mpls label bind 1.1.1.1/32 401 | |
mpls label bind 2.2.2.2/32 402 | |
mpls label bind 3.3.3.3/32 403 | |
mpls label bind 4.4.4.4/32 404 | |
mpls label bind 2001:db8:1000::1/128 451 | |
mpls label bind 2001:db8:1000::2/128 452 | |
mpls label bind 2001:db8:1000::3/128 453 | |
mpls label bind 2001:db8:1000::4/128 454 | |
bgpd: | |
config: | | |
router bgp 1 | |
neighbor 10.0.2.2 remote-as 1 | |
! | |
address-family ipv4 unicast | |
network 4.4.4.4/32 | |
no neighbor 10.0.2.2 activate | |
exit-address-family | |
! | |
address-family ipv4 labeled-unicast | |
neighbor 10.0.2.2 activate | |
exit-address-family | |
! | |
address-family ipv6 unicast | |
network 2001:db8:1000::4/128 | |
no neighbor 10.0.2.2 activate | |
exit-address-family | |
! | |
address-family ipv6 labeled-unicast | |
neighbor 10.0.2.2 activate | |
exit-address-family | |
! | |
! | |
switches: | |
sw1: | |
links: | |
sw1-1: | |
peer: [rt2, rt2-eth1] | |
sw1-2: | |
peer: [rt3, rt3-eth0] | |
sw1-3: | |
peer: [rt4, rt4-eth0] | |
frr: | |
base-configs: | |
all: | | |
hostname %(node)-%(daemon) | |
password 1 | |
log file %(logdir)/%(node)-%(daemon).log | |
zebra: | | |
debug zebra kernel | |
debug zebra mpls | |
bgpd: | | |
debug bgp zebra | |
debug bgp nht | |
debug bgp update in | |
debug bgp neighbor-events |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment