# 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 # https://www.kernel.org/doc/Documentation/networking/ip-sysctl.txt up sysctl -w net.ipv6.conf.all.accept_ra_pinfo=0 up sysctl -w net.ipv6.conf.all.accept_redirects=0 up sysctl -w net.ipv6.conf.all.router_solicitations=0 up sysctl -w net.ipv6.conf.all.accept_dad=0 # The primary network interface auto eth0 # Public adresses iface eth0 inet static address 185.131.40.2 netmask 255.255.255.0 gateway 185.131.40.1 # accept_dad=0 après que l'interface soit conifugrée en v4 mais avant # qu'elle soit configurée en v6 (ça marche pas si on met ça en pre-up # dans la section inet6) up sysctl -w net.ipv6.conf.$IFACE.accept_dad=0 # Allumer le firewall avant d econfigurer les IP publiques up iptables-restore < /etc/network/iptables.conf up ip6tables-restore < /etc/network/ip6tables.conf iface eth0 inet6 static address 2a03:a0a0::2 netmask 64 up ip -6 r r default via fe80::31 dev $IFACE src 2a03:a0a0::2 # Admin network overlay iface eth0 inet static address 172.16.0.253 netmask 255.255.0.0 # ns3 all-knowing-dns - reverse DNS IPv6 iface eth0 inet static address 185.131.40.3 netmask 255.255.255.0 iface eth0 inet6 static address 2a03:a0a0::3 netmask 64