X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=modules%2Fganeti2%2Ftemplates%2Finstance-debootstrap%2Fhooks%2F00-dsa-configure-networking.erb;h=ed7bf9eb45faac98835bf18afe190c24bde77f79;hb=d59e16df347e44b906b6a11b9c6ceee9026d425d;hp=6878e13182d1bfb01249cf4d54fd04af11152d5c;hpb=6cb11d0d8bad363b09da42aa04c215ec808e6f13;p=dsa-puppet.git diff --git a/modules/ganeti2/templates/instance-debootstrap/hooks/00-dsa-configure-networking.erb b/modules/ganeti2/templates/instance-debootstrap/hooks/00-dsa-configure-networking.erb index 6878e131..ed7bf9eb 100755 --- a/modules/ganeti2/templates/instance-debootstrap/hooks/00-dsa-configure-networking.erb +++ b/modules/ganeti2/templates/instance-debootstrap/hooks/00-dsa-configure-networking.erb @@ -33,6 +33,12 @@ iface eth0 inet static netmask 255.255.255.0 gateway 206.12.19.254 + pre-up /sbin/sysctl -w net.ipv6.conf.\$IFACE.accept_ra=0 || true + up ip addr add 2607:f8f0:610:4000:6564:0a62:\$IF_ADDRESS/64 dev \$IFACE + up ip r add default via 2607:f8f0:610:4000::1 src 2607:f8f0:610:4000:6564:0a62:\$IF_ADDRESS dev \$IFACE + down ip r del default via 2607:f8f0:610:4000::1 src 2607:f8f0:610:4000:6564:0a62:\$IF_ADDRESS dev \$IFACE + down ip addr del 2607:f8f0:610:4000:6564:0a62:\$IF_ADDRESS/64 dev \$IFACE + EOF fi