Add a split horizon resolv.conf

- in default namespace, point to 194.1.163.3 and .4
- in dataplane namespace, point to lab.ipng.ch (192.168.1X.4 and 2001:678:d78:2X1::ffff)
- renumber ipv4 transit nets, so that .4/31 is labX.lab.ipng.ch <-> e0.vppX-0
- refactor common args (like nameserver search paths, node count, etc)

Regenerate the whole thing.
This commit is contained in:
Pim van Pelt
2022-10-19 13:36:14 +02:00
parent 985b5fc4cb
commit 9e22d00c0f
91 changed files with 206 additions and 97 deletions

View File

@ -0,0 +1,4 @@
domain lab.ipng.ch
search lab.ipng.ch ipng.ch rfc1918.ipng.nl ipng.nl
nameserver 192.168.10.4
nameserver 2001:678:d78:201::ffff

View File

@ -9,6 +9,3 @@ network:
addresses: [ 192.168.1.80/24, 2001:678:d78:101::80/64 ]
gateway4: 192.168.1.252
gateway6: 2001:678:d78:101::1
nameservers:
addresses: [ "2001:678:d78::3", "2001:678:d78::4" ]
search: [ "lab.ipng.ch", "ipng.ch", "ipng.nl", "rfc1918.ipng.nl" ]

View File

@ -0,0 +1,4 @@
domain lab.ipng.ch
search lab.ipng.ch ipng.ch rfc1918.ipng.nl ipng.nl
nameserver 194.1.163.3
nameserver 194.1.163.4

View File

@ -0,0 +1,4 @@
domain lab.ipng.ch
search lab.ipng.ch ipng.ch rfc1918.ipng.nl ipng.nl
nameserver 192.168.10.4
nameserver 2001:678:d78:201::ffff

View File

@ -9,6 +9,3 @@ network:
addresses: [ 192.168.1.81/24, 2001:678:d78:101::81/64 ]
gateway4: 192.168.1.252
gateway6: 2001:678:d78:101::1
nameservers:
addresses: [ "2001:678:d78::3", "2001:678:d78::4" ]
search: [ "lab.ipng.ch", "ipng.ch", "ipng.nl", "rfc1918.ipng.nl" ]

View File

@ -0,0 +1,4 @@
domain lab.ipng.ch
search lab.ipng.ch ipng.ch rfc1918.ipng.nl ipng.nl
nameserver 194.1.163.3
nameserver 194.1.163.4

View File

@ -0,0 +1,4 @@
domain lab.ipng.ch
search lab.ipng.ch ipng.ch rfc1918.ipng.nl ipng.nl
nameserver 192.168.10.4
nameserver 2001:678:d78:201::ffff

View File

@ -9,6 +9,3 @@ network:
addresses: [ 192.168.1.82/24, 2001:678:d78:101::82/64 ]
gateway4: 192.168.1.252
gateway6: 2001:678:d78:101::1
nameservers:
addresses: [ "2001:678:d78::3", "2001:678:d78::4" ]
search: [ "lab.ipng.ch", "ipng.ch", "ipng.nl", "rfc1918.ipng.nl" ]

View File

@ -0,0 +1,4 @@
domain lab.ipng.ch
search lab.ipng.ch ipng.ch rfc1918.ipng.nl ipng.nl
nameserver 194.1.163.3
nameserver 194.1.163.4

View File

@ -0,0 +1,4 @@
domain lab.ipng.ch
search lab.ipng.ch ipng.ch rfc1918.ipng.nl ipng.nl
nameserver 192.168.10.4
nameserver 2001:678:d78:201::ffff

View File

@ -9,6 +9,3 @@ network:
addresses: [ 192.168.1.83/24, 2001:678:d78:101::83/64 ]
gateway4: 192.168.1.252
gateway6: 2001:678:d78:101::1
nameservers:
addresses: [ "2001:678:d78::3", "2001:678:d78::4" ]
search: [ "lab.ipng.ch", "ipng.ch", "ipng.nl", "rfc1918.ipng.nl" ]

View File

@ -0,0 +1,4 @@
domain lab.ipng.ch
search lab.ipng.ch ipng.ch rfc1918.ipng.nl ipng.nl
nameserver 194.1.163.3
nameserver 194.1.163.4

View File

