Skip to content

Instantly share code, notes, and snippets.

@nelsnelson
Created September 2, 2014 18:30
Show Gist options
  • Save nelsnelson/7660ea66b87957406125 to your computer and use it in GitHub Desktop.
Save nelsnelson/7660ea66b87957406125 to your computer and use it in GitHub Desktop.
root@nelsnelson-haproxy-test-1409633215:~# cat /etc/network/interfaces
# Injected by Nova on instance boot
#
# 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
auto eth0
iface eth0 inet static
address 104.130.0.37
netmask 255.255.255.0
broadcast 104.130.0.255
gateway 104.130.0.1
dns-nameservers 69.20.0.196 69.20.0.164
iface eth0 inet6 static
address 2001:4802:7800:103:be76:4eff:fe20:4a94
netmask 64
gateway fe80::def
auto eth1
iface eth1 inet static
address 10.176.224.16
netmask 255.255.224.0
broadcast 10.176.255.255
post-up ip route add 10.208.0.0/12 via 10.176.224.1 dev ${IFACE}
pre-down ip route del 10.208.0.0/12 via 10.176.224.1 dev ${IFACE}
post-up ip route add 10.176.0.0/12 via 10.176.224.1 dev ${IFACE}
pre-down ip route del 10.176.0.0/12 via 10.176.224.1 dev ${IFACE}
iface eth1 inet6 static
address None
netmask None
root@nelsnelson-haproxy-test-1409633215:~#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment