oot@vmaas-20:~# cat /etc/network/interfaces
# The loopback network interface
auto lo
iface lo inet loopback
# External interface (unmanaged; NAT-ed) - for external access
auto eth0
iface eth0 inet static
address 10.10.20.2/24
gateway 10.10.20.1
#iface eth0 inet6 manual
# up ip -6 address add fc00:1020::2/64 dev eth0 || true
# up ip -6 route replace default via fc00:1020::1 || true
# down ip -6 route del default via fc00:1020::1 || true
# down ip -6 address del fc00:1020::2 dev eth0 || true
# Internal interface (managed/PXE; isolated network) - used for nodes
auto eth1
iface eth1 inet static
address 10.20.20.2/24
pre-up iptables -t nat -A POSTROUTING -s 10.20.20.0/24 -o eth0 -j SNAT --to-source 10.10.20.2
post-down iptables -t nat -D POSTROUTING -s 10.20.20.0/24 -o eth0 -j SNAT --to-source 10.10.20.2
#iface eth1 inet6 manual
# up ip -6 address add fc00:2020::2/64 dev eth1 || true
# down ip -6 address del fc00:2020::2 dev eth1 || true
# public-api VLAN 50
auto eth1.50
iface eth1.50 inet static
address 10.50.20.2/24
vlan-raw-device eth1
# internal-api VLAN 100
auto eth1.100
iface eth1.100 inet static
address 10.100.20.2/24
vlan-raw-device eth1
# admin-api VLAN 150
auto eth1.150
iface eth1.150 inet static
address 10.150.20.2/24
vlan-raw-device eth1
# storage-data VLAN 200
auto eth1.200
iface eth1.200 inet static
address 10.200.20.2/24
vlan-raw-device eth1
# compute-data VLAN 250
auto eth1.250
iface eth1.250 inet static
address 10.250.20.2/24
vlan-raw-device eth1
# compute-external VLAN 99
auto eth1.99
iface eth1.99 inet static
address 10.99.20.2/24
vlan-raw-device eth1
# storage-cluster VLAN 30
auto eth1.30
iface eth1.30 inet static
address 10.30.20.2/24
vlan-raw-device eth1
# demo-internal VLAN 11
auto eth1.11
iface eth1.11 inet static
address 10.11.20.2/24
vlan-raw-device eth1
# demo-admin VLAN 12
auto eth1.12
iface eth1.12 inet static
address 10.12.20.2/24
vlan-raw-device eth1
# demo-public VLAN 13
auto eth1.13
iface eth1.13 inet static
address 10.13.20.2/24
vlan-raw-device eth1