From a8ec5b477c58dfc444cbd2c3b0602e7fc3ab0fc7 Mon Sep 17 00:00:00 2001 From: Ansible Admin Date: Sat, 2 Jul 2016 23:11:08 +0200 Subject: [PATCH] IPv6 address changing --- files/bird6-troisdorf5.conf | 2 +- files/interfaces-troisdorf5 | 2 +- files/interfaces-troisdorf7 | 2 +- files/l2tp_backbone.sh.exit.j2 | 7 +++++-- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/files/bird6-troisdorf5.conf b/files/bird6-troisdorf5.conf index 37d46b5..d2cc760 100644 --- a/files/bird6-troisdorf5.conf +++ b/files/bird6-troisdorf5.conf @@ -44,7 +44,7 @@ return net ~ [ fc00::/7{48,64}, } filter hostroute { - if net ~ 2a03:2260:121::/48 then accept; + if net ~ 2a03:2260:121:5000::/52 then accept; reject; } diff --git a/files/interfaces-troisdorf5 b/files/interfaces-troisdorf5 index 7f1c8eb..fea611f 100644 --- a/files/interfaces-troisdorf5 +++ b/files/interfaces-troisdorf5 @@ -9,7 +9,7 @@ iface lo inet loopback up ip address add 185.66.193.105/32 dev lo iface lo inet6 loopback - up ip address add 2a03:2260:121::105/48 dev lo + up ip address add 203:2260:121:5000::105/52 dev lo # The primary network interface diff --git a/files/interfaces-troisdorf7 b/files/interfaces-troisdorf7 index eb8e58b..f15278e 100644 --- a/files/interfaces-troisdorf7 +++ b/files/interfaces-troisdorf7 @@ -15,7 +15,7 @@ iface lo inet6 loopback # The primary network interface allow-hotplug eth0 iface eth0 inet static - address 163.172.194.197 + address 212.83.154.70 netmask 255.255.255.255 gateway 163.172.210.1 pointopoint 163.172.210.1 diff --git a/files/l2tp_backbone.sh.exit.j2 b/files/l2tp_backbone.sh.exit.j2 index f56d720..de6813f 100644 --- a/files/l2tp_backbone.sh.exit.j2 +++ b/files/l2tp_backbone.sh.exit.j2 @@ -51,8 +51,11 @@ $ip addr add {{ sn_mesh_IPv4 }}/19 broadcast {{ sn_mesh_IPv4_brcast }} dev bat0 $ip -6 addr add {{ sn_mesh_IPv6 }}/64 dev bat0 $ip route add 10.188.0.0/16 via {{ sn_mesh_IPv4_xfer }} table 42 $ip route add 10.188.0.0/16 via {{ sn_mesh_IPv4_xfer }} -$ip -6 route add 2a03:2260:121::/56 via {{ sn_mesh_IPv6_xfer }} table 42 -$ip -6 route add 2a03:2260:121::/56 via {{ sn_mesh_IPv6_xfer }} + +$ip -6 route add 2a03:2260:121:4000::/52 via {{ sn_mesh_IPv6_xfer }} table 42 +$ip -6 route add 2a03:2260:121:5000::/52 via {{ sn_mesh_IPv6_xfer }} table 42 +$ip -6 route add 2a03:2260:121:6000::/52 via {{ sn_mesh_IPv6_xfer }} table 42 +$ip -6 route add 2a03:2260:121:7000::/52 via {{ sn_mesh_IPv6_xfer }} table 42 /usr/bin/killall batadv-vis /bin/sleep 15