NAT on ens1 (Zayo), not ens18 (routage)

Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
This commit is contained in:
ynerant 2021-07-04 16:35:54 +02:00
parent fe454a8422
commit 9002b5f089
Signed by untrusted user: ynerant
GPG key ID: 3A75C55819C8CF85
2 changed files with 1 additions and 15 deletions

View file

@ -47,7 +47,7 @@ nat = [
{
'name' : 'AdminVlans',
'extra_nat' : {
'ens18': {
'ens1': {
'10.129.0.254/32' : '45.66.111.{{ router_hard_ip_suffix }}',
'10.128.0.0/16' : '45.66.111.{{ router_hard_ip_suffix }}',
'10.130.0.0/16' : '45.66.111.{{ router_hard_ip_suffix }}',

View file

@ -15,20 +15,6 @@ iface ens18 inet static
iface ens18 inet6 static
address 2a09:6840:129::0:{{ router_hard_ip_suffix }}/64
# Now managed by keepalived.
#
# post-up ip route add 2a09:6840:10::/64 via 2a09:6840:129::1:254 dev ens18
# post-up ip route add 2a09:6840:11::/64 via 2a09:6840:129::1:254 dev ens18
# post-up ip route add 2a09:6840:20::/64 via 2a09:6840:129::2:254 dev ens18
# post-up ip route add 2a09:6840:21::/64 via 2a09:6840:129::2:254 dev ens18
# post-up ip route add 2a09:6840:40::/64 via 2a09:6840:129::4:254 dev ens18
# post-up ip route add 2a09:6840:41::/64 via 2a09:6840:129::4:254 dev ens18
# post-up ip route add 2a09:6840:50::/64 via 2a09:6840:129::5:254 dev ens18
# post-up ip route add 2a09:6840:51::/64 via 2a09:6840:129::5:254 dev ens18
# The primary network interface
allow-hotplug ens19