diff --git a/build/frr/hvn1.lab.ipng.ch/host1-0/etc/hostname b/build/frr/hvn1.lab.ipng.ch/host1-0/etc/hostname new file mode 100644 index 0000000..033b6dd --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/host1-0/etc/hostname @@ -0,0 +1 @@ +host1-0 \ No newline at end of file diff --git a/build/frr/hvn1.lab.ipng.ch/host1-0/etc/hosts b/build/frr/hvn1.lab.ipng.ch/host1-0/etc/hosts new file mode 100644 index 0000000..adc22b0 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/host1-0/etc/hosts @@ -0,0 +1,7 @@ +127.0.0.1 localhost +127.0.1.1 host1-0.lab.ipng.ch host1-0 + +# The following lines are desirable for IPv6 capable hosts +::1 localhost ip6-localhost ip6-loopback +ff02::1 ip6-allnodes +ff02::2 ip6-allrouters \ No newline at end of file diff --git a/build/frr/hvn1.lab.ipng.ch/host1-0/etc/motd b/build/frr/hvn1.lab.ipng.ch/host1-0/etc/motd new file mode 100644 index 0000000..56a5416 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/host1-0/etc/motd @@ -0,0 +1,27 @@ + -*%%= + =%@@@@@: + :%@@@@@@@* + :*@@@@@@@@@@ .=+- + :=*#%@@@@@@@@@@@@@+ .+@@@@# + .+@@@@@@@@@@@@@@@@@@@@##@@@@@@@= + +@@@@@@@@@@@%*+@@@@@@@@@@@@@@@@@* + =@@@@@@@@@#=: *@@@@%#*+*@@@@@@@# + -%@@@@@@@*- ::. :*@@@@@@@@@ + =%@@@@@@@+ *@@@@@@@@@@@* + :*@@@@@@@@+ %@@@@@@@@@@@@@@+. + -*@@@@@@@@@+ +%@@@@@@@@@@@@@@@*. + .-+%@@@@@@@@@#- =@@@@@@@@@@@@@@@+ + :=*%@@@@@@@@%*=: @@@@@@@@@@@@@@@@# + :+#@@@@@@@#*+-: :*%@@@@@@%%@@@@@@@@@@@@@@@@@# + .=#@@%#*+=-. :##%%@@@@@@@@@@@@@@@@@@@@@@@@@# + .-=-: ..:-=+*#%@@@@@@@@@@@@@@- + ..::--==++***##%%%%@@@@@@@@@@@@@@@@%%%##***+==-::. .-=*#@@@@@@@@* + .:=+*#%%%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%#*+-: :=+#@@@% + ..:--=+**#%@@@@@@@@@@@@@@@@@@@@@@%#*##%@@@@@@@@@@@@@@@#+-. .-+- + .:=+*#%@@@@@@@@@@@@@@@@#+=:..-=+#%@@@@@@@@@@@@#+-. + .:=+#%@@@@@@@@@@@@@@@#+-. :-+#@@@@@@@@@@@%= + https://ipng.ch/ :-+#@@@@@@@@@@@@@@@#+-. .-+*%@%*-. + IPng Networks GmbH :=*%@@@@@@@@@@@@@%*- + :=*%@@@@@@@#+-. +Restricted access. Authorized users only. :=+-. +All connections are monitored and recorded. Contact for details. diff --git a/build/frr/hvn1.lab.ipng.ch/host1-0/etc/netns/dataplane/resolv.conf b/build/frr/hvn1.lab.ipng.ch/host1-0/etc/netns/dataplane/resolv.conf new file mode 100644 index 0000000..3411fcd --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/host1-0/etc/netns/dataplane/resolv.conf @@ -0,0 +1,4 @@ +domain lab.ipng.ch +search lab.ipng.ch net.ipng.ch ipng.ch +nameserver 192.168.11.4 +nameserver 2001:678:d78:211::ffff diff --git a/build/frr/hvn1.lab.ipng.ch/host1-0/etc/netplan/01-netcfg.yaml b/build/frr/hvn1.lab.ipng.ch/host1-0/etc/netplan/01-netcfg.yaml new file mode 100644 index 0000000..c1d82bb --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/host1-0/etc/netplan/01-netcfg.yaml @@ -0,0 +1,15 @@ +network: + version: 2 + renderer: networkd + ethernets: + enp1s0: + optional: true + accept-ra: false + dhcp4: false + mtu: 9000 + addresses: [ 198.19.5.27/26, 2001:678:d78:50b::1b/64 ] + routes: + - to: 0.0.0.0/0 + via: 198.19.5.1 + - to: ::/0 + via: 2001:678:d78:50b::1 diff --git a/build/frr/hvn1.lab.ipng.ch/host1-0/etc/resolv.conf b/build/frr/hvn1.lab.ipng.ch/host1-0/etc/resolv.conf new file mode 100644 index 0000000..6d35b25 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/host1-0/etc/resolv.conf @@ -0,0 +1,4 @@ +domain lab.ipng.ch +search lab.ipng.ch net.ipng.ch ipng.ch +nameserver 194.1.163.3 +nameserver 194.1.163.4 diff --git a/build/frr/hvn1.lab.ipng.ch/host1-0/home/ipng/.ssh/authorized_keys b/build/frr/hvn1.lab.ipng.ch/host1-0/home/ipng/.ssh/authorized_keys new file mode 100644 index 0000000..331e254 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/host1-0/home/ipng/.ssh/authorized_keys @@ -0,0 +1,6 @@ +# pim@ipng.nl - absynth, bfib, gripe, spongebob, homenet +ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC8X6oRdLn7PckWIRL+Fgp46qN+fglQLBJIvPHJ2P277v4tx/qlELaT8w45YyEPrUZ4XbbNIB4P59H63wPxIpk/d15k0C7Zx3kTESaEQuts3fne3ZFmrWm0dLD2yDTiB0zCraiQ5a0w++xuGEC3wdWPV+FHZh5Ea+WCd91g2xXPHJeosAQzBBBBaC9Shhx91h6lbCm4evvgqLnwt7JgnI2N4w2qr13lDDaRD4BXfyFrtLSTdhBgYEaFnUd6Afz5ilfDYXQW/yTSHZOIQ/vNVFpFxYrtmwHDdrSMiDpz0FE/4LLBG/rFl2VvRTmTEyjvwpGpEVaivMOLo/jRc3TA7jKB pim@ipng.nl + +# pim's M1 macbookpro SeKEY +ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBKDP/hLZusPNfKTy3t9bbbOHyczX+UACc4rYstc3QEDBDfxBnCZcMKN5Mv10o+q/+ap7wyFhONlz/qcUhEMbI1k= + diff --git a/build/frr/hvn1.lab.ipng.ch/host1-0/root/.ssh/authorized_keys b/build/frr/hvn1.lab.ipng.ch/host1-0/root/.ssh/authorized_keys new file mode 100644 index 0000000..331e254 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/host1-0/root/.ssh/authorized_keys @@ -0,0 +1,6 @@ +# pim@ipng.nl - absynth, bfib, gripe, spongebob, homenet +ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC8X6oRdLn7PckWIRL+Fgp46qN+fglQLBJIvPHJ2P277v4tx/qlELaT8w45YyEPrUZ4XbbNIB4P59H63wPxIpk/d15k0C7Zx3kTESaEQuts3fne3ZFmrWm0dLD2yDTiB0zCraiQ5a0w++xuGEC3wdWPV+FHZh5Ea+WCd91g2xXPHJeosAQzBBBBaC9Shhx91h6lbCm4evvgqLnwt7JgnI2N4w2qr13lDDaRD4BXfyFrtLSTdhBgYEaFnUd6Afz5ilfDYXQW/yTSHZOIQ/vNVFpFxYrtmwHDdrSMiDpz0FE/4LLBG/rFl2VvRTmTEyjvwpGpEVaivMOLo/jRc3TA7jKB pim@ipng.nl + +# pim's M1 macbookpro SeKEY +ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBKDP/hLZusPNfKTy3t9bbbOHyczX+UACc4rYstc3QEDBDfxBnCZcMKN5Mv10o+q/+ap7wyFhONlz/qcUhEMbI1k= + diff --git a/build/frr/hvn1.lab.ipng.ch/host1-0/root/lab-build/disable-vpp b/build/frr/hvn1.lab.ipng.ch/host1-0/root/lab-build/disable-vpp new file mode 100644 index 0000000..3d56a99 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/host1-0/root/lab-build/disable-vpp @@ -0,0 +1,7 @@ +#!/bin/sh + +echo " * Disabling VPP, Bird and FRR" +for i in vpp vppcfg bird-dataplane frr; do + rm -f /etc/systemd/system/multi-user.target.wants/${i}.service + ln -sf /dev/null /etc/systemd/system/${i}.service +done \ No newline at end of file diff --git a/build/frr/hvn1.lab.ipng.ch/host1-0/root/lab-build/perms b/build/frr/hvn1.lab.ipng.ch/host1-0/root/lab-build/perms new file mode 100644 index 0000000..93e0c65 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/host1-0/root/lab-build/perms @@ -0,0 +1,7 @@ +#!/bin/bash + +echo " * Fixing permissions" +chown -R root. /root/ +chown -R ipng. /home/ipng/ + +[ -r /etc/rc.local ] && chmod 755 /etc/rc.local \ No newline at end of file diff --git a/build/frr/hvn1.lab.ipng.ch/host1-1/etc/hostname b/build/frr/hvn1.lab.ipng.ch/host1-1/etc/hostname new file mode 100644 index 0000000..01f1d5d --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/host1-1/etc/hostname @@ -0,0 +1 @@ +host1-1 \ No newline at end of file diff --git a/build/frr/hvn1.lab.ipng.ch/host1-1/etc/hosts b/build/frr/hvn1.lab.ipng.ch/host1-1/etc/hosts new file mode 100644 index 0000000..3e1d5c3 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/host1-1/etc/hosts @@ -0,0 +1,7 @@ +127.0.0.1 localhost +127.0.1.1 host1-1.lab.ipng.ch host1-1 + +# The following lines are desirable for IPv6 capable hosts +::1 localhost ip6-localhost ip6-loopback +ff02::1 ip6-allnodes +ff02::2 ip6-allrouters \ No newline at end of file diff --git a/build/frr/hvn1.lab.ipng.ch/host1-1/etc/motd b/build/frr/hvn1.lab.ipng.ch/host1-1/etc/motd new file mode 100644 index 0000000..56a5416 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/host1-1/etc/motd @@ -0,0 +1,27 @@ + -*%%= + =%@@@@@: + :%@@@@@@@* + :*@@@@@@@@@@ .=+- + :=*#%@@@@@@@@@@@@@+ .+@@@@# + .+@@@@@@@@@@@@@@@@@@@@##@@@@@@@= + +@@@@@@@@@@@%*+@@@@@@@@@@@@@@@@@* + =@@@@@@@@@#=: *@@@@%#*+*@@@@@@@# + -%@@@@@@@*- ::. :*@@@@@@@@@ + =%@@@@@@@+ *@@@@@@@@@@@* + :*@@@@@@@@+ %@@@@@@@@@@@@@@+. + -*@@@@@@@@@+ +%@@@@@@@@@@@@@@@*. + .-+%@@@@@@@@@#- =@@@@@@@@@@@@@@@+ + :=*%@@@@@@@@%*=: @@@@@@@@@@@@@@@@# + :+#@@@@@@@#*+-: :*%@@@@@@%%@@@@@@@@@@@@@@@@@# + .=#@@%#*+=-. :##%%@@@@@@@@@@@@@@@@@@@@@@@@@# + .-=-: ..:-=+*#%@@@@@@@@@@@@@@- + ..::--==++***##%%%%@@@@@@@@@@@@@@@@%%%##***+==-::. .-=*#@@@@@@@@* + .:=+*#%%%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%#*+-: :=+#@@@% + ..:--=+**#%@@@@@@@@@@@@@@@@@@@@@@%#*##%@@@@@@@@@@@@@@@#+-. .-+- + .:=+*#%@@@@@@@@@@@@@@@@#+=:..-=+#%@@@@@@@@@@@@#+-. + .:=+#%@@@@@@@@@@@@@@@#+-. :-+#@@@@@@@@@@@%= + https://ipng.ch/ :-+#@@@@@@@@@@@@@@@#+-. .-+*%@%*-. + IPng Networks GmbH :=*%@@@@@@@@@@@@@%*- + :=*%@@@@@@@#+-. +Restricted access. Authorized users only. :=+-. +All connections are monitored and recorded. Contact for details. diff --git a/build/frr/hvn1.lab.ipng.ch/host1-1/etc/netns/dataplane/resolv.conf b/build/frr/hvn1.lab.ipng.ch/host1-1/etc/netns/dataplane/resolv.conf new file mode 100644 index 0000000..3411fcd --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/host1-1/etc/netns/dataplane/resolv.conf @@ -0,0 +1,4 @@ +domain lab.ipng.ch +search lab.ipng.ch net.ipng.ch ipng.ch +nameserver 192.168.11.4 +nameserver 2001:678:d78:211::ffff diff --git a/build/frr/hvn1.lab.ipng.ch/host1-1/etc/netplan/01-netcfg.yaml b/build/frr/hvn1.lab.ipng.ch/host1-1/etc/netplan/01-netcfg.yaml new file mode 100644 index 0000000..0591676 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/host1-1/etc/netplan/01-netcfg.yaml @@ -0,0 +1,15 @@ +network: + version: 2 + renderer: networkd + ethernets: + enp1s0: + optional: true + accept-ra: false + dhcp4: false + mtu: 9000 + addresses: [ 198.19.5.28/26, 2001:678:d78:50b::1c/64 ] + routes: + - to: 0.0.0.0/0 + via: 198.19.5.1 + - to: ::/0 + via: 2001:678:d78:50b::1 diff --git a/build/frr/hvn1.lab.ipng.ch/host1-1/etc/resolv.conf b/build/frr/hvn1.lab.ipng.ch/host1-1/etc/resolv.conf new file mode 100644 index 0000000..6d35b25 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/host1-1/etc/resolv.conf @@ -0,0 +1,4 @@ +domain lab.ipng.ch +search lab.ipng.ch net.ipng.ch ipng.ch +nameserver 194.1.163.3 +nameserver 194.1.163.4 diff --git a/build/frr/hvn1.lab.ipng.ch/host1-1/home/ipng/.ssh/authorized_keys b/build/frr/hvn1.lab.ipng.ch/host1-1/home/ipng/.ssh/authorized_keys new file mode 100644 index 0000000..331e254 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/host1-1/home/ipng/.ssh/authorized_keys @@ -0,0 +1,6 @@ +# pim@ipng.nl - absynth, bfib, gripe, spongebob, homenet +ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC8X6oRdLn7PckWIRL+Fgp46qN+fglQLBJIvPHJ2P277v4tx/qlELaT8w45YyEPrUZ4XbbNIB4P59H63wPxIpk/d15k0C7Zx3kTESaEQuts3fne3ZFmrWm0dLD2yDTiB0zCraiQ5a0w++xuGEC3wdWPV+FHZh5Ea+WCd91g2xXPHJeosAQzBBBBaC9Shhx91h6lbCm4evvgqLnwt7JgnI2N4w2qr13lDDaRD4BXfyFrtLSTdhBgYEaFnUd6Afz5ilfDYXQW/yTSHZOIQ/vNVFpFxYrtmwHDdrSMiDpz0FE/4LLBG/rFl2VvRTmTEyjvwpGpEVaivMOLo/jRc3TA7jKB pim@ipng.nl + +# pim's M1 macbookpro SeKEY +ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBKDP/hLZusPNfKTy3t9bbbOHyczX+UACc4rYstc3QEDBDfxBnCZcMKN5Mv10o+q/+ap7wyFhONlz/qcUhEMbI1k= + diff --git a/build/frr/hvn1.lab.ipng.ch/host1-1/root/.ssh/authorized_keys b/build/frr/hvn1.lab.ipng.ch/host1-1/root/.ssh/authorized_keys new file mode 100644 index 0000000..331e254 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/host1-1/root/.ssh/authorized_keys @@ -0,0 +1,6 @@ +# pim@ipng.nl - absynth, bfib, gripe, spongebob, homenet +ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC8X6oRdLn7PckWIRL+Fgp46qN+fglQLBJIvPHJ2P277v4tx/qlELaT8w45YyEPrUZ4XbbNIB4P59H63wPxIpk/d15k0C7Zx3kTESaEQuts3fne3ZFmrWm0dLD2yDTiB0zCraiQ5a0w++xuGEC3wdWPV+FHZh5Ea+WCd91g2xXPHJeosAQzBBBBaC9Shhx91h6lbCm4evvgqLnwt7JgnI2N4w2qr13lDDaRD4BXfyFrtLSTdhBgYEaFnUd6Afz5ilfDYXQW/yTSHZOIQ/vNVFpFxYrtmwHDdrSMiDpz0FE/4LLBG/rFl2VvRTmTEyjvwpGpEVaivMOLo/jRc3TA7jKB pim@ipng.nl + +# pim's M1 macbookpro SeKEY +ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBKDP/hLZusPNfKTy3t9bbbOHyczX+UACc4rYstc3QEDBDfxBnCZcMKN5Mv10o+q/+ap7wyFhONlz/qcUhEMbI1k= + diff --git a/build/frr/hvn1.lab.ipng.ch/host1-1/root/lab-build/disable-vpp b/build/frr/hvn1.lab.ipng.ch/host1-1/root/lab-build/disable-vpp new file mode 100644 index 0000000..3d56a99 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/host1-1/root/lab-build/disable-vpp @@ -0,0 +1,7 @@ +#!/bin/sh + +echo " * Disabling VPP, Bird and FRR" +for i in vpp vppcfg bird-dataplane frr; do + rm -f /etc/systemd/system/multi-user.target.wants/${i}.service + ln -sf /dev/null /etc/systemd/system/${i}.service +done \ No newline at end of file diff --git a/build/frr/hvn1.lab.ipng.ch/host1-1/root/lab-build/perms b/build/frr/hvn1.lab.ipng.ch/host1-1/root/lab-build/perms new file mode 100644 index 0000000..93e0c65 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/host1-1/root/lab-build/perms @@ -0,0 +1,7 @@ +#!/bin/bash + +echo " * Fixing permissions" +chown -R root. /root/ +chown -R ipng. /home/ipng/ + +[ -r /etc/rc.local ] && chmod 755 /etc/rc.local \ No newline at end of file diff --git a/build/frr/hvn1.lab.ipng.ch/tap1-0/etc/hostname b/build/frr/hvn1.lab.ipng.ch/tap1-0/etc/hostname new file mode 100644 index 0000000..1be5869 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/tap1-0/etc/hostname @@ -0,0 +1 @@ +tap1-0 \ No newline at end of file diff --git a/build/frr/hvn1.lab.ipng.ch/tap1-0/etc/hosts b/build/frr/hvn1.lab.ipng.ch/tap1-0/etc/hosts new file mode 100644 index 0000000..435a59a --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/tap1-0/etc/hosts @@ -0,0 +1,7 @@ +127.0.0.1 localhost +127.0.1.1 tap1-0.lab.ipng.ch tap1-0 + +# The following lines are desirable for IPv6 capable hosts +::1 localhost ip6-localhost ip6-loopback +ff02::1 ip6-allnodes +ff02::2 ip6-allrouters \ No newline at end of file diff --git a/build/frr/hvn1.lab.ipng.ch/tap1-0/etc/motd b/build/frr/hvn1.lab.ipng.ch/tap1-0/etc/motd new file mode 100644 index 0000000..56a5416 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/tap1-0/etc/motd @@ -0,0 +1,27 @@ + -*%%= + =%@@@@@: + :%@@@@@@@* + :*@@@@@@@@@@ .=+- + :=*#%@@@@@@@@@@@@@+ .+@@@@# + .+@@@@@@@@@@@@@@@@@@@@##@@@@@@@= + +@@@@@@@@@@@%*+@@@@@@@@@@@@@@@@@* + =@@@@@@@@@#=: *@@@@%#*+*@@@@@@@# + -%@@@@@@@*- ::. :*@@@@@@@@@ + =%@@@@@@@+ *@@@@@@@@@@@* + :*@@@@@@@@+ %@@@@@@@@@@@@@@+. + -*@@@@@@@@@+ +%@@@@@@@@@@@@@@@*. + .-+%@@@@@@@@@#- =@@@@@@@@@@@@@@@+ + :=*%@@@@@@@@%*=: @@@@@@@@@@@@@@@@# + :+#@@@@@@@#*+-: :*%@@@@@@%%@@@@@@@@@@@@@@@@@# + .=#@@%#*+=-. :##%%@@@@@@@@@@@@@@@@@@@@@@@@@# + .-=-: ..:-=+*#%@@@@@@@@@@@@@@- + ..::--==++***##%%%%@@@@@@@@@@@@@@@@%%%##***+==-::. .-=*#@@@@@@@@* + .:=+*#%%%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%#*+-: :=+#@@@% + ..:--=+**#%@@@@@@@@@@@@@@@@@@@@@@%#*##%@@@@@@@@@@@@@@@#+-. .-+- + .:=+*#%@@@@@@@@@@@@@@@@#+=:..-=+#%@@@@@@@@@@@@#+-. + .:=+#%@@@@@@@@@@@@@@@#+-. :-+#@@@@@@@@@@@%= + https://ipng.ch/ :-+#@@@@@@@@@@@@@@@#+-. .-+*%@%*-. + IPng Networks GmbH :=*%@@@@@@@@@@@@@%*- + :=*%@@@@@@@#+-. +Restricted access. Authorized users only. :=+-. +All connections are monitored and recorded. Contact for details. diff --git a/build/frr/hvn1.lab.ipng.ch/tap1-0/etc/netns/dataplane/resolv.conf b/build/frr/hvn1.lab.ipng.ch/tap1-0/etc/netns/dataplane/resolv.conf new file mode 100644 index 0000000..3411fcd --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/tap1-0/etc/netns/dataplane/resolv.conf @@ -0,0 +1,4 @@ +domain lab.ipng.ch +search lab.ipng.ch net.ipng.ch ipng.ch +nameserver 192.168.11.4 +nameserver 2001:678:d78:211::ffff diff --git a/build/frr/hvn1.lab.ipng.ch/tap1-0/etc/netplan/01-netcfg.yaml b/build/frr/hvn1.lab.ipng.ch/tap1-0/etc/netplan/01-netcfg.yaml new file mode 100644 index 0000000..5f3da68 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/tap1-0/etc/netplan/01-netcfg.yaml @@ -0,0 +1,15 @@ +network: + version: 2 + renderer: networkd + ethernets: + enp1s0: + optional: true + accept-ra: false + dhcp4: false + mtu: 9000 + addresses: [ 198.19.5.29/26, 2001:678:d78:50b::1d/64 ] + routes: + - to: 0.0.0.0/0 + via: 198.19.5.1 + - to: ::/0 + via: 2001:678:d78:50b::1 diff --git a/build/frr/hvn1.lab.ipng.ch/tap1-0/etc/rc.local b/build/frr/hvn1.lab.ipng.ch/tap1-0/etc/rc.local new file mode 100644 index 0000000..08e364f --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/tap1-0/etc/rc.local @@ -0,0 +1,4 @@ +#!/bin/sh + +ip link set enp16s0f0 alias mirror-rx mtu 9216 up +ip link set enp16s0f1 alias mirror-tx mtu 9216 up \ No newline at end of file diff --git a/build/frr/hvn1.lab.ipng.ch/tap1-0/etc/resolv.conf b/build/frr/hvn1.lab.ipng.ch/tap1-0/etc/resolv.conf new file mode 100644 index 0000000..6d35b25 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/tap1-0/etc/resolv.conf @@ -0,0 +1,4 @@ +domain lab.ipng.ch +search lab.ipng.ch net.ipng.ch ipng.ch +nameserver 194.1.163.3 +nameserver 194.1.163.4 diff --git a/build/frr/hvn1.lab.ipng.ch/tap1-0/home/ipng/.ssh/authorized_keys b/build/frr/hvn1.lab.ipng.ch/tap1-0/home/ipng/.ssh/authorized_keys new file mode 100644 index 0000000..331e254 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/tap1-0/home/ipng/.ssh/authorized_keys @@ -0,0 +1,6 @@ +# pim@ipng.nl - absynth, bfib, gripe, spongebob, homenet +ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC8X6oRdLn7PckWIRL+Fgp46qN+fglQLBJIvPHJ2P277v4tx/qlELaT8w45YyEPrUZ4XbbNIB4P59H63wPxIpk/d15k0C7Zx3kTESaEQuts3fne3ZFmrWm0dLD2yDTiB0zCraiQ5a0w++xuGEC3wdWPV+FHZh5Ea+WCd91g2xXPHJeosAQzBBBBaC9Shhx91h6lbCm4evvgqLnwt7JgnI2N4w2qr13lDDaRD4BXfyFrtLSTdhBgYEaFnUd6Afz5ilfDYXQW/yTSHZOIQ/vNVFpFxYrtmwHDdrSMiDpz0FE/4LLBG/rFl2VvRTmTEyjvwpGpEVaivMOLo/jRc3TA7jKB pim@ipng.nl + +# pim's M1 macbookpro SeKEY +ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBKDP/hLZusPNfKTy3t9bbbOHyczX+UACc4rYstc3QEDBDfxBnCZcMKN5Mv10o+q/+ap7wyFhONlz/qcUhEMbI1k= + diff --git a/build/frr/hvn1.lab.ipng.ch/tap1-0/root/.ssh/authorized_keys b/build/frr/hvn1.lab.ipng.ch/tap1-0/root/.ssh/authorized_keys new file mode 100644 index 0000000..331e254 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/tap1-0/root/.ssh/authorized_keys @@ -0,0 +1,6 @@ +# pim@ipng.nl - absynth, bfib, gripe, spongebob, homenet +ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC8X6oRdLn7PckWIRL+Fgp46qN+fglQLBJIvPHJ2P277v4tx/qlELaT8w45YyEPrUZ4XbbNIB4P59H63wPxIpk/d15k0C7Zx3kTESaEQuts3fne3ZFmrWm0dLD2yDTiB0zCraiQ5a0w++xuGEC3wdWPV+FHZh5Ea+WCd91g2xXPHJeosAQzBBBBaC9Shhx91h6lbCm4evvgqLnwt7JgnI2N4w2qr13lDDaRD4BXfyFrtLSTdhBgYEaFnUd6Afz5ilfDYXQW/yTSHZOIQ/vNVFpFxYrtmwHDdrSMiDpz0FE/4LLBG/rFl2VvRTmTEyjvwpGpEVaivMOLo/jRc3TA7jKB pim@ipng.nl + +# pim's M1 macbookpro SeKEY +ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBKDP/hLZusPNfKTy3t9bbbOHyczX+UACc4rYstc3QEDBDfxBnCZcMKN5Mv10o+q/+ap7wyFhONlz/qcUhEMbI1k= + diff --git a/build/frr/hvn1.lab.ipng.ch/tap1-0/root/lab-build/disable-vpp b/build/frr/hvn1.lab.ipng.ch/tap1-0/root/lab-build/disable-vpp new file mode 100644 index 0000000..3d56a99 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/tap1-0/root/lab-build/disable-vpp @@ -0,0 +1,7 @@ +#!/bin/sh + +echo " * Disabling VPP, Bird and FRR" +for i in vpp vppcfg bird-dataplane frr; do + rm -f /etc/systemd/system/multi-user.target.wants/${i}.service + ln -sf /dev/null /etc/systemd/system/${i}.service +done \ No newline at end of file diff --git a/build/frr/hvn1.lab.ipng.ch/tap1-0/root/lab-build/perms b/build/frr/hvn1.lab.ipng.ch/tap1-0/root/lab-build/perms new file mode 100644 index 0000000..93e0c65 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/tap1-0/root/lab-build/perms @@ -0,0 +1,7 @@ +#!/bin/bash + +echo " * Fixing permissions" +chown -R root. /root/ +chown -R ipng. /home/ipng/ + +[ -r /etc/rc.local ] && chmod 755 /etc/rc.local \ No newline at end of file diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-0/etc/frr/daemons b/build/frr/hvn1.lab.ipng.ch/vpp1-0/etc/frr/daemons new file mode 100644 index 0000000..d17f465 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-0/etc/frr/daemons @@ -0,0 +1,15 @@ +bgpd=yes +ospfd=yes +ospf6d=yes +bfdd=yes +ldpd=yes + +vtysh_enable=yes +watchfrr_options="--netns=dataplane" +zebra_options=" -A 127.0.0.1 -s 67108864 -M dplane_fpm_nl" +bgpd_options=" -A 127.0.0.1" +ospfd_options=" -A 127.0.0.1" +ospf6d_options=" -A ::1" +staticd_options="-A 127.0.0.1" +bfdd_options=" -A 127.0.0.1" +ldpd_options=" -A 127.0.0.1" \ No newline at end of file diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-0/etc/frr/frr.conf b/build/frr/hvn1.lab.ipng.ch/vpp1-0/etc/frr/frr.conf new file mode 100644 index 0000000..482a100 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-0/etc/frr/frr.conf @@ -0,0 +1,69 @@ +hostname vpp1-0 +log syslog informational +no ip forwarding +no ipv6 forwarding +service integrated-vtysh-config +! +ip router-id 192.168.11.0 +! +interface e0 + ip ospf area 0 + ip ospf network point-to-point + ipv6 ospf6 area 0 + ipv6 ospf6 network point-to-point + mpls enable +exit +! +interface e1 + ip ospf area 0 + ip ospf network point-to-point + ipv6 ospf6 area 0 + ipv6 ospf6 network point-to-point + mpls enable +exit +! +interface loop0 + ip ospf area 0 + ip ospf passive + ipv6 ospf6 area 0 + ipv6 ospf6 passive +exit +! +router ospf +exit +! +router ospf6 +exit +! +mpls ldp + router-id 192.168.11.0 + dual-stack cisco-interop + ordered-control + ! + address-family ipv4 + discovery transport-address 192.168.11.0 + label local advertise explicit-null + ! + interface e0 + exit + ! + interface e1 + exit + ! + exit-address-family + ! + address-family ipv6 + discovery transport-address 2001:678:d78:210:: + label local advertise explicit-null + ttl-security disable + ! + interface e0 + exit + ! + interface e1 + exit + ! + exit-address-family + ! +exit +! \ No newline at end of file diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-0/etc/hostname b/build/frr/hvn1.lab.ipng.ch/vpp1-0/etc/hostname new file mode 100644 index 0000000..e3e793c --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-0/etc/hostname @@ -0,0 +1 @@ +vpp1-0 \ No newline at end of file diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-0/etc/hosts b/build/frr/hvn1.lab.ipng.ch/vpp1-0/etc/hosts new file mode 100644 index 0000000..4d3c0b1 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-0/etc/hosts @@ -0,0 +1,7 @@ +127.0.0.1 localhost +127.0.1.1 vpp1-0.lab.ipng.ch vpp1-0 + +# The following lines are desirable for IPv6 capable hosts +::1 localhost ip6-localhost ip6-loopback +ff02::1 ip6-allnodes +ff02::2 ip6-allrouters \ No newline at end of file diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-0/etc/motd b/build/frr/hvn1.lab.ipng.ch/vpp1-0/etc/motd new file mode 100644 index 0000000..56a5416 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-0/etc/motd @@ -0,0 +1,27 @@ + -*%%= + =%@@@@@: + :%@@@@@@@* + :*@@@@@@@@@@ .=+- + :=*#%@@@@@@@@@@@@@+ .+@@@@# + .+@@@@@@@@@@@@@@@@@@@@##@@@@@@@= + +@@@@@@@@@@@%*+@@@@@@@@@@@@@@@@@* + =@@@@@@@@@#=: *@@@@%#*+*@@@@@@@# + -%@@@@@@@*- ::. :*@@@@@@@@@ + =%@@@@@@@+ *@@@@@@@@@@@* + :*@@@@@@@@+ %@@@@@@@@@@@@@@+. + -*@@@@@@@@@+ +%@@@@@@@@@@@@@@@*. + .-+%@@@@@@@@@#- =@@@@@@@@@@@@@@@+ + :=*%@@@@@@@@%*=: @@@@@@@@@@@@@@@@# + :+#@@@@@@@#*+-: :*%@@@@@@%%@@@@@@@@@@@@@@@@@# + .=#@@%#*+=-. :##%%@@@@@@@@@@@@@@@@@@@@@@@@@# + .-=-: ..:-=+*#%@@@@@@@@@@@@@@- + ..::--==++***##%%%%@@@@@@@@@@@@@@@@%%%##***+==-::. .-=*#@@@@@@@@* + .:=+*#%%%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%#*+-: :=+#@@@% + ..:--=+**#%@@@@@@@@@@@@@@@@@@@@@@%#*##%@@@@@@@@@@@@@@@#+-. .-+- + .:=+*#%@@@@@@@@@@@@@@@@#+=:..-=+#%@@@@@@@@@@@@#+-. + .:=+#%@@@@@@@@@@@@@@@#+-. :-+#@@@@@@@@@@@%= + https://ipng.ch/ :-+#@@@@@@@@@@@@@@@#+-. .-+*%@%*-. + IPng Networks GmbH :=*%@@@@@@@@@@@@@%*- + :=*%@@@@@@@#+-. +Restricted access. Authorized users only. :=+-. +All connections are monitored and recorded. Contact for details. diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-0/etc/netns/dataplane/resolv.conf b/build/frr/hvn1.lab.ipng.ch/vpp1-0/etc/netns/dataplane/resolv.conf new file mode 100644 index 0000000..3411fcd --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-0/etc/netns/dataplane/resolv.conf @@ -0,0 +1,4 @@ +domain lab.ipng.ch +search lab.ipng.ch net.ipng.ch ipng.ch +nameserver 192.168.11.4 +nameserver 2001:678:d78:211::ffff diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-0/etc/netplan/01-netcfg.yaml b/build/frr/hvn1.lab.ipng.ch/vpp1-0/etc/netplan/01-netcfg.yaml new file mode 100644 index 0000000..6c7b6a8 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-0/etc/netplan/01-netcfg.yaml @@ -0,0 +1,15 @@ +network: + version: 2 + renderer: networkd + ethernets: + enp1s0: + optional: true + accept-ra: false + dhcp4: false + mtu: 9000 + addresses: [ 198.19.5.23/26, 2001:678:d78:50b::17/64 ] + routes: + - to: 0.0.0.0/0 + via: 198.19.5.1 + - to: ::/0 + via: 2001:678:d78:50b::1 diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-0/etc/resolv.conf b/build/frr/hvn1.lab.ipng.ch/vpp1-0/etc/resolv.conf new file mode 100644 index 0000000..6d35b25 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-0/etc/resolv.conf @@ -0,0 +1,4 @@ +domain lab.ipng.ch +search lab.ipng.ch net.ipng.ch ipng.ch +nameserver 194.1.163.3 +nameserver 194.1.163.4 diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-0/etc/vpp/bootstrap.vpp b/build/frr/hvn1.lab.ipng.ch/vpp1-0/etc/vpp/bootstrap.vpp new file mode 100644 index 0000000..ce0fc99 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-0/etc/vpp/bootstrap.vpp @@ -0,0 +1,11 @@ +comment { Apply system defaults from the build } +exec /etc/vpp/config/defaults.vpp +exec /etc/vpp/config/loopback.vpp +exec /etc/vpp/config/interface.vpp +exec /etc/vpp/config/lcp.vpp +exec /etc/vpp/config/mpls.vpp + +comment { exec /etc/vpp/config/flowprobe.vpp } + +comment { Allow user to set persistent manual configs } +exec /etc/vpp/config/manual.vpp diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-0/etc/vpp/config/defaults.vpp b/build/frr/hvn1.lab.ipng.ch/vpp1-0/etc/vpp/config/defaults.vpp new file mode 100644 index 0000000..dde7dbf --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-0/etc/vpp/config/defaults.vpp @@ -0,0 +1,5 @@ +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 + diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-0/etc/vpp/config/flowprobe.vpp b/build/frr/hvn1.lab.ipng.ch/vpp1-0/etc/vpp/config/flowprobe.vpp new file mode 100644 index 0000000..5f2d02b --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-0/etc/vpp/config/flowprobe.vpp @@ -0,0 +1,10 @@ +comment { Generate full IPFIX stats, send them to lab.ipng.ch } + +set ipfix exporter collector 194.1.163.86 src 192.168.11.0 port 4739 path-mtu 1450 template-interval 30 + +flowprobe params record l2 l3 l4 active 10 passive 60 + +flowprobe feature add-del GigabitEthernet10/0/0 l2 both +flowprobe feature add-del GigabitEthernet10/0/1 l2 both +flowprobe feature add-del GigabitEthernet10/0/2 l2 both +flowprobe feature add-del GigabitEthernet10/0/3 l2 both diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-0/etc/vpp/config/interface.vpp b/build/frr/hvn1.lab.ipng.ch/vpp1-0/etc/vpp/config/interface.vpp new file mode 100644 index 0000000..a6900ac --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-0/etc/vpp/config/interface.vpp @@ -0,0 +1,24 @@ +comment { Gi10/0/0 is connected to lab.ipng.ch:lab1 } +set interface mtu 9000 GigabitEthernet10/0/0 +set interface mtu packet 9000 GigabitEthernet10/0/0 +set interface ip address GigabitEthernet10/0/0 2001:678:d78:211::0:fffe/112 +set interface ip address GigabitEthernet10/0/0 192.168.11.5/31 +set interface state GigabitEthernet10/0/0 up + +comment { Gi10/0/1 is connected to vpp1-1:Gi10/0/0 } +set interface mtu 9000 GigabitEthernet10/0/1 +set interface mtu packet 9000 GigabitEthernet10/0/1 +set interface ip address GigabitEthernet10/0/1 2001:678:d78:211::1:10/112 +set interface ip address GigabitEthernet10/0/1 192.168.11.6/31 +set interface state GigabitEthernet10/0/1 up + +comment { Gi10/0/2 is free to use } +set interface mtu 9000 GigabitEthernet10/0/2 +set interface mtu packet 9000 GigabitEthernet10/0/2 +set interface state GigabitEthernet10/0/2 down + +comment { Gi10/0/3 is free to use } +set interface mtu 9000 GigabitEthernet10/0/3 +set interface mtu packet 9000 GigabitEthernet10/0/3 +set interface state GigabitEthernet10/0/3 down + diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-0/etc/vpp/config/lcp.vpp b/build/frr/hvn1.lab.ipng.ch/vpp1-0/etc/vpp/config/lcp.vpp new file mode 100644 index 0000000..b0fcea1 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-0/etc/vpp/config/lcp.vpp @@ -0,0 +1,7 @@ +comment { Create one LinuxCP Interface Pair for each phy } +lcp create loop0 host-if loop0 +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 + diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-0/etc/vpp/config/loopback.vpp b/build/frr/hvn1.lab.ipng.ch/vpp1-0/etc/vpp/config/loopback.vpp new file mode 100644 index 0000000..4d39398 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-0/etc/vpp/config/loopback.vpp @@ -0,0 +1,6 @@ +comment { Create a loopback interface } +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 + diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-0/etc/vpp/config/manual.vpp b/build/frr/hvn1.lab.ipng.ch/vpp1-0/etc/vpp/config/manual.vpp new file mode 100644 index 0000000..18a442a --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-0/etc/vpp/config/manual.vpp @@ -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. } diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-0/etc/vpp/config/mpls.vpp b/build/frr/hvn1.lab.ipng.ch/vpp1-0/etc/vpp/config/mpls.vpp new file mode 100644 index 0000000..0f2a444 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-0/etc/vpp/config/mpls.vpp @@ -0,0 +1,2 @@ +mpls table add 0 +set interface mpls GigabitEthernet10/0/1 enable diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-0/home/ipng/.ssh/authorized_keys b/build/frr/hvn1.lab.ipng.ch/vpp1-0/home/ipng/.ssh/authorized_keys new file mode 100644 index 0000000..331e254 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-0/home/ipng/.ssh/authorized_keys @@ -0,0 +1,6 @@ +# pim@ipng.nl - absynth, bfib, gripe, spongebob, homenet +ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC8X6oRdLn7PckWIRL+Fgp46qN+fglQLBJIvPHJ2P277v4tx/qlELaT8w45YyEPrUZ4XbbNIB4P59H63wPxIpk/d15k0C7Zx3kTESaEQuts3fne3ZFmrWm0dLD2yDTiB0zCraiQ5a0w++xuGEC3wdWPV+FHZh5Ea+WCd91g2xXPHJeosAQzBBBBaC9Shhx91h6lbCm4evvgqLnwt7JgnI2N4w2qr13lDDaRD4BXfyFrtLSTdhBgYEaFnUd6Afz5ilfDYXQW/yTSHZOIQ/vNVFpFxYrtmwHDdrSMiDpz0FE/4LLBG/rFl2VvRTmTEyjvwpGpEVaivMOLo/jRc3TA7jKB pim@ipng.nl + +# pim's M1 macbookpro SeKEY +ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBKDP/hLZusPNfKTy3t9bbbOHyczX+UACc4rYstc3QEDBDfxBnCZcMKN5Mv10o+q/+ap7wyFhONlz/qcUhEMbI1k= + diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-0/root/.ssh/authorized_keys b/build/frr/hvn1.lab.ipng.ch/vpp1-0/root/.ssh/authorized_keys new file mode 100644 index 0000000..331e254 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-0/root/.ssh/authorized_keys @@ -0,0 +1,6 @@ +# pim@ipng.nl - absynth, bfib, gripe, spongebob, homenet +ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC8X6oRdLn7PckWIRL+Fgp46qN+fglQLBJIvPHJ2P277v4tx/qlELaT8w45YyEPrUZ4XbbNIB4P59H63wPxIpk/d15k0C7Zx3kTESaEQuts3fne3ZFmrWm0dLD2yDTiB0zCraiQ5a0w++xuGEC3wdWPV+FHZh5Ea+WCd91g2xXPHJeosAQzBBBBaC9Shhx91h6lbCm4evvgqLnwt7JgnI2N4w2qr13lDDaRD4BXfyFrtLSTdhBgYEaFnUd6Afz5ilfDYXQW/yTSHZOIQ/vNVFpFxYrtmwHDdrSMiDpz0FE/4LLBG/rFl2VvRTmTEyjvwpGpEVaivMOLo/jRc3TA7jKB pim@ipng.nl + +# pim's M1 macbookpro SeKEY +ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBKDP/hLZusPNfKTy3t9bbbOHyczX+UACc4rYstc3QEDBDfxBnCZcMKN5Mv10o+q/+ap7wyFhONlz/qcUhEMbI1k= + diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-0/root/lab-build/disable-bird b/build/frr/hvn1.lab.ipng.ch/vpp1-0/root/lab-build/disable-bird new file mode 100644 index 0000000..59cc242 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-0/root/lab-build/disable-bird @@ -0,0 +1,7 @@ +#!/bin/sh + +echo " * Disabling Bird" +for i in bird-dataplane; do + rm -f /etc/systemd/system/multi-user.target.wants/${i}.service + ln -sf /dev/null /etc/systemd/system/${i}.service +done \ No newline at end of file diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-0/root/lab-build/perms b/build/frr/hvn1.lab.ipng.ch/vpp1-0/root/lab-build/perms new file mode 100644 index 0000000..93e0c65 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-0/root/lab-build/perms @@ -0,0 +1,7 @@ +#!/bin/bash + +echo " * Fixing permissions" +chown -R root. /root/ +chown -R ipng. /home/ipng/ + +[ -r /etc/rc.local ] && chmod 755 /etc/rc.local \ No newline at end of file diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-1/etc/frr/daemons b/build/frr/hvn1.lab.ipng.ch/vpp1-1/etc/frr/daemons new file mode 100644 index 0000000..d17f465 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-1/etc/frr/daemons @@ -0,0 +1,15 @@ +bgpd=yes +ospfd=yes +ospf6d=yes +bfdd=yes +ldpd=yes + +vtysh_enable=yes +watchfrr_options="--netns=dataplane" +zebra_options=" -A 127.0.0.1 -s 67108864 -M dplane_fpm_nl" +bgpd_options=" -A 127.0.0.1" +ospfd_options=" -A 127.0.0.1" +ospf6d_options=" -A ::1" +staticd_options="-A 127.0.0.1" +bfdd_options=" -A 127.0.0.1" +ldpd_options=" -A 127.0.0.1" \ No newline at end of file diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-1/etc/frr/frr.conf b/build/frr/hvn1.lab.ipng.ch/vpp1-1/etc/frr/frr.conf new file mode 100644 index 0000000..c8d818f --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-1/etc/frr/frr.conf @@ -0,0 +1,69 @@ +hostname vpp1-1 +log syslog informational +no ip forwarding +no ipv6 forwarding +service integrated-vtysh-config +! +ip router-id 192.168.11.1 +! +interface e0 + ip ospf area 0 + ip ospf network point-to-point + ipv6 ospf6 area 0 + ipv6 ospf6 network point-to-point + mpls enable +exit +! +interface e1 + ip ospf area 0 + ip ospf network point-to-point + ipv6 ospf6 area 0 + ipv6 ospf6 network point-to-point + mpls enable +exit +! +interface loop0 + ip ospf area 0 + ip ospf passive + ipv6 ospf6 area 0 + ipv6 ospf6 passive +exit +! +router ospf +exit +! +router ospf6 +exit +! +mpls ldp + router-id 192.168.11.1 + dual-stack cisco-interop + ordered-control + ! + address-family ipv4 + discovery transport-address 192.168.11.1 + label local advertise explicit-null + ! + interface e0 + exit + ! + interface e1 + exit + ! + exit-address-family + ! + address-family ipv6 + discovery transport-address 2001:678:d78:210::1 + label local advertise explicit-null + ttl-security disable + ! + interface e0 + exit + ! + interface e1 + exit + ! + exit-address-family + ! +exit +! \ No newline at end of file diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-1/etc/hostname b/build/frr/hvn1.lab.ipng.ch/vpp1-1/etc/hostname new file mode 100644 index 0000000..5d689bc --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-1/etc/hostname @@ -0,0 +1 @@ +vpp1-1 \ No newline at end of file diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-1/etc/hosts b/build/frr/hvn1.lab.ipng.ch/vpp1-1/etc/hosts new file mode 100644 index 0000000..85e58b8 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-1/etc/hosts @@ -0,0 +1,7 @@ +127.0.0.1 localhost +127.0.1.1 vpp1-1.lab.ipng.ch vpp1-1 + +# The following lines are desirable for IPv6 capable hosts +::1 localhost ip6-localhost ip6-loopback +ff02::1 ip6-allnodes +ff02::2 ip6-allrouters \ No newline at end of file diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-1/etc/motd b/build/frr/hvn1.lab.ipng.ch/vpp1-1/etc/motd new file mode 100644 index 0000000..56a5416 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-1/etc/motd @@ -0,0 +1,27 @@ + -*%%= + =%@@@@@: + :%@@@@@@@* + :*@@@@@@@@@@ .=+- + :=*#%@@@@@@@@@@@@@+ .+@@@@# + .+@@@@@@@@@@@@@@@@@@@@##@@@@@@@= + +@@@@@@@@@@@%*+@@@@@@@@@@@@@@@@@* + =@@@@@@@@@#=: *@@@@%#*+*@@@@@@@# + -%@@@@@@@*- ::. :*@@@@@@@@@ + =%@@@@@@@+ *@@@@@@@@@@@* + :*@@@@@@@@+ %@@@@@@@@@@@@@@+. + -*@@@@@@@@@+ +%@@@@@@@@@@@@@@@*. + .-+%@@@@@@@@@#- =@@@@@@@@@@@@@@@+ + :=*%@@@@@@@@%*=: @@@@@@@@@@@@@@@@# + :+#@@@@@@@#*+-: :*%@@@@@@%%@@@@@@@@@@@@@@@@@# + .=#@@%#*+=-. :##%%@@@@@@@@@@@@@@@@@@@@@@@@@# + .-=-: ..:-=+*#%@@@@@@@@@@@@@@- + ..::--==++***##%%%%@@@@@@@@@@@@@@@@%%%##***+==-::. .-=*#@@@@@@@@* + .:=+*#%%%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%#*+-: :=+#@@@% + ..:--=+**#%@@@@@@@@@@@@@@@@@@@@@@%#*##%@@@@@@@@@@@@@@@#+-. .-+- + .:=+*#%@@@@@@@@@@@@@@@@#+=:..-=+#%@@@@@@@@@@@@#+-. + .:=+#%@@@@@@@@@@@@@@@#+-. :-+#@@@@@@@@@@@%= + https://ipng.ch/ :-+#@@@@@@@@@@@@@@@#+-. .-+*%@%*-. + IPng Networks GmbH :=*%@@@@@@@@@@@@@%*- + :=*%@@@@@@@#+-. +Restricted access. Authorized users only. :=+-. +All connections are monitored and recorded. Contact for details. diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-1/etc/netns/dataplane/resolv.conf b/build/frr/hvn1.lab.ipng.ch/vpp1-1/etc/netns/dataplane/resolv.conf new file mode 100644 index 0000000..3411fcd --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-1/etc/netns/dataplane/resolv.conf @@ -0,0 +1,4 @@ +domain lab.ipng.ch +search lab.ipng.ch net.ipng.ch ipng.ch +nameserver 192.168.11.4 +nameserver 2001:678:d78:211::ffff diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-1/etc/netplan/01-netcfg.yaml b/build/frr/hvn1.lab.ipng.ch/vpp1-1/etc/netplan/01-netcfg.yaml new file mode 100644 index 0000000..8ee0562 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-1/etc/netplan/01-netcfg.yaml @@ -0,0 +1,15 @@ +network: + version: 2 + renderer: networkd + ethernets: + enp1s0: + optional: true + accept-ra: false + dhcp4: false + mtu: 9000 + addresses: [ 198.19.5.24/26, 2001:678:d78:50b::18/64 ] + routes: + - to: 0.0.0.0/0 + via: 198.19.5.1 + - to: ::/0 + via: 2001:678:d78:50b::1 diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-1/etc/resolv.conf b/build/frr/hvn1.lab.ipng.ch/vpp1-1/etc/resolv.conf new file mode 100644 index 0000000..6d35b25 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-1/etc/resolv.conf @@ -0,0 +1,4 @@ +domain lab.ipng.ch +search lab.ipng.ch net.ipng.ch ipng.ch +nameserver 194.1.163.3 +nameserver 194.1.163.4 diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-1/etc/vpp/bootstrap.vpp b/build/frr/hvn1.lab.ipng.ch/vpp1-1/etc/vpp/bootstrap.vpp new file mode 100644 index 0000000..ce0fc99 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-1/etc/vpp/bootstrap.vpp @@ -0,0 +1,11 @@ +comment { Apply system defaults from the build } +exec /etc/vpp/config/defaults.vpp +exec /etc/vpp/config/loopback.vpp +exec /etc/vpp/config/interface.vpp +exec /etc/vpp/config/lcp.vpp +exec /etc/vpp/config/mpls.vpp + +comment { exec /etc/vpp/config/flowprobe.vpp } + +comment { Allow user to set persistent manual configs } +exec /etc/vpp/config/manual.vpp diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-1/etc/vpp/config/defaults.vpp b/build/frr/hvn1.lab.ipng.ch/vpp1-1/etc/vpp/config/defaults.vpp new file mode 100644 index 0000000..dde7dbf --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-1/etc/vpp/config/defaults.vpp @@ -0,0 +1,5 @@ +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 + diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-1/etc/vpp/config/flowprobe.vpp b/build/frr/hvn1.lab.ipng.ch/vpp1-1/etc/vpp/config/flowprobe.vpp new file mode 100644 index 0000000..a9518b7 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-1/etc/vpp/config/flowprobe.vpp @@ -0,0 +1,10 @@ +comment { Generate full IPFIX stats, send them to lab.ipng.ch } + +set ipfix exporter collector 194.1.163.86 src 192.168.11.1 port 4739 path-mtu 1450 template-interval 30 + +flowprobe params record l2 l3 l4 active 10 passive 60 + +flowprobe feature add-del GigabitEthernet10/0/0 l2 both +flowprobe feature add-del GigabitEthernet10/0/1 l2 both +flowprobe feature add-del GigabitEthernet10/0/2 l2 both +flowprobe feature add-del GigabitEthernet10/0/3 l2 both diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-1/etc/vpp/config/interface.vpp b/build/frr/hvn1.lab.ipng.ch/vpp1-1/etc/vpp/config/interface.vpp new file mode 100644 index 0000000..5c7e54f --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-1/etc/vpp/config/interface.vpp @@ -0,0 +1,24 @@ +comment { Gi10/0/0 is connected to vpp1-0:Gi10/0/1 } +set interface mtu 9000 GigabitEthernet10/0/0 +set interface mtu packet 9000 GigabitEthernet10/0/0 +set interface ip address GigabitEthernet10/0/0 2001:678:d78:211::1:11/112 +set interface ip address GigabitEthernet10/0/0 192.168.11.7/31 +set interface state GigabitEthernet10/0/0 up + +comment { Gi10/0/1 is connected to vpp1-2:Gi10/0/0 } +set interface mtu 9000 GigabitEthernet10/0/1 +set interface mtu packet 9000 GigabitEthernet10/0/1 +set interface ip address GigabitEthernet10/0/1 2001:678:d78:211::2:11/112 +set interface ip address GigabitEthernet10/0/1 192.168.11.8/31 +set interface state GigabitEthernet10/0/1 up + +comment { Gi10/0/2 is free to use } +set interface mtu 9000 GigabitEthernet10/0/2 +set interface mtu packet 9000 GigabitEthernet10/0/2 +set interface state GigabitEthernet10/0/2 down + +comment { Gi10/0/3 is free to use } +set interface mtu 9000 GigabitEthernet10/0/3 +set interface mtu packet 9000 GigabitEthernet10/0/3 +set interface state GigabitEthernet10/0/3 down + diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-1/etc/vpp/config/lcp.vpp b/build/frr/hvn1.lab.ipng.ch/vpp1-1/etc/vpp/config/lcp.vpp new file mode 100644 index 0000000..b0fcea1 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-1/etc/vpp/config/lcp.vpp @@ -0,0 +1,7 @@ +comment { Create one LinuxCP Interface Pair for each phy } +lcp create loop0 host-if loop0 +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 + diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-1/etc/vpp/config/loopback.vpp b/build/frr/hvn1.lab.ipng.ch/vpp1-1/etc/vpp/config/loopback.vpp new file mode 100644 index 0000000..c22db9d --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-1/etc/vpp/config/loopback.vpp @@ -0,0 +1,6 @@ +comment { Create a loopback interface } +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 + diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-1/etc/vpp/config/manual.vpp b/build/frr/hvn1.lab.ipng.ch/vpp1-1/etc/vpp/config/manual.vpp new file mode 100644 index 0000000..a7935ef --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-1/etc/vpp/config/manual.vpp @@ -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. } diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-1/etc/vpp/config/mpls.vpp b/build/frr/hvn1.lab.ipng.ch/vpp1-1/etc/vpp/config/mpls.vpp new file mode 100644 index 0000000..2ba18c5 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-1/etc/vpp/config/mpls.vpp @@ -0,0 +1,3 @@ +mpls table add 0 +set interface mpls GigabitEthernet10/0/0 enable +set interface mpls GigabitEthernet10/0/1 enable diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-1/home/ipng/.ssh/authorized_keys b/build/frr/hvn1.lab.ipng.ch/vpp1-1/home/ipng/.ssh/authorized_keys new file mode 100644 index 0000000..331e254 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-1/home/ipng/.ssh/authorized_keys @@ -0,0 +1,6 @@ +# pim@ipng.nl - absynth, bfib, gripe, spongebob, homenet +ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC8X6oRdLn7PckWIRL+Fgp46qN+fglQLBJIvPHJ2P277v4tx/qlELaT8w45YyEPrUZ4XbbNIB4P59H63wPxIpk/d15k0C7Zx3kTESaEQuts3fne3ZFmrWm0dLD2yDTiB0zCraiQ5a0w++xuGEC3wdWPV+FHZh5Ea+WCd91g2xXPHJeosAQzBBBBaC9Shhx91h6lbCm4evvgqLnwt7JgnI2N4w2qr13lDDaRD4BXfyFrtLSTdhBgYEaFnUd6Afz5ilfDYXQW/yTSHZOIQ/vNVFpFxYrtmwHDdrSMiDpz0FE/4LLBG/rFl2VvRTmTEyjvwpGpEVaivMOLo/jRc3TA7jKB pim@ipng.nl + +# pim's M1 macbookpro SeKEY +ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBKDP/hLZusPNfKTy3t9bbbOHyczX+UACc4rYstc3QEDBDfxBnCZcMKN5Mv10o+q/+ap7wyFhONlz/qcUhEMbI1k= + diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-1/root/.ssh/authorized_keys b/build/frr/hvn1.lab.ipng.ch/vpp1-1/root/.ssh/authorized_keys new file mode 100644 index 0000000..331e254 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-1/root/.ssh/authorized_keys @@ -0,0 +1,6 @@ +# pim@ipng.nl - absynth, bfib, gripe, spongebob, homenet +ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC8X6oRdLn7PckWIRL+Fgp46qN+fglQLBJIvPHJ2P277v4tx/qlELaT8w45YyEPrUZ4XbbNIB4P59H63wPxIpk/d15k0C7Zx3kTESaEQuts3fne3ZFmrWm0dLD2yDTiB0zCraiQ5a0w++xuGEC3wdWPV+FHZh5Ea+WCd91g2xXPHJeosAQzBBBBaC9Shhx91h6lbCm4evvgqLnwt7JgnI2N4w2qr13lDDaRD4BXfyFrtLSTdhBgYEaFnUd6Afz5ilfDYXQW/yTSHZOIQ/vNVFpFxYrtmwHDdrSMiDpz0FE/4LLBG/rFl2VvRTmTEyjvwpGpEVaivMOLo/jRc3TA7jKB pim@ipng.nl + +# pim's M1 macbookpro SeKEY +ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBKDP/hLZusPNfKTy3t9bbbOHyczX+UACc4rYstc3QEDBDfxBnCZcMKN5Mv10o+q/+ap7wyFhONlz/qcUhEMbI1k= + diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-1/root/lab-build/disable-bird b/build/frr/hvn1.lab.ipng.ch/vpp1-1/root/lab-build/disable-bird new file mode 100644 index 0000000..59cc242 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-1/root/lab-build/disable-bird @@ -0,0 +1,7 @@ +#!/bin/sh + +echo " * Disabling Bird" +for i in bird-dataplane; do + rm -f /etc/systemd/system/multi-user.target.wants/${i}.service + ln -sf /dev/null /etc/systemd/system/${i}.service +done \ No newline at end of file diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-1/root/lab-build/perms b/build/frr/hvn1.lab.ipng.ch/vpp1-1/root/lab-build/perms new file mode 100644 index 0000000..93e0c65 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-1/root/lab-build/perms @@ -0,0 +1,7 @@ +#!/bin/bash + +echo " * Fixing permissions" +chown -R root. /root/ +chown -R ipng. /home/ipng/ + +[ -r /etc/rc.local ] && chmod 755 /etc/rc.local \ No newline at end of file diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-2/etc/frr/daemons b/build/frr/hvn1.lab.ipng.ch/vpp1-2/etc/frr/daemons new file mode 100644 index 0000000..d17f465 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-2/etc/frr/daemons @@ -0,0 +1,15 @@ +bgpd=yes +ospfd=yes +ospf6d=yes +bfdd=yes +ldpd=yes + +vtysh_enable=yes +watchfrr_options="--netns=dataplane" +zebra_options=" -A 127.0.0.1 -s 67108864 -M dplane_fpm_nl" +bgpd_options=" -A 127.0.0.1" +ospfd_options=" -A 127.0.0.1" +ospf6d_options=" -A ::1" +staticd_options="-A 127.0.0.1" +bfdd_options=" -A 127.0.0.1" +ldpd_options=" -A 127.0.0.1" \ No newline at end of file diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-2/etc/frr/frr.conf b/build/frr/hvn1.lab.ipng.ch/vpp1-2/etc/frr/frr.conf new file mode 100644 index 0000000..b1fd7d1 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-2/etc/frr/frr.conf @@ -0,0 +1,69 @@ +hostname vpp1-2 +log syslog informational +no ip forwarding +no ipv6 forwarding +service integrated-vtysh-config +! +ip router-id 192.168.11.2 +! +interface e0 + ip ospf area 0 + ip ospf network point-to-point + ipv6 ospf6 area 0 + ipv6 ospf6 network point-to-point + mpls enable +exit +! +interface e1 + ip ospf area 0 + ip ospf network point-to-point + ipv6 ospf6 area 0 + ipv6 ospf6 network point-to-point + mpls enable +exit +! +interface loop0 + ip ospf area 0 + ip ospf passive + ipv6 ospf6 area 0 + ipv6 ospf6 passive +exit +! +router ospf +exit +! +router ospf6 +exit +! +mpls ldp + router-id 192.168.11.2 + dual-stack cisco-interop + ordered-control + ! + address-family ipv4 + discovery transport-address 192.168.11.2 + label local advertise explicit-null + ! + interface e0 + exit + ! + interface e1 + exit + ! + exit-address-family + ! + address-family ipv6 + discovery transport-address 2001:678:d78:210::2 + label local advertise explicit-null + ttl-security disable + ! + interface e0 + exit + ! + interface e1 + exit + ! + exit-address-family + ! +exit +! \ No newline at end of file diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-2/etc/hostname b/build/frr/hvn1.lab.ipng.ch/vpp1-2/etc/hostname new file mode 100644 index 0000000..a720f18 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-2/etc/hostname @@ -0,0 +1 @@ +vpp1-2 \ No newline at end of file diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-2/etc/hosts b/build/frr/hvn1.lab.ipng.ch/vpp1-2/etc/hosts new file mode 100644 index 0000000..c955fdc --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-2/etc/hosts @@ -0,0 +1,7 @@ +127.0.0.1 localhost +127.0.1.1 vpp1-2.lab.ipng.ch vpp1-2 + +# The following lines are desirable for IPv6 capable hosts +::1 localhost ip6-localhost ip6-loopback +ff02::1 ip6-allnodes +ff02::2 ip6-allrouters \ No newline at end of file diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-2/etc/motd b/build/frr/hvn1.lab.ipng.ch/vpp1-2/etc/motd new file mode 100644 index 0000000..56a5416 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-2/etc/motd @@ -0,0 +1,27 @@ + -*%%= + =%@@@@@: + :%@@@@@@@* + :*@@@@@@@@@@ .=+- + :=*#%@@@@@@@@@@@@@+ .+@@@@# + .+@@@@@@@@@@@@@@@@@@@@##@@@@@@@= + +@@@@@@@@@@@%*+@@@@@@@@@@@@@@@@@* + =@@@@@@@@@#=: *@@@@%#*+*@@@@@@@# + -%@@@@@@@*- ::. :*@@@@@@@@@ + =%@@@@@@@+ *@@@@@@@@@@@* + :*@@@@@@@@+ %@@@@@@@@@@@@@@+. + -*@@@@@@@@@+ +%@@@@@@@@@@@@@@@*. + .-+%@@@@@@@@@#- =@@@@@@@@@@@@@@@+ + :=*%@@@@@@@@%*=: @@@@@@@@@@@@@@@@# + :+#@@@@@@@#*+-: :*%@@@@@@%%@@@@@@@@@@@@@@@@@# + .=#@@%#*+=-. :##%%@@@@@@@@@@@@@@@@@@@@@@@@@# + .-=-: ..:-=+*#%@@@@@@@@@@@@@@- + ..::--==++***##%%%%@@@@@@@@@@@@@@@@%%%##***+==-::. .-=*#@@@@@@@@* + .:=+*#%%%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%#*+-: :=+#@@@% + ..:--=+**#%@@@@@@@@@@@@@@@@@@@@@@%#*##%@@@@@@@@@@@@@@@#+-. .-+- + .:=+*#%@@@@@@@@@@@@@@@@#+=:..-=+#%@@@@@@@@@@@@#+-. + .:=+#%@@@@@@@@@@@@@@@#+-. :-+#@@@@@@@@@@@%= + https://ipng.ch/ :-+#@@@@@@@@@@@@@@@#+-. .-+*%@%*-. + IPng Networks GmbH :=*%@@@@@@@@@@@@@%*- + :=*%@@@@@@@#+-. +Restricted access. Authorized users only. :=+-. +All connections are monitored and recorded. Contact for details. diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-2/etc/netns/dataplane/resolv.conf b/build/frr/hvn1.lab.ipng.ch/vpp1-2/etc/netns/dataplane/resolv.conf new file mode 100644 index 0000000..3411fcd --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-2/etc/netns/dataplane/resolv.conf @@ -0,0 +1,4 @@ +domain lab.ipng.ch +search lab.ipng.ch net.ipng.ch ipng.ch +nameserver 192.168.11.4 +nameserver 2001:678:d78:211::ffff diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-2/etc/netplan/01-netcfg.yaml b/build/frr/hvn1.lab.ipng.ch/vpp1-2/etc/netplan/01-netcfg.yaml new file mode 100644 index 0000000..b8d5c4d --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-2/etc/netplan/01-netcfg.yaml @@ -0,0 +1,15 @@ +network: + version: 2 + renderer: networkd + ethernets: + enp1s0: + optional: true + accept-ra: false + dhcp4: false + mtu: 9000 + addresses: [ 198.19.5.25/26, 2001:678:d78:50b::19/64 ] + routes: + - to: 0.0.0.0/0 + via: 198.19.5.1 + - to: ::/0 + via: 2001:678:d78:50b::1 diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-2/etc/resolv.conf b/build/frr/hvn1.lab.ipng.ch/vpp1-2/etc/resolv.conf new file mode 100644 index 0000000..6d35b25 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-2/etc/resolv.conf @@ -0,0 +1,4 @@ +domain lab.ipng.ch +search lab.ipng.ch net.ipng.ch ipng.ch +nameserver 194.1.163.3 +nameserver 194.1.163.4 diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-2/etc/vpp/bootstrap.vpp b/build/frr/hvn1.lab.ipng.ch/vpp1-2/etc/vpp/bootstrap.vpp new file mode 100644 index 0000000..ce0fc99 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-2/etc/vpp/bootstrap.vpp @@ -0,0 +1,11 @@ +comment { Apply system defaults from the build } +exec /etc/vpp/config/defaults.vpp +exec /etc/vpp/config/loopback.vpp +exec /etc/vpp/config/interface.vpp +exec /etc/vpp/config/lcp.vpp +exec /etc/vpp/config/mpls.vpp + +comment { exec /etc/vpp/config/flowprobe.vpp } + +comment { Allow user to set persistent manual configs } +exec /etc/vpp/config/manual.vpp diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-2/etc/vpp/config/defaults.vpp b/build/frr/hvn1.lab.ipng.ch/vpp1-2/etc/vpp/config/defaults.vpp new file mode 100644 index 0000000..dde7dbf --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-2/etc/vpp/config/defaults.vpp @@ -0,0 +1,5 @@ +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 + diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-2/etc/vpp/config/flowprobe.vpp b/build/frr/hvn1.lab.ipng.ch/vpp1-2/etc/vpp/config/flowprobe.vpp new file mode 100644 index 0000000..70ed3ed --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-2/etc/vpp/config/flowprobe.vpp @@ -0,0 +1,10 @@ +comment { Generate full IPFIX stats, send them to lab.ipng.ch } + +set ipfix exporter collector 194.1.163.86 src 192.168.11.2 port 4739 path-mtu 1450 template-interval 30 + +flowprobe params record l2 l3 l4 active 10 passive 60 + +flowprobe feature add-del GigabitEthernet10/0/0 l2 both +flowprobe feature add-del GigabitEthernet10/0/1 l2 both +flowprobe feature add-del GigabitEthernet10/0/2 l2 both +flowprobe feature add-del GigabitEthernet10/0/3 l2 both diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-2/etc/vpp/config/interface.vpp b/build/frr/hvn1.lab.ipng.ch/vpp1-2/etc/vpp/config/interface.vpp new file mode 100644 index 0000000..3d359bd --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-2/etc/vpp/config/interface.vpp @@ -0,0 +1,24 @@ +comment { Gi10/0/0 is connected to vpp1-1:Gi10/0/1 } +set interface mtu 9000 GigabitEthernet10/0/0 +set interface mtu packet 9000 GigabitEthernet10/0/0 +set interface ip address GigabitEthernet10/0/0 2001:678:d78:211::2:12/112 +set interface ip address GigabitEthernet10/0/0 192.168.11.9/31 +set interface state GigabitEthernet10/0/0 up + +comment { Gi10/0/1 is connected to vpp1-3:Gi10/0/0 } +set interface mtu 9000 GigabitEthernet10/0/1 +set interface mtu packet 9000 GigabitEthernet10/0/1 +set interface ip address GigabitEthernet10/0/1 2001:678:d78:211::3:12/112 +set interface ip address GigabitEthernet10/0/1 192.168.11.10/31 +set interface state GigabitEthernet10/0/1 up + +comment { Gi10/0/2 is free to use } +set interface mtu 9000 GigabitEthernet10/0/2 +set interface mtu packet 9000 GigabitEthernet10/0/2 +set interface state GigabitEthernet10/0/2 down + +comment { Gi10/0/3 is free to use } +set interface mtu 9000 GigabitEthernet10/0/3 +set interface mtu packet 9000 GigabitEthernet10/0/3 +set interface state GigabitEthernet10/0/3 down + diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-2/etc/vpp/config/lcp.vpp b/build/frr/hvn1.lab.ipng.ch/vpp1-2/etc/vpp/config/lcp.vpp new file mode 100644 index 0000000..b0fcea1 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-2/etc/vpp/config/lcp.vpp @@ -0,0 +1,7 @@ +comment { Create one LinuxCP Interface Pair for each phy } +lcp create loop0 host-if loop0 +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 + diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-2/etc/vpp/config/loopback.vpp b/build/frr/hvn1.lab.ipng.ch/vpp1-2/etc/vpp/config/loopback.vpp new file mode 100644 index 0000000..3211182 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-2/etc/vpp/config/loopback.vpp @@ -0,0 +1,6 @@ +comment { Create a loopback interface } +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 + diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-2/etc/vpp/config/manual.vpp b/build/frr/hvn1.lab.ipng.ch/vpp1-2/etc/vpp/config/manual.vpp new file mode 100644 index 0000000..8416868 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-2/etc/vpp/config/manual.vpp @@ -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. } diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-2/etc/vpp/config/mpls.vpp b/build/frr/hvn1.lab.ipng.ch/vpp1-2/etc/vpp/config/mpls.vpp new file mode 100644 index 0000000..2ba18c5 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-2/etc/vpp/config/mpls.vpp @@ -0,0 +1,3 @@ +mpls table add 0 +set interface mpls GigabitEthernet10/0/0 enable +set interface mpls GigabitEthernet10/0/1 enable diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-2/home/ipng/.ssh/authorized_keys b/build/frr/hvn1.lab.ipng.ch/vpp1-2/home/ipng/.ssh/authorized_keys new file mode 100644 index 0000000..331e254 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-2/home/ipng/.ssh/authorized_keys @@ -0,0 +1,6 @@ +# pim@ipng.nl - absynth, bfib, gripe, spongebob, homenet +ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC8X6oRdLn7PckWIRL+Fgp46qN+fglQLBJIvPHJ2P277v4tx/qlELaT8w45YyEPrUZ4XbbNIB4P59H63wPxIpk/d15k0C7Zx3kTESaEQuts3fne3ZFmrWm0dLD2yDTiB0zCraiQ5a0w++xuGEC3wdWPV+FHZh5Ea+WCd91g2xXPHJeosAQzBBBBaC9Shhx91h6lbCm4evvgqLnwt7JgnI2N4w2qr13lDDaRD4BXfyFrtLSTdhBgYEaFnUd6Afz5ilfDYXQW/yTSHZOIQ/vNVFpFxYrtmwHDdrSMiDpz0FE/4LLBG/rFl2VvRTmTEyjvwpGpEVaivMOLo/jRc3TA7jKB pim@ipng.nl + +# pim's M1 macbookpro SeKEY +ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBKDP/hLZusPNfKTy3t9bbbOHyczX+UACc4rYstc3QEDBDfxBnCZcMKN5Mv10o+q/+ap7wyFhONlz/qcUhEMbI1k= + diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-2/root/.ssh/authorized_keys b/build/frr/hvn1.lab.ipng.ch/vpp1-2/root/.ssh/authorized_keys new file mode 100644 index 0000000..331e254 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-2/root/.ssh/authorized_keys @@ -0,0 +1,6 @@ +# pim@ipng.nl - absynth, bfib, gripe, spongebob, homenet +ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC8X6oRdLn7PckWIRL+Fgp46qN+fglQLBJIvPHJ2P277v4tx/qlELaT8w45YyEPrUZ4XbbNIB4P59H63wPxIpk/d15k0C7Zx3kTESaEQuts3fne3ZFmrWm0dLD2yDTiB0zCraiQ5a0w++xuGEC3wdWPV+FHZh5Ea+WCd91g2xXPHJeosAQzBBBBaC9Shhx91h6lbCm4evvgqLnwt7JgnI2N4w2qr13lDDaRD4BXfyFrtLSTdhBgYEaFnUd6Afz5ilfDYXQW/yTSHZOIQ/vNVFpFxYrtmwHDdrSMiDpz0FE/4LLBG/rFl2VvRTmTEyjvwpGpEVaivMOLo/jRc3TA7jKB pim@ipng.nl + +# pim's M1 macbookpro SeKEY +ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBKDP/hLZusPNfKTy3t9bbbOHyczX+UACc4rYstc3QEDBDfxBnCZcMKN5Mv10o+q/+ap7wyFhONlz/qcUhEMbI1k= + diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-2/root/lab-build/disable-bird b/build/frr/hvn1.lab.ipng.ch/vpp1-2/root/lab-build/disable-bird new file mode 100644 index 0000000..59cc242 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-2/root/lab-build/disable-bird @@ -0,0 +1,7 @@ +#!/bin/sh + +echo " * Disabling Bird" +for i in bird-dataplane; do + rm -f /etc/systemd/system/multi-user.target.wants/${i}.service + ln -sf /dev/null /etc/systemd/system/${i}.service +done \ No newline at end of file diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-2/root/lab-build/perms b/build/frr/hvn1.lab.ipng.ch/vpp1-2/root/lab-build/perms new file mode 100644 index 0000000..93e0c65 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-2/root/lab-build/perms @@ -0,0 +1,7 @@ +#!/bin/bash + +echo " * Fixing permissions" +chown -R root. /root/ +chown -R ipng. /home/ipng/ + +[ -r /etc/rc.local ] && chmod 755 /etc/rc.local \ No newline at end of file diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-3/etc/frr/daemons b/build/frr/hvn1.lab.ipng.ch/vpp1-3/etc/frr/daemons new file mode 100644 index 0000000..d17f465 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-3/etc/frr/daemons @@ -0,0 +1,15 @@ +bgpd=yes +ospfd=yes +ospf6d=yes +bfdd=yes +ldpd=yes + +vtysh_enable=yes +watchfrr_options="--netns=dataplane" +zebra_options=" -A 127.0.0.1 -s 67108864 -M dplane_fpm_nl" +bgpd_options=" -A 127.0.0.1" +ospfd_options=" -A 127.0.0.1" +ospf6d_options=" -A ::1" +staticd_options="-A 127.0.0.1" +bfdd_options=" -A 127.0.0.1" +ldpd_options=" -A 127.0.0.1" \ No newline at end of file diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-3/etc/frr/frr.conf b/build/frr/hvn1.lab.ipng.ch/vpp1-3/etc/frr/frr.conf new file mode 100644 index 0000000..5cf3225 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-3/etc/frr/frr.conf @@ -0,0 +1,69 @@ +hostname vpp1-3 +log syslog informational +no ip forwarding +no ipv6 forwarding +service integrated-vtysh-config +! +ip router-id 192.168.11.3 +! +interface e0 + ip ospf area 0 + ip ospf network point-to-point + ipv6 ospf6 area 0 + ipv6 ospf6 network point-to-point + mpls enable +exit +! +interface e1 + ip ospf area 0 + ip ospf network point-to-point + ipv6 ospf6 area 0 + ipv6 ospf6 network point-to-point + mpls enable +exit +! +interface loop0 + ip ospf area 0 + ip ospf passive + ipv6 ospf6 area 0 + ipv6 ospf6 passive +exit +! +router ospf +exit +! +router ospf6 +exit +! +mpls ldp + router-id 192.168.11.3 + dual-stack cisco-interop + ordered-control + ! + address-family ipv4 + discovery transport-address 192.168.11.3 + label local advertise explicit-null + ! + interface e0 + exit + ! + interface e1 + exit + ! + exit-address-family + ! + address-family ipv6 + discovery transport-address 2001:678:d78:210::3 + label local advertise explicit-null + ttl-security disable + ! + interface e0 + exit + ! + interface e1 + exit + ! + exit-address-family + ! +exit +! \ No newline at end of file diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-3/etc/hostname b/build/frr/hvn1.lab.ipng.ch/vpp1-3/etc/hostname new file mode 100644 index 0000000..2bd3b3f --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-3/etc/hostname @@ -0,0 +1 @@ +vpp1-3 \ No newline at end of file diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-3/etc/hosts b/build/frr/hvn1.lab.ipng.ch/vpp1-3/etc/hosts new file mode 100644 index 0000000..10890ea --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-3/etc/hosts @@ -0,0 +1,7 @@ +127.0.0.1 localhost +127.0.1.1 vpp1-3.lab.ipng.ch vpp1-3 + +# The following lines are desirable for IPv6 capable hosts +::1 localhost ip6-localhost ip6-loopback +ff02::1 ip6-allnodes +ff02::2 ip6-allrouters \ No newline at end of file diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-3/etc/motd b/build/frr/hvn1.lab.ipng.ch/vpp1-3/etc/motd new file mode 100644 index 0000000..56a5416 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-3/etc/motd @@ -0,0 +1,27 @@ + -*%%= + =%@@@@@: + :%@@@@@@@* + :*@@@@@@@@@@ .=+- + :=*#%@@@@@@@@@@@@@+ .+@@@@# + .+@@@@@@@@@@@@@@@@@@@@##@@@@@@@= + +@@@@@@@@@@@%*+@@@@@@@@@@@@@@@@@* + =@@@@@@@@@#=: *@@@@%#*+*@@@@@@@# + -%@@@@@@@*- ::. :*@@@@@@@@@ + =%@@@@@@@+ *@@@@@@@@@@@* + :*@@@@@@@@+ %@@@@@@@@@@@@@@+. + -*@@@@@@@@@+ +%@@@@@@@@@@@@@@@*. + .-+%@@@@@@@@@#- =@@@@@@@@@@@@@@@+ + :=*%@@@@@@@@%*=: @@@@@@@@@@@@@@@@# + :+#@@@@@@@#*+-: :*%@@@@@@%%@@@@@@@@@@@@@@@@@# + .=#@@%#*+=-. :##%%@@@@@@@@@@@@@@@@@@@@@@@@@# + .-=-: ..:-=+*#%@@@@@@@@@@@@@@- + ..::--==++***##%%%%@@@@@@@@@@@@@@@@%%%##***+==-::. .-=*#@@@@@@@@* + .:=+*#%%%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%#*+-: :=+#@@@% + ..:--=+**#%@@@@@@@@@@@@@@@@@@@@@@%#*##%@@@@@@@@@@@@@@@#+-. .-+- + .:=+*#%@@@@@@@@@@@@@@@@#+=:..-=+#%@@@@@@@@@@@@#+-. + .:=+#%@@@@@@@@@@@@@@@#+-. :-+#@@@@@@@@@@@%= + https://ipng.ch/ :-+#@@@@@@@@@@@@@@@#+-. .-+*%@%*-. + IPng Networks GmbH :=*%@@@@@@@@@@@@@%*- + :=*%@@@@@@@#+-. +Restricted access. Authorized users only. :=+-. +All connections are monitored and recorded. Contact for details. diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-3/etc/netns/dataplane/resolv.conf b/build/frr/hvn1.lab.ipng.ch/vpp1-3/etc/netns/dataplane/resolv.conf new file mode 100644 index 0000000..3411fcd --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-3/etc/netns/dataplane/resolv.conf @@ -0,0 +1,4 @@ +domain lab.ipng.ch +search lab.ipng.ch net.ipng.ch ipng.ch +nameserver 192.168.11.4 +nameserver 2001:678:d78:211::ffff diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-3/etc/netplan/01-netcfg.yaml b/build/frr/hvn1.lab.ipng.ch/vpp1-3/etc/netplan/01-netcfg.yaml new file mode 100644 index 0000000..1b13606 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-3/etc/netplan/01-netcfg.yaml @@ -0,0 +1,15 @@ +network: + version: 2 + renderer: networkd + ethernets: + enp1s0: + optional: true + accept-ra: false + dhcp4: false + mtu: 9000 + addresses: [ 198.19.5.26/26, 2001:678:d78:50b::1a/64 ] + routes: + - to: 0.0.0.0/0 + via: 198.19.5.1 + - to: ::/0 + via: 2001:678:d78:50b::1 diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-3/etc/resolv.conf b/build/frr/hvn1.lab.ipng.ch/vpp1-3/etc/resolv.conf new file mode 100644 index 0000000..6d35b25 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-3/etc/resolv.conf @@ -0,0 +1,4 @@ +domain lab.ipng.ch +search lab.ipng.ch net.ipng.ch ipng.ch +nameserver 194.1.163.3 +nameserver 194.1.163.4 diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-3/etc/vpp/bootstrap.vpp b/build/frr/hvn1.lab.ipng.ch/vpp1-3/etc/vpp/bootstrap.vpp new file mode 100644 index 0000000..ce0fc99 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-3/etc/vpp/bootstrap.vpp @@ -0,0 +1,11 @@ +comment { Apply system defaults from the build } +exec /etc/vpp/config/defaults.vpp +exec /etc/vpp/config/loopback.vpp +exec /etc/vpp/config/interface.vpp +exec /etc/vpp/config/lcp.vpp +exec /etc/vpp/config/mpls.vpp + +comment { exec /etc/vpp/config/flowprobe.vpp } + +comment { Allow user to set persistent manual configs } +exec /etc/vpp/config/manual.vpp diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-3/etc/vpp/config/defaults.vpp b/build/frr/hvn1.lab.ipng.ch/vpp1-3/etc/vpp/config/defaults.vpp new file mode 100644 index 0000000..dde7dbf --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-3/etc/vpp/config/defaults.vpp @@ -0,0 +1,5 @@ +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 + diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-3/etc/vpp/config/flowprobe.vpp b/build/frr/hvn1.lab.ipng.ch/vpp1-3/etc/vpp/config/flowprobe.vpp new file mode 100644 index 0000000..36de70b --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-3/etc/vpp/config/flowprobe.vpp @@ -0,0 +1,10 @@ +comment { Generate full IPFIX stats, send them to lab.ipng.ch } + +set ipfix exporter collector 194.1.163.86 src 192.168.11.3 port 4739 path-mtu 1450 template-interval 30 + +flowprobe params record l2 l3 l4 active 10 passive 60 + +flowprobe feature add-del GigabitEthernet10/0/0 l2 both +flowprobe feature add-del GigabitEthernet10/0/1 l2 both +flowprobe feature add-del GigabitEthernet10/0/2 l2 both +flowprobe feature add-del GigabitEthernet10/0/3 l2 both diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-3/etc/vpp/config/interface.vpp b/build/frr/hvn1.lab.ipng.ch/vpp1-3/etc/vpp/config/interface.vpp new file mode 100644 index 0000000..c749b49 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-3/etc/vpp/config/interface.vpp @@ -0,0 +1,22 @@ +comment { Gi10/0/0 is connected to vpp1-2:Gi10/0/1 } +set interface mtu 9000 GigabitEthernet10/0/0 +set interface mtu packet 9000 GigabitEthernet10/0/0 +set interface ip address GigabitEthernet10/0/0 2001:678:d78:211::3:13/112 +set interface ip address GigabitEthernet10/0/0 192.168.11.11/31 +set interface state GigabitEthernet10/0/0 up + +comment { Gi10/0/1 is free to use } +set interface mtu 9000 GigabitEthernet10/0/1 +set interface mtu packet 9000 GigabitEthernet10/0/1 +set interface state GigabitEthernet10/0/1 down + +comment { Gi10/0/2 is free to use } +set interface mtu 9000 GigabitEthernet10/0/2 +set interface mtu packet 9000 GigabitEthernet10/0/2 +set interface state GigabitEthernet10/0/2 down + +comment { Gi10/0/3 is free to use } +set interface mtu 9000 GigabitEthernet10/0/3 +set interface mtu packet 9000 GigabitEthernet10/0/3 +set interface state GigabitEthernet10/0/3 down + diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-3/etc/vpp/config/lcp.vpp b/build/frr/hvn1.lab.ipng.ch/vpp1-3/etc/vpp/config/lcp.vpp new file mode 100644 index 0000000..b0fcea1 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-3/etc/vpp/config/lcp.vpp @@ -0,0 +1,7 @@ +comment { Create one LinuxCP Interface Pair for each phy } +lcp create loop0 host-if loop0 +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 + diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-3/etc/vpp/config/loopback.vpp b/build/frr/hvn1.lab.ipng.ch/vpp1-3/etc/vpp/config/loopback.vpp new file mode 100644 index 0000000..bb07712 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-3/etc/vpp/config/loopback.vpp @@ -0,0 +1,6 @@ +comment { Create a loopback interface } +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 + diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-3/etc/vpp/config/manual.vpp b/build/frr/hvn1.lab.ipng.ch/vpp1-3/etc/vpp/config/manual.vpp new file mode 100644 index 0000000..c4d4763 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-3/etc/vpp/config/manual.vpp @@ -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. } diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-3/etc/vpp/config/mpls.vpp b/build/frr/hvn1.lab.ipng.ch/vpp1-3/etc/vpp/config/mpls.vpp new file mode 100644 index 0000000..ed52371 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-3/etc/vpp/config/mpls.vpp @@ -0,0 +1,2 @@ +mpls table add 0 +set interface mpls GigabitEthernet10/0/0 enable diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-3/home/ipng/.ssh/authorized_keys b/build/frr/hvn1.lab.ipng.ch/vpp1-3/home/ipng/.ssh/authorized_keys new file mode 100644 index 0000000..331e254 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-3/home/ipng/.ssh/authorized_keys @@ -0,0 +1,6 @@ +# pim@ipng.nl - absynth, bfib, gripe, spongebob, homenet +ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC8X6oRdLn7PckWIRL+Fgp46qN+fglQLBJIvPHJ2P277v4tx/qlELaT8w45YyEPrUZ4XbbNIB4P59H63wPxIpk/d15k0C7Zx3kTESaEQuts3fne3ZFmrWm0dLD2yDTiB0zCraiQ5a0w++xuGEC3wdWPV+FHZh5Ea+WCd91g2xXPHJeosAQzBBBBaC9Shhx91h6lbCm4evvgqLnwt7JgnI2N4w2qr13lDDaRD4BXfyFrtLSTdhBgYEaFnUd6Afz5ilfDYXQW/yTSHZOIQ/vNVFpFxYrtmwHDdrSMiDpz0FE/4LLBG/rFl2VvRTmTEyjvwpGpEVaivMOLo/jRc3TA7jKB pim@ipng.nl + +# pim's M1 macbookpro SeKEY +ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBKDP/hLZusPNfKTy3t9bbbOHyczX+UACc4rYstc3QEDBDfxBnCZcMKN5Mv10o+q/+ap7wyFhONlz/qcUhEMbI1k= + diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-3/root/.ssh/authorized_keys b/build/frr/hvn1.lab.ipng.ch/vpp1-3/root/.ssh/authorized_keys new file mode 100644 index 0000000..331e254 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-3/root/.ssh/authorized_keys @@ -0,0 +1,6 @@ +# pim@ipng.nl - absynth, bfib, gripe, spongebob, homenet +ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC8X6oRdLn7PckWIRL+Fgp46qN+fglQLBJIvPHJ2P277v4tx/qlELaT8w45YyEPrUZ4XbbNIB4P59H63wPxIpk/d15k0C7Zx3kTESaEQuts3fne3ZFmrWm0dLD2yDTiB0zCraiQ5a0w++xuGEC3wdWPV+FHZh5Ea+WCd91g2xXPHJeosAQzBBBBaC9Shhx91h6lbCm4evvgqLnwt7JgnI2N4w2qr13lDDaRD4BXfyFrtLSTdhBgYEaFnUd6Afz5ilfDYXQW/yTSHZOIQ/vNVFpFxYrtmwHDdrSMiDpz0FE/4LLBG/rFl2VvRTmTEyjvwpGpEVaivMOLo/jRc3TA7jKB pim@ipng.nl + +# pim's M1 macbookpro SeKEY +ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBKDP/hLZusPNfKTy3t9bbbOHyczX+UACc4rYstc3QEDBDfxBnCZcMKN5Mv10o+q/+ap7wyFhONlz/qcUhEMbI1k= + diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-3/root/lab-build/disable-bird b/build/frr/hvn1.lab.ipng.ch/vpp1-3/root/lab-build/disable-bird new file mode 100644 index 0000000..59cc242 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-3/root/lab-build/disable-bird @@ -0,0 +1,7 @@ +#!/bin/sh + +echo " * Disabling Bird" +for i in bird-dataplane; do + rm -f /etc/systemd/system/multi-user.target.wants/${i}.service + ln -sf /dev/null /etc/systemd/system/${i}.service +done \ No newline at end of file diff --git a/build/frr/hvn1.lab.ipng.ch/vpp1-3/root/lab-build/perms b/build/frr/hvn1.lab.ipng.ch/vpp1-3/root/lab-build/perms new file mode 100644 index 0000000..93e0c65 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/vpp1-3/root/lab-build/perms @@ -0,0 +1,7 @@ +#!/bin/bash + +echo " * Fixing permissions" +chown -R root. /root/ +chown -R ipng. /home/ipng/ + +[ -r /etc/rc.local ] && chmod 755 /etc/rc.local \ No newline at end of file diff --git a/generate b/generate index 67efbe4..575bb73 100755 --- a/generate +++ b/generate @@ -80,7 +80,7 @@ def find(file_or_dir_list): if os.path.isfile(e): ret[e] = tpl2fn(e, e) elif os.path.isdir(e): - for root, dirnames, filenames in os.walk(e): + for root, dirnames, filenames in os.walk(e, followlinks=True): for filename in filenames: if filename.startswith("_"): continue diff --git a/overlays/frr/common b/overlays/frr/common new file mode 120000 index 0000000..f278301 --- /dev/null +++ b/overlays/frr/common @@ -0,0 +1 @@ +../bird/common/ \ No newline at end of file diff --git a/overlays/frr/host b/overlays/frr/host new file mode 120000 index 0000000..11c8eb2 --- /dev/null +++ b/overlays/frr/host @@ -0,0 +1 @@ +../bird/host/ \ No newline at end of file diff --git a/overlays/frr/ovs-config.sh b/overlays/frr/ovs-config.sh new file mode 100755 index 0000000..5f6962a --- /dev/null +++ b/overlays/frr/ovs-config.sh @@ -0,0 +1,79 @@ +#!/bin/bash +# +# OVS configuration for the `frr` overlay + +LAB=${LAB:=0} +BR=vpplan +for p in $(ovs-vsctl list-ifaces $BR); do + ovs-vsctl set port $p vlan_mode=access +done + +# Uplink is VLAN 10 +ovs-vsctl add port vpp${LAB}-0-0 tag 10 +ovs-vsctl add port uplink tag 10 + +# Link vpp${LAB}-0 <-> vpp${LAB}-1 in VLAN 20 +ovs-vsctl add port vpp${LAB}-0-1 tag 20 +ovs-vsctl add port vpp${LAB}-1-0 tag 20 + +# Link vpp${LAB}-1 <-> vpp${LAB}-2 in VLAN 21 +ovs-vsctl add port vpp${LAB}-1-1 tag 21 +ovs-vsctl add port vpp${LAB}-2-0 tag 21 + +# Link vpp${LAB}-2 <-> vpp${LAB}-3 in VLAN 22 +ovs-vsctl add port vpp${LAB}-2-1 tag 22 +ovs-vsctl add port vpp${LAB}-3-0 tag 22 + +## Wire host${LAB}-0-[0123] to e2 of all VPP machines +ovs-vsctl set port vpp${LAB}-0-2 tag=30 +ovs-vsctl set port host${LAB}-0-0 tag=30 +ovs-vsctl set port vpp${LAB}-1-2 tag=31 +ovs-vsctl set port host${LAB}-0-1 tag=31 +ovs-vsctl set port vpp${LAB}-2-2 tag=32 +ovs-vsctl set port host${LAB}-0-2 tag=32 +ovs-vsctl set port vpp${LAB}-3-2 tag=33 +ovs-vsctl set port host${LAB}-0-3 tag=33 + +## Wire host${LAB}-1-[0123] to e3 of all VPP machines +ovs-vsctl set port vpp${LAB}-0-3 tag=40 +ovs-vsctl set port host${LAB}-1-0 tag=40 +ovs-vsctl set port vpp${LAB}-1-3 tag=41 +ovs-vsctl set port host${LAB}-1-1 tag=41 +ovs-vsctl set port vpp${LAB}-2-3 tag=42 +ovs-vsctl set port host${LAB}-1-2 tag=42 +ovs-vsctl set port vpp${LAB}-3-3 tag=43 +ovs-vsctl set port host${LAB}-1-3 tag=43 + +## Wire tap${LAB}-0-0 as 'rx' tap +MIRROR=mirror-rx +ovs-vsctl set port tap${LAB}-0-0 vlan_mode=native-tagged +[ ovs-vsctl list mirror $MIRROR >/dev/null 2>&1 ] || \ + ovs-vsctl -- --id=@m get mirror $MIRROR -- remove bridge $BR mirrors @m +ovs-vsctl --id=@m create mirror name=$MIRROR \ + -- --id=@p get port tap${LAB}-0-0 \ + -- add bridge $BR mirrors @m \ + -- set mirror $MIRROR output-port=@p \ + -- set mirror $MIRROR select_dst_port=[] \ + -- set mirror $MIRROR select_src_port=[] +for iface in $(ovs-vsctl list-ports $BR); do + [[ $iface == tap* ]] && continue + [[ $iface == uplink ]] && continue + ovs-vsctl add mirror $MIRROR select_dst_port $(ovs-vsctl get port $iface _uuid) +done + +## Wire tap${LAB}-0-1 as 'tx' tap +MIRROR=mirror-tx +ovs-vsctl set port tap${LAB}-0-1 vlan_mode=native-tagged +[ ovs-vsctl list mirror $MIRROR >/dev/null 2>&1 ] || \ + ovs-vsctl -- --id=@m get mirror $MIRROR -- remove bridge $BR mirrors @m +ovs-vsctl --id=@m create mirror name=$MIRROR \ + -- --id=@p get port tap${LAB}-0-1 \ + -- add bridge $BR mirrors @m \ + -- set mirror $MIRROR output-port=@p \ + -- set mirror $MIRROR select_dst_port=[] \ + -- set mirror $MIRROR select_src_port=[] +for iface in $(ovs-vsctl list-ports $BR); do + [[ $iface == tap* ]] && continue + [[ $iface == uplink ]] && continue + ovs-vsctl add mirror $MIRROR select_src_port $(ovs-vsctl get port $iface _uuid) +done diff --git a/overlays/frr/tap b/overlays/frr/tap new file mode 120000 index 0000000..62e1c8c --- /dev/null +++ b/overlays/frr/tap @@ -0,0 +1 @@ +../bird/tap/ \ No newline at end of file diff --git a/overlays/frr/vpp/etc/frr/daemons b/overlays/frr/vpp/etc/frr/daemons new file mode 100644 index 0000000..1d59a5f --- /dev/null +++ b/overlays/frr/vpp/etc/frr/daemons @@ -0,0 +1,15 @@ +bgpd=yes +ospfd=yes +ospf6d=yes +bfdd=yes +ldpd=yes + +vtysh_enable=yes +watchfrr_options="--netns=dataplane" +zebra_options=" -A 127.0.0.1 -s 67108864 -M dplane_fpm_nl" +bgpd_options=" -A 127.0.0.1" +ospfd_options=" -A 127.0.0.1" +ospf6d_options=" -A ::1" +staticd_options="-A 127.0.0.1" +bfdd_options=" -A 127.0.0.1" +ldpd_options=" -A 127.0.0.1" diff --git a/overlays/frr/vpp/etc/frr/frr.conf.j2 b/overlays/frr/vpp/etc/frr/frr.conf.j2 new file mode 100644 index 0000000..5a48fe4 --- /dev/null +++ b/overlays/frr/vpp/etc/frr/frr.conf.j2 @@ -0,0 +1,71 @@ +hostname {{ node.hostname }} +log syslog informational +no ip forwarding +no ipv6 forwarding +service integrated-vtysh-config +{% set loop4 = node.loopback.ipv4.split("/")[0] %} +{% set loop6 = node.loopback.ipv6.split("/")[0] %} +! +ip router-id {{ loop4 }} +! +interface e0 + ip ospf area 0 + ip ospf network point-to-point + ipv6 ospf6 area 0 + ipv6 ospf6 network point-to-point + mpls enable +exit +! +interface e1 + ip ospf area 0 + ip ospf network point-to-point + ipv6 ospf6 area 0 + ipv6 ospf6 network point-to-point + mpls enable +exit +! +interface loop0 + ip ospf area 0 + ip ospf passive + ipv6 ospf6 area 0 + ipv6 ospf6 passive +exit +! +router ospf +exit +! +router ospf6 +exit +! +mpls ldp + router-id {{ loop4 }} + dual-stack cisco-interop + ordered-control + ! + address-family ipv4 + discovery transport-address {{ loop4 }} + label local advertise explicit-null + ! + interface e0 + exit + ! + interface e1 + exit + ! + exit-address-family + ! + address-family ipv6 + discovery transport-address {{ loop6 }} + label local advertise explicit-null + ttl-security disable + ! + interface e0 + exit + ! + interface e1 + exit + ! + exit-address-family + ! +exit +! diff --git a/overlays/frr/vpp/etc/vpp b/overlays/frr/vpp/etc/vpp new file mode 120000 index 0000000..e8b46b5 --- /dev/null +++ b/overlays/frr/vpp/etc/vpp @@ -0,0 +1 @@ +../../../bird/vpp/etc/vpp/ \ No newline at end of file diff --git a/overlays/frr/vpp/root/lab-build/disable-bird b/overlays/frr/vpp/root/lab-build/disable-bird new file mode 100755 index 0000000..29a9814 --- /dev/null +++ b/overlays/frr/vpp/root/lab-build/disable-bird @@ -0,0 +1,7 @@ +#!/bin/sh + +echo " * Disabling Bird" +for i in bird-dataplane; do + rm -f /etc/systemd/system/multi-user.target.wants/${i}.service + ln -sf /dev/null /etc/systemd/system/${i}.service +done