@ -0,0 +1,4 @@
domain lab.ipng.ch
search lab.ipng.ch ipng.ch rfc1918.ipng.nl ipng.nl
nameserver 192.168.11.4
nameserver 2001:678:d78:211::ffff

View File

@ -9,6 +9,3 @@ network:
addresses: [ 192.168.1.84/24, 2001:678:d78:101::84/64 ]
gateway4: 192.168.1.252
gateway6: 2001:678:d78:101::1
nameservers:
addresses: [ "2001:678:d78::3", "2001:678:d78::4" ]
search: [ "lab.ipng.ch", "ipng.ch", "ipng.nl", "rfc1918.ipng.nl" ]

View File

@ -0,0 +1,4 @@
domain lab.ipng.ch
search lab.ipng.ch ipng.ch rfc1918.ipng.nl ipng.nl
nameserver 194.1.163.3
nameserver 194.1.163.4

View File

@ -2,3 +2,4 @@ set logging class linux-cp rate-limit 1000 level warn syslog-level notice
lcp default netns dataplane
lcp lcp-sync on
lcp lcp-auto-subint off

View File

@ -4,3 +4,4 @@ lcp create GigabitEthernet10/0/0 host-if e0
lcp create GigabitEthernet10/0/1 host-if e1
lcp create GigabitEthernet10/0/2 host-if e2
lcp create GigabitEthernet10/0/3 host-if e3

View File

@ -3,3 +3,4 @@ create loopback interface instance 0
set interface state loop0 up
set interface ip address loop0 192.168.11.0/32
set interface ip address loop0 2001:678:d78:210::/128

View File

