# 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.ipv4.conf.all.arp_announce=2 up sysctl -w net.ipv4.ip_forward=1 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 up sysctl -w net.ipv6.route.max_size=16384 up sysctl -w net.ipv6.conf.all.forwarding=1 up ip a r 185.131.40.1/32 dev $IFACE up ip -6 a r 2a03:a0a0:0000::1/128 dev $IFACE # Interco Fullsave LAN2LAN IPv4 auto eth0 iface eth0 inet static address 93.93.40.214 netmask 255.255.255.252 up ip r r unreachable 185.131.40.0/22 up ip r r default via 93.93.40.213 dev $IFACE src 185.131.40.1 up sysctl -w net.ipv6.conf.$IFACE.accept_dad=0 # Interco Fullsave LAN2LAN IPv6 iface eth0 inet6 static address 2a01:6600:20:3000::1/127 up ip -6 r r unreachable 2a03:a0a0:0000::/48 up ip -6 r r unreachable 2a03:a0a0:0001::/48 up ip -6 r r default via 2a01:6600:20:3000:: dev $IFACE src 2a03:a0a0::1 # Réseau des antennes CHD auto br1 iface br1 inet static bridge_ports eth1 bridge_stp off bridge_maxwait 0 bridge_fd 0 # gw IPv4 routeurs adhérents address 172.16.0.254 netmask 255.255.0.0 # Nécessaire tant qu'on a du NAT up modprobe nf_conntrack up sysctl -w net.netfilter.nf_conntrack_max=65536 up sysctl -w net.ipv6.conf.$IFACE.accept_dad=0 # gw IPv6 routeurs adhérents up ip -6 a r fe80::31/64 dev $IFACE # chd-stg2.chd.sx (2016-03-05 - now) up ip r r 185.131.40.2 dev $IFACE up ip -6 r r 2a03:a0a0::2 dev $IFACE # ns3.chd.sx (2016-03-05 - now) (on chd-stg2) up ip r r 185.131.40.3 dev $IFACE up ip -6 r r 2a03:a0a0::3 dev $IFACE # Routage adhérents # cf /etc/systemd/system/setup_routing.service # # Anciens routages (historique 1 an nécessaire) # srv1.stg.prosoluce.net (2015-12-31 - 2016-03-05) #up ip r r 185.131.40.2 dev $IFACE #up ip -6 r r 2a03:a0a0::2 dev $IFACE # nuc-stgo (old stg2) (2015-12-31 - 2016-09-19) #up ip r r 185.131.40.4 dev $IFACE # srv1.stg.prosoluce.net (2016-03-05 - now) #up ip r r 185.131.40.9 dev $IFACE #up ip -6 r r 2a03:a0a0::9 dev $IFACE # backup3.stg.prosoluce.net (2016-01-02 - now) #up ip r r 185.131.40.10 dev $IFACE auto br1:1 iface br1:1 inet static address 192.168.0.2 netmask 255.255.255.0 iface br1:1 inet static address 192.168.1.2 netmask 255.255.255.0