diff --git a/eric-configs/bird.conf b/eric-configs/bird.conf new file mode 100644 index 0000000..588af54 --- /dev/null +++ b/eric-configs/bird.conf @@ -0,0 +1,82 @@ +# This is a minimal configuration file, which allows the bird daemon to start +# but will not cause anything else to happen. +# +# Please refer to the documentation in the bird-doc package or BIRD User's +# Guide on http://bird.network.cz/ for more information on configuring BIRD and +# adding routing protocols. + +# Change this into your BIRD router ID. It's a world-wide unique identification +# of your router, usually one of router's IPv4 addresses. +router id 172.31.44.200; + +# The Kernel protocol is not a real routing protocol. Instead of communicating +# with other routers in the network, it performs synchronization of BIRD's +# routing tables with the OS kernel. +protocol kernel { + scan time 20; + learn; + persist; + import all; + export filter { + krt_prefsrc = 185.117.82.237; + accept; + }; + +} + +protocol direct { + interface "*"; # Restrict network interfaces it works with +} + + +protocol static originate_myself { + preference 1000; + route 185.117.82.237/32 via "lo"; +} + + +# The Device protocol is not a real routing protocol. It doesn't generate any +# routes and it only serves as a module for getting information about network +# interfaces from the kernel. +protocol device { + scan time 60; +} + +filter mine { + if (net = 185.117.82.237/32) then accept; + reject; +} + +filter lab { + if (net ~ 185.117.82.0/24) then accept; + reject; +} + +template bgp t_any { + local as 65500; + next hop self; + export filter mine; + import all; +} + +protocol bgp marla_pri from t_any { + neighbor 172.31.44.1 as 200533; +} + +protocol bgp hawk_pri from t_any { + neighbor 172.31.44.2 as 200533; +} + +protocol bgp marla_tp from t_any { + neighbor 172.31.42.1 as 200533; +} + +protocol bgp hawk_tp from t_any { + neighbor 172.31.42.2 as 200533; +} + + +protocol bgp spitfire_pri from t_any { + neighbor 172.31.44.100 as 65535; + import filter lab; +} diff --git a/eric-configs/bird6.conf b/eric-configs/bird6.conf new file mode 100644 index 0000000..a24b039 --- /dev/null +++ b/eric-configs/bird6.conf @@ -0,0 +1,64 @@ +# This is a minimal configuration file, which allows the bird daemon to start +# but will not cause anything else to happen. +# +# Please refer to the documentation in the bird-doc package or BIRD User's +# Guide on http://bird.network.cz/ for more information on configuring BIRD and +# adding routing protocols. + +# Change this into your BIRD router ID. It's a world-wide unique identification +# of your router, usually one of router's IPv6 addresses. +router id 172.31.44.166; + +# The Kernel protocol is not a real routing protocol. Instead of communicating +# with other routers in the network, it performs synchronization of BIRD's +# routing tables with the OS kernel. +protocol kernel { + scan time 20; + learn; + persist; + import all; + export filter { + krt_prefsrc = 2001:67c:21bc:30::1; + accept; + }; + +} + +protocol direct { + interface "*"; # Restrict network interfaces it works with +} + +protocol device { + scan time 60; +} + +filter mine { + if (net = 2001:67c:21bc:30::/60) then accept; + reject; + +} + + +template bgp t_any { + local as 65500; + next hop self; + export filter mine; + import all; +} + +protocol bgp marla_pri from t_any { + neighbor 2001:67c:21bc:7fff:f0f:fcf1:0:1 as 200533; +} + +protocol bgp hawk_pri from t_any { + neighbor 2001:67c:21bc:7fff:f0f:fcf1:0:2 as 200533; +} + +protocol bgp marla_tp from t_any { + neighbor 2001:67c:21bc:7fff:f0f:fcf0:0:1 as 200533; +} + +protocol bgp hawk_tp from t_any { + neighbor 2001:67c:21bc:7fff:f0f:fcf0:0:2 as 200533; +} + diff --git a/eric-configs/interfaces b/eric-configs/interfaces new file mode 100644 index 0000000..9b3b3ea --- /dev/null +++ b/eric-configs/interfaces @@ -0,0 +1,125 @@ +# This file describes the network interfaces available on your system +# and how to activate them. For more information, see interfaces(5). + +source /etc/network/interfaces.d/* + +# The loopback network interface +auto lo +iface lo inet loopback + up ip r add blackhole 2001:67c:21bc:30::/60 + +# The primary network interface +auto eth0 +iface eth0 inet static + address 10.23.0.1 + netmask 255.255.255.0 + +#real config +#real config +auto eth1.999 +iface eth1.999 inet static + address 172.31.42.100 + netmask 255.255.255.0 +iface eth1.999 inet6 static + address 2001:67c:21bc:7fff:f0f:fcf0::100 + netmask 120 + dad-attempts 0 + +auto eth1 +iface eth1 inet static + address 192.168.192.168 + netmask 255.255.255.255 + +# management +auto eth1.20 +iface eth1.20 inet static + address 10.20.0.1 + netmask 255.255.255.0 + up ip a add 185.117.82.237/32 dev eth1.20 + +# wired +auto eth1.21 +iface eth1.21 inet static + address 10.21.0.1 + netmask 255.255.252.0 + +iface eth1.21 inet6 static + address 2001:67c:21bc:30::1 + netmask 64 + dad-attempts 0 + +# wireless +auto eth1.22 +iface eth1.22 inet static + address 10.22.0.1 + netmask 255.255.252.0 + +iface eth1.22 inet6 static + address 2001:67c:21bc:31::1 + netmask 64 + dad-attempts 0 + +# video +#auto eth1.23 +#iface eth1.23 inet static +# address 10.23.0.1 +# netmask 255.255.255.0 + +# overflow (TV) +auto eth1.24 +iface eth1.24 inet static + address 10.24.0.1 + netmask 255.255.255.0 + +# phones +auto eth1.25 +iface eth1.25 inet static + address 10.25.0.1 + netmask 255.255.255.0 + +# security +auto eth1.26 +iface eth1.26 inet static + address 10.2.2.1 + netmask 255.255.255.0 + + +## tmp vlan +#auto eth1.2 +#iface eth1.2 inet static +# address 172.31.190.76 +# netmask 255.255.255.0 + +auto eth1.6 +iface eth1.6 inet static + address 94.26.100.155 + netmask 255.255.255.224 +# gateway 94.26.100.129 + up ip r add 94.26.100.128/27 dev eth1.6 table tbc + up ip r add default via 94.26.100.129 table tbc + +# tmp initlab bgp link +auto eth1.1024 +iface eth1.1024 inet static + address 185.117.82.24 + netmask 255.255.255.240 + gateway 185.117.82.20 + +# techpark +auto eth1.2464 +iface eth1.2464 inet static + address 194.141.112.139 + netmask 255.255.255.192 + post-up ip r add 194.141.112.128/26 dev eth1.2464 table tpark + post-up ip r add default via 194.141.112.129 table tpark + + +# tmp initlab-to-marla link +auto eth1.4001 +iface eth1.4001 inet static + address 172.31.44.166 + netmask 255.255.255.0 + +iface eth1.4001 inet6 static + address 2001:67c:21bc:7fff:f0f:fcf1:0:7 + netmask 112