Now & XEN: How to run XEN with two bridges

by admin on Fri, 05/25/2007 - 12:32

Recently we had to figure out how to run XEN with bridged networking for our Now & XEN project. This is how to do it:

Edit /etc/xen/xend-config.sxp:

(network-script network-bridge) > (network-script network-bridge-both)

Put the attached network-bridge-both file into /etc/xen/scripts/ and change its permissions:
chmod a+rx /etc/xen/scripts/network-bridge-both

Edit the config file of each domU that needs access to the internal network and replace the vif line with this:
vif=[ 'bridge=xenbr0', 'bridge=xenbr1' ]

That's it!

Tags: bridgedomunetworknetworkingvirtualizationxen

admin's blog  
    Delicious  Digg  Reddit  Technorati  

Comments

Good work

I would like to do a similar setup so I think your article can be very useful.

How can I donwnload the /etc/xen/scripts/network-bridge-both script?

Thanks,
Javier

Here are the contents of

Here are the contents of /etc/xen/scripts/network-bridge-both:

#! /bin/sh

#exec 2>/tmp/network-bridge-both.out
#set -x

dir=$(dirname "$0")
"$dir/network-bridge" "$@" vifnum=0 netdev=eth0 bridge=xenbr0
"$dir/network-bridge" "$@" vifnum=1 netdev=eth1 bridge=xenbr1

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options