@ -0,0 +1,2 @@
comment { Put any config for vpp1-0 you'd like here. }
comment { It will persist across restarts of VPP and reboots of the VM. }

View File

@ -0,0 +1,4 @@
domain lab.ipng.ch
search lab.ipng.ch ipng.ch rfc1918.ipng.nl ipng.nl
nameserver 192.168.11.4
nameserver 2001:678:d78:211::ffff

View File

@ -9,6 +9,3 @@ network:
addresses: [ 192.168.1.85/24, 2001:678:d78:101::85/64 ]
gateway4: 192.168.1.252
gateway6: 2001:678:d78:101::1
nameservers:
addresses: [ "2001:678:d78::3", "2001:678:d78::4" ]
search: [ "lab.ipng.ch", "ipng.ch", "ipng.nl", "rfc1918.ipng.nl" ]

View File

@ -0,0 +1,4 @@
domain lab.ipng.ch
search lab.ipng.ch ipng.ch rfc1918.ipng.nl ipng.nl
nameserver 194.1.163.3
nameserver 194.1.163.4

View File

@ -2,3 +2,4 @@ set logging class linux-cp rate-limit 1000 level warn syslog-level notice
lcp default netns dataplane
lcp lcp-sync on
lcp lcp-auto-subint off

View File

@ -4,3 +4,4 @@ lcp create GigabitEthernet10/0/0 host-if e0
lcp create GigabitEthernet10/0/1 host-if e1
lcp create GigabitEthernet10/0/2 host-if e2
lcp create GigabitEthernet10/0/3 host-if e3

View File

@ -3,3 +3,4 @@ create loopback interface instance 0
set interface state loop0 up
set interface ip address loop0 192.168.11.1/32
set interface ip address loop0 2001:678:d78:210::1/128

View File

@ -0,0 +1,2 @@
comment { Put any config for vpp1-1 you'd like here. }
comment { It will persist across restarts of VPP and reboots of the VM. }

View File

@ -0,0 +1,4 @@
domain lab.ipng.ch
search lab.ipng.ch ipng.ch rfc1918.ipng.nl ipng.nl
nameserver 192.168.11.4
nameserver 2001:678:d78:211::ffff

View File

@ -9,6 +9,3 @@ network:
addresses: [ 192.168.1.86/24, 2001:678:d78:101::86/64 ]
gateway4: 192.168.1.252
gateway6: 2001:678:d78:101::1
nameservers:
addresses: [ "2001:678:d78::3", "2001:678:d78::4" ]
search: [ "lab.ipng.ch", "ipng.ch", "ipng.nl", "rfc1918.ipng.nl" ]

View File

@ -0,0 +1,4 @@
domain lab.ipng.ch
search lab.ipng.ch ipng.ch rfc1918.ipng.nl ipng.nl
nameserver 194.1.163.3
nameserver 194.1.163.4

View File

@ -2,3 +2,4 @@ set logging class linux-cp rate-limit 1000 level warn syslog-level notice
lcp default netns dataplane
lcp lcp-sync on
lcp lcp-auto-subint off

View File

@ -4,3 +4,4 @@ lcp create GigabitEthernet10/0/0 host-if e0
lcp create GigabitEthernet10/0/1 host-if e1
lcp create GigabitEthernet10/0/2 host-if e2
lcp create GigabitEthernet10/0/3 host-if e3

View File

@ -3,3 +3,4 @@ create loopback interface instance 0
set interface state loop0 up
set interface ip address loop0 192.168.11.2/32
set interface ip address loop0 2001:678:d78:210::2/128

View File

@ -0,0 +1,2 @@
comment { Put any config for vpp1-2 you'd like here. }
comment { It will persist across restarts of VPP and reboots of the VM. }

View File

@ -0,0 +1,4 @@
domain lab.ipng.ch
search lab.ipng.ch ipng.ch rfc1918.ipng.nl ipng.nl
nameserver 192.168.11.4
nameserver 2001:678:d78:211::ffff

View File

@ -9,6 +9,3 @@ network:
addresses: [ 192.168.1.87/24, 2001:678:d78:101::87/64 ]
gateway4: 192.168.1.252
gateway6: 2001:678:d78:101::1
nameservers:
addresses: [ "2001:678:d78::3", "2001:678:d78::4" ]
search: [ "lab.ipng.ch", "ipng.ch", "ipng.nl", "rfc1918.ipng.nl" ]

View File

@ -0,0 +1,4 @@
domain lab.ipng.ch
search lab.ipng.ch ipng.ch rfc1918.ipng.nl ipng.nl
nameserver 194.1.163.3
nameserver 194.1.163.4

View File

@ -2,3 +2,4 @@ set logging class linux-cp rate-limit 1000 level warn syslog-level notice
lcp default netns dataplane
lcp lcp-sync on
lcp lcp-auto-subint off

View File

@ -4,3 +4,4 @@ lcp create GigabitEthernet10/0/0 host-if e0
lcp create GigabitEthernet10/0/1 host-if e1
lcp create GigabitEthernet10/0/2 host-if e2
lcp create GigabitEthernet10/0/3 host-if e3

View File

@ -3,3 +3,4 @@ create loopback interface instance 0
set interface state loop0 up
set interface ip address loop0 192.168.11.3/32
set interface ip address loop0 2001:678:d78:210::3/128

View File

@ -0,0 +1,2 @@
comment { Put any config for vpp1-3 you'd like here. }
comment { It will persist across restarts of VPP and reboots of the VM. }

View File

@ -0,0 +1,4 @@
domain lab.ipng.ch
search lab.ipng.ch ipng.ch rfc1918.ipng.nl ipng.nl
nameserver 192.168.12.4
nameserver 2001:678:d78:221::ffff

View File

@ -9,6 +9,3 @@ network:
addresses: [ 192.168.1.88/24, 2001:678:d78:101::88/64 ]
gateway4: 192.168.1.252
gateway6: 2001:678:d78:101::1
nameservers:
addresses: [ "2001:678:d78::3", "2001:678:d78::4" ]
search: [ "lab.ipng.ch", "ipng.ch", "ipng.nl", "rfc1918.ipng.nl" ]

View File

@ -0,0 +1,4 @@
domain lab.ipng.ch
search lab.ipng.ch ipng.ch rfc1918.ipng.nl ipng.nl
nameserver 194.1.163.3
nameserver 194.1.163.4

View File

@ -2,3 +2,4 @@ set logging class linux-cp rate-limit 1000 level warn syslog-level notice
lcp default netns dataplane
lcp lcp-sync on
lcp lcp-auto-subint off

View File

@ -4,3 +4,4 @@ lcp create GigabitEthernet10/0/0 host-if e0
lcp create GigabitEthernet10/0/1 host-if e1
lcp create GigabitEthernet10/0/2 host-if e2
lcp create GigabitEthernet10/0/3 host-if e3

View File

@ -3,3 +3,4 @@ create loopback interface instance 0
set interface state loop0 up
set interface ip address loop0 192.168.12.0/32
set interface ip address loop0 2001:678:d78:220::/128

View File

@ -0,0 +1,2 @@
comment { Put any config for vpp2-0 you'd like here. }
comment { It will persist across restarts of VPP and reboots of the VM. }

View File

@ -0,0 +1,4 @@
domain lab.ipng.ch
search lab.ipng.ch ipng.ch rfc1918.ipng.nl ipng.nl
nameserver 192.168.12.4
nameserver 2001:678:d78:221::ffff

View File

@ -9,6 +9,3 @@ network:
addresses: [ 192.168.1.89/24, 2001:678:d78:101::89/64 ]
gateway4: 192.168.1.252
gateway6: 2001:678:d78:101::1
nameservers:
addresses: [ "2001:678:d78::3", "2001:678:d78::4" ]
search: [ "lab.ipng.ch", "ipng.ch", "ipng.nl", "rfc1918.ipng.nl" ]

View File

@ -0,0 +1,4 @@
domain lab.ipng.ch
search lab.ipng.ch ipng.ch rfc1918.ipng.nl ipng.nl
nameserver 194.1.163.3
nameserver 194.1.163.4

View File

@ -2,3 +2,4 @@ set logging class linux-cp rate-limit 1000 level warn syslog-level notice
lcp default netns dataplane
lcp lcp-sync on
lcp lcp-auto-subint off

View File

@ -4,3 +4,4 @@ lcp create GigabitEthernet10/0/0 host-if e0
lcp create GigabitEthernet10/0/1 host-if e1
lcp create GigabitEthernet10/0/2 host-if e2
lcp create GigabitEthernet10/0/3 host-if e3

View File

@ -3,3 +3,4 @@ create loopback interface instance 0
set interface state loop0 up
set interface ip address loop0 192.168.12.1/32
set interface ip address loop0 2001:678:d78:220::1/128

View File

@ -0,0 +1,2 @@
comment { Put any config for vpp2-1 you'd like here. }
comment { It will persist across restarts of VPP and reboots of the VM. }

View File

@ -0,0 +1,4 @@
domain lab.ipng.ch
search lab.ipng.ch ipng.ch rfc1918.ipng.nl ipng.nl
nameserver 192.168.12.4
nameserver 2001:678:d78:221::ffff

View File

@ -9,6 +9,3 @@ network:
addresses: [ 192.168.1.90/24, 2001:678:d78:101::8a/64 ]
gateway4: 192.168.1.252
gateway6: 2001:678:d78:101::1
nameservers:
addresses: [ "2001:678:d78::3", "2001:678:d78::4" ]
search: [ "lab.ipng.ch", "ipng.ch", "ipng.nl", "rfc1918.ipng.nl" ]

View File

@ -0,0 +1,4 @@
domain lab.ipng.ch
search lab.ipng.ch ipng.ch rfc1918.ipng.nl ipng.nl
nameserver 194.1.163.3
nameserver 194.1.163.4

View File

@ -2,3 +2,4 @@ set logging class linux-cp rate-limit 1000 level warn syslog-level notice
lcp default netns dataplane
lcp lcp-sync on
lcp lcp-auto-subint off

View File

@ -4,3 +4,4 @@ lcp create GigabitEthernet10/0/0 host-if e0
lcp create GigabitEthernet10/0/1 host-if e1
lcp create GigabitEthernet10/0/2 host-if e2
lcp create GigabitEthernet10/0/3 host-if e3

View File

@ -3,3 +3,4 @@ create loopback interface instance 0
set interface state loop0 up
set interface ip address loop0 192.168.12.2/32
set interface ip address loop0 2001:678:d78:220::2/128

View File

@ -0,0 +1,2 @@
comment { Put any config for vpp2-2 you'd like here. }
comment { It will persist across restarts of VPP and reboots of the VM. }

View File

@ -0,0 +1,4 @@
domain lab.ipng.ch
search lab.ipng.ch ipng.ch rfc1918.ipng.nl ipng.nl
nameserver 192.168.12.4
nameserver 2001:678:d78:221::ffff

View File

@ -9,6 +9,3 @@ network:
addresses: [ 192.168.1.91/24, 2001:678:d78:101::8b/64 ]
gateway4: 192.168.1.252
gateway6: 2001:678:d78:101::1
nameservers:
addresses: [ "2001:678:d78::3", "2001:678:d78::4" ]
search: [ "lab.ipng.ch", "ipng.ch", "ipng.nl", "rfc1918.ipng.nl" ]

View File

@ -0,0 +1,4 @@
domain lab.ipng.ch
search lab.ipng.ch ipng.ch rfc1918.ipng.nl ipng.nl
nameserver 194.1.163.3
nameserver 194.1.163.4

View File

@ -2,3 +2,4 @@ set logging class linux-cp rate-limit 1000 level warn syslog-level notice
lcp default netns dataplane
lcp lcp-sync on
lcp lcp-auto-subint off

View File

@ -4,3 +4,4 @@ lcp create GigabitEthernet10/0/0 host-if e0
lcp create GigabitEthernet10/0/1 host-if e1
lcp create GigabitEthernet10/0/2 host-if e2
lcp create GigabitEthernet10/0/3 host-if e3

View File

@ -3,3 +3,4 @@ create loopback interface instance 0
set interface state loop0 up
set interface ip address loop0 192.168.12.3/32
set interface ip address loop0 2001:678:d78:220::3/128

View File

@ -0,0 +1,2 @@
comment { Put any config for vpp2-3 you'd like here. }
comment { It will persist across restarts of VPP and reboots of the VM. }

View File

@ -10,3 +10,13 @@ overlays:
frr:
path: overlays/frr/
build: build/frr/
lab:
mgmt:
ipv4: 192.168.1.80/24
ipv6: 2001:678:d78:101::80/64
gw4: 192.168.1.252
gw6: 2001:678:d78:101::1
nameserver:
search: [ "lab.ipng.ch", "ipng.ch", "rfc1918.ipng.nl", "ipng.nl" ]
nodes: 4

View File

@ -1,11 +1,7 @@
lab:
id: 0
mgmt:
ipv4: 192.168.1.80/24
ipv6: 2001:678:d78:101::80/64
gw4: 192.168.1.252
gw6: 2001:678:d78:101::1
ipv4: 192.168.10.0/24
ipv6: 2001:678:d78:200::/60
nameserver:
addresses: [ 192.168.10.4, 2001:678:d78:201::ffff ]
hypervisor: hvn0.lab.ipng.ch
nodes: 4

View File

@ -1,11 +1,7 @@
lab:
id: 1
mgmt:
ipv4: 192.168.1.80/24
ipv6: 2001:678:d78:101::80/64
gw4: 192.168.1.252
gw6: 2001:678:d78:101::1
ipv4: 192.168.11.0/24
ipv6: 2001:678:d78:210::/60
nameserver:
addresses: [ 192.168.11.4, 2001:678:d78:211::ffff ]
hypervisor: hvn1.lab.ipng.ch
nodes: 4

View File

@ -1,11 +1,7 @@
lab:
id: 2
mgmt:
ipv4: 192.168.1.80/24
ipv6: 2001:678:d78:101::80/64
gw4: 192.168.1.252
gw6: 2001:678:d78:101::1
ipv4: 192.168.12.0/24
ipv6: 2001:678:d78:220::/60
nameserver:
addresses: [ 192.168.12.4, 2001:678:d78:221::ffff ]
hypervisor: hvn1.lab.ipng.ch
nodes: 4

View File

@ -0,0 +1,7 @@
domain lab.ipng.ch
search{% for domain in lab.nameserver.search %} {{domain}}{%endfor %}
{% for resolver in lab.nameserver.addresses %}
nameserver {{resolver}}
{%endfor%}

View File

@ -9,6 +9,4 @@ network:
addresses: [ {{node.mgmt.ipv4}}, {{node.mgmt.ipv6}} ]
gateway4: {{lab.mgmt.gw4}}
gateway6: {{lab.mgmt.gw6}}
nameservers:
addresses: [ "2001:678:d78::3", "2001:678:d78::4" ]
search: [ "lab.ipng.ch", "ipng.ch", "ipng.nl", "rfc1918.ipng.nl" ]

View File

@ -0,0 +1,6 @@
domain lab.ipng.ch
search{% for domain in lab.nameserver.search %} {{domain}}{%endfor %}
nameserver 194.1.163.3
nameserver 194.1.163.4