Created
July 1, 2013 22:25
-
-
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 contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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