How to install OpenQRM 4.8 with LXC containers in Debian Squeeze/Ubuntu 10.04 LTS: Step by Step (Page 2)


B) CREATE A BRIDGE FOR LXC HOST

B1) First install bridge utilities.

Quote:

#aptitude install bridge-utils

B2) Make changes to the /etc/network/interfaces from:

Quote:

# 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 network interface
allow-hotplug eth0
iface eth0 inet dhcp

to (for static IP):

Quote:

# 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 network interface
#allow-hotplug eth0
#iface eth0 inet dhcp

#Bridge setup
auto br0
iface br0 inet static
bridge_ports eth0
bridge_fd 0
address 192.168.10.251
netmask 255.255.255.0
gateway 192.168.10.254
dns-nameservers 192.168.10.254


Change the address, netmask, gateway (find from 'route' command) and dns-nameservers as appropriate.

Then restart the network:

Quote:

#/etc/init.d/networking restart


PreviousNext