Debian Squeeze Xen bridge configuration using /etc/network/interfaces
Posted May 20 2011, 11:31 by William Shallum [updated May 20 2011, 11:54]
In /usr/share/doc/xen-utils-4.0/README.Debian:
Network setup
-------------
The Debian package of Xen don't change the network setup in any way. This
differs from the upstream version, which overwrites the main network card
(eth0) with a bridge setup and may break the network at this point..
To setup a bridge please follow the instructions in the manpage for
bridge-utils-interfaces(5).
You can also change the /etc/xen/xend-config.sxp file and re-enable the Xen
included network setup by adding
(network-script network-bridge)
to the file. But please note that this may or may not work.
So, to /etc/networks/interfaces then:
auto br0
iface br0 inet static
address 10.9.8.1
netmask 255.255.255.0
network 10.9.8.0
broadcast 10.9.8.255
bridge_maxwait 5
bridge_ports regex vif.*
# if bridging eth0 as well:
# bridge_ports regex vif.* noregex eth0
# all eth and vif?
# bridge_ports regex (eth|vif).*
# if you want no IP address on the bridge,
# delete address, netmask, network, and broadcast line
# and change "iface br0 inet static" to "iface br0 inet manual"
In /etc/xen/xend-config.sxp, leave all (network-script …) lines commented, and just uncomment the (vif-script vif-bridge) line.