2020-08-08 17:10:01 +02:00
|
|
|
# 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
|
|
|
|
|
|
|
|
# VLAN 129: routage
|
|
|
|
auto ens18
|
|
|
|
iface ens18 inet static
|
|
|
|
address 10.129.0.{{ router_hard_ip_suffix }}/16
|
2021-07-19 21:07:42 +02:00
|
|
|
ip-forward 1 # FIXME adm should not be routed in the future
|
2020-08-08 17:10:01 +02:00
|
|
|
|
|
|
|
iface ens18 inet6 static
|
|
|
|
address 2a09:6840:129::0:{{ router_hard_ip_suffix }}/64
|
2021-07-19 21:07:42 +02:00
|
|
|
ip-forward 1
|
2020-08-08 17:10:01 +02:00
|
|
|
|
|
|
|
|
|
|
|
# The primary network interface
|
|
|
|
allow-hotplug ens19
|
|
|
|
iface ens19 inet static
|
|
|
|
address 10.128.0.{{ router_hard_ip_suffix }}/16
|
|
|
|
dns-search adm.auro.re
|
2021-07-19 21:07:42 +02:00
|
|
|
ip-forward 1
|
2020-08-08 17:10:01 +02:00
|
|
|
|
|
|
|
iface ens19 inet6 static
|
|
|
|
address 2a09:6840:128::0:{{ router_hard_ip_suffix }}/64
|
2021-07-19 21:07:42 +02:00
|
|
|
ip-forward 1
|
2020-08-08 17:10:01 +02:00
|
|
|
|
|
|
|
# VlAN 130: switches
|
|
|
|
auto ens20
|
|
|
|
iface ens20 inet static
|
|
|
|
address 10.130.0.{{ router_hard_ip_suffix }}/16
|
|
|
|
|
|
|
|
iface ens20 inet6 static
|
|
|
|
address 2a09:6840:130::0:{{ router_hard_ip_suffix }}/64
|
|
|
|
|
|
|
|
# VLAN 111: IPs publiques serveurs
|
|
|
|
auto ens21
|
|
|
|
iface ens21 inet static
|
|
|
|
address 45.66.111.{{ router_hard_ip_suffix }}/24
|
2021-07-19 21:07:42 +02:00
|
|
|
ip-forward 1
|
2020-08-08 17:10:01 +02:00
|
|
|
|
|
|
|
# Nécessaire pour contacter re2o et bootstrap le firewall.
|
|
|
|
# Ces directives sont _aussi_ set par aurore-firewall !
|
|
|
|
up iptables -t nat -A POSTROUTING -s 10.129.0.{{ router_hard_ip_suffix }}/32 -j SNAT --to-source 45.66.111.{{ router_hard_ip_suffix }}
|
|
|
|
up iptables -t nat -A POSTROUTING -s 10.128.0.0/16 -j SNAT --to-source 45.66.111.{{ router_hard_ip_suffix }}
|
|
|
|
up iptables -t nat -A POSTROUTING -s 10.130.0.0/16 -j SNAT --to-source 45.66.111.{{ router_hard_ip_suffix }}
|
|
|
|
|
|
|
|
iface ens21 inet6 static
|
|
|
|
address 2a09:6840:111::{{ router_hard_ip_suffix }}/48
|
2021-07-19 21:07:42 +02:00
|
|
|
ip-forward 1
|
2020-08-08 17:10:01 +02:00
|
|
|
|
|
|
|
# VLAN 110: IP publiques adhérents
|
|
|
|
auto ens22
|
|
|
|
iface ens22 inet static
|
|
|
|
address 45.66.110.{{ router_hard_ip_suffix }}/24
|
2021-07-19 21:07:42 +02:00
|
|
|
ip-forward 1
|
2020-08-08 17:10:01 +02:00
|
|
|
|
|
|
|
iface ens22 inet6 static
|
|
|
|
address 2a09:6840:110::{{ router_hard_ip_suffix }}/48
|
2021-07-19 21:07:42 +02:00
|
|
|
ip-forward 1
|
2020-08-08 17:10:01 +02:00
|
|
|
|
|
|
|
# VLAN 131: onduleurs et PDU
|
|
|
|
auto ens23
|
|
|
|
iface ens23 inet static
|
|
|
|
address 10.131.0.{{ router_hard_ip_suffix }}/16
|
|
|
|
|
|
|
|
iface ens23 inet6 static
|
|
|
|
address 2a09:6840:131::0:{{ router_hard_ip_suffix }}/64
|
|
|
|
|
2021-07-04 12:28:41 +02:00
|
|
|
# VLAN 120: Interco Zayo
|
2020-08-08 17:10:01 +02:00
|
|
|
auto ens1
|
2021-07-19 21:07:42 +02:00
|
|
|
iface ens1 inet static
|
|
|
|
ip-forward 1
|
|
|
|
|
|
|
|
iface ens1 inet6 static
|
|
|
|
ip-forward 1
|
2021-07-04 12:28:41 +02:00
|
|
|
|
|
|
|
# VLAN 121: Interco Crans
|
|
|
|
auto ens2
|
2021-07-19 21:07:42 +02:00
|
|
|
iface ens2 inet static
|
|
|
|
ip-forward 1
|
|
|
|
|
|
|
|
iface ens2 inet6 static
|
2021-07-19 21:21:09 +02:00
|
|
|
address 2a09:6840:128::0:{{ router_hard_ip_suffix }}/64
|
2021-07-19 21:07:42 +02:00
|
|
|
ip-forward 1
|