# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
dns-nameservers 10.14.0.1 192.168.1.1
dns-search maas
# The primary network interface (maas-external network)
auto eth0
iface eth0 inet static
address 192.168.1.104/24
gateway 192.168.1.1
# The internal network interface (maas-management network)
auto eth1
iface eth1 inet static
address 10.14.0.1/20
post-up iptables -t nat -A POSTROUTING -s 10.14.0.0/20 -o eth0 -j SNAT --to-source 192.168.1.104
post-down iptables -t nat -D POSTROUTING -s 10.14.0.0/20 -o eth0 -j SNAT --to-source 192.168.1.104
# The internal network interface (maas-management network)
auto eth1.50
iface eth1.50 inet static
address 10.50.0.1/20
vlan-raw-device eth1
# guest-internal VLAN
auto eth1.100
iface eth1.100 inet static
address 10.100.0.1/20
vlan-raw-device eth1
# guest-admin VLAN
auto eth1.150
iface eth1.150 inet static
address 10.150.0.1/20
vlan-raw-device eth1
# guest-compute-data VLAN
auto eth1.200
iface eth1.200 inet static
address 10.200.0.1/20
vlan-raw-device eth1
# guest-storage-data VLAN
auto eth1.250
iface eth1.250 inet static
address 10.250.0.1/20
vlan-raw-device eth1
# guest-storage-cluster VLAN
auto eth1.30
iface eth1.30 inet static
address 10.30.0.1/20
vlan-raw-device eth1
# guest-compute-external VLAN (unmanaged)
auto eth1.99
iface eth1.99 inet static
address 10.99.0.1/20
vlan-raw-device eth1