Skip to content

Instantly share code, notes, and snippets.

@migurski
Created July 1, 2013 22:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save migurski/5905173 to your computer and use it in GitHub Desktop.
Save migurski/5905173 to your computer and use it in GitHub Desktop.
/etc/network/interfaces for guest and host Linux servers, based on LXC guide at http://teczno.com/s/bhh.
# 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 dhcp
dns-nameservers 8.8.8.8
auto eth1
iface eth1 inet dhcp
# 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
##
## The primary and secondary network interfaces are hidden for br0 and br1.
##
#auto eth0
#iface eth0 inet dhcp
#
#auto eth1
#iface eth1 inet static
# network 10.1.0.0
# address 10.1.0.2
# netmask 255.255.255.0
# Added bridge to eth0 per http://wiki.debian.org/LXC/SimpleBridge
auto br0
iface br0 inet dhcp
dns-nameservers 8.8.8.8
bridge_ports eth0
bridge_fd 0
bridge_maxwait 0
# Added bridge to eth1 per http://wiki.debian.org/LXC/SimpleBridge
auto br1
iface br1 inet static
network 10.1.0.0
address 10.1.0.2
netmask 255.255.255.0
bridge_ports eth1
bridge_fd 0
bridge_maxwait 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment