# 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 # The primary network interface auto enp3s0f0 iface enp3s0f0 inet static address 97.105.187.242 netmask 255.255.255.248 gateway 97.105.187.241 dns-nameserver 209.18.47.61 209.18.47.62 dns-search maas intellic.services # This is an autoconfigured IPv6 interface iface enp3s0f0 inet6 auto auto enp3s0f0:1 iface enp3s0f0:1 inet static address 192.168.0.222 netmask 255.255.255.0 gateway 192.168.0.1 # The internal network interface auto enp3s0f1 iface enp3s0f1 inet static address 10.222.222.10 netmask 255.255.240.0 post-up iptables -t nat -A POSTROUTING -o enp3s0f0 -j SNAT --to-source 192.168.0.222 post-down iptables -t nat -D POSTROUTING -o enp3s0f0 -j SNAT --to-source 192.168.0.222 # EC2 redirect auto enp3s0f1:1 iface enp3s0f1:1 inet static address 169.254.169.254 netmask 255.255.255.0 dns-nameservers 169.254.169.254 dns-search maas post-up iptables -t nat -A POSTROUTING -o enp3s0f0 -j SNAT --to-source 192.168.0.222 post-down iptables -t nat -D POSTROUTING -o enp3s0f0 -j SNAT --to-source 192.168.0.222 # guest-public VLAN #auto enp3s0f1.20 iface enp3s0f1.20 inet static address 10.20.0.1 netmask 255.255.240.0 vlan-raw-device enp3s0f1 # guest-internal VLAN #auto enp3s0f1.120 iface enp3s0f1.120 inet static address 10.120.0.1 netmask 255.255.240.0 vlan-raw-device enp3s0f1 # guest-admin VLAN #auto enp3s0f1.220 iface enp3s0f1.220 inet static address 10.220.0.1 netmask 255.255.240.0 vlan-raw-device enp3s0f1 # guest-compute-data VLAN #auto enp3s0f1.230 iface enp3s0f1.230 inet static address 10.230.0.1 netmask 255.255.240.0 vlan-raw-device enp3s0f1 # guest-storage-data VLAN #auto enp3s0f1.240 iface enp3s0f1.240 inet static address 10.240.0.1 netmask 255.255.240.0 vlan-raw-device enp3s0f1 # guest-storage-cluster VLAN #auto enp3s0f1.250 iface enp3s0f1.250 inet static address 10.250.0.1 netmask 255.255.240.0 vlan-raw-device enp3s0f1 # guest-compute-external VLAN (unmanaged) #auto enp3s0f1.99 iface enp3s0f1.99 inet static address 10.99.0.1 netmask 255.255.240.0 vlan-raw-device enp3s0f1