WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] 1 host, 1 nick, 1 regular bridge, 1 local bridge, 5 vm

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] 1 host, 1 nick, 1 regular bridge, 1 local bridge, 5 vm
From: Simon Hobson <linux@xxxxxxxxxxxxxxxx>
Date: Mon, 21 Mar 2011 21:35:45 +0000
Delivery-date: Mon, 21 Mar 2011 14:36:49 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AANLkTi=Z2qS9KKKoOGzb_ELjmeW9j-M8iTL4W-45oxjz@xxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <AANLkTi=Z2qS9KKKoOGzb_ELjmeW9j-M8iTL4W-45oxjz@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
John Rounds wrote:
So Working on CEntOS 5 I am trying to sett up Xen with 2 bridges, one that connects dom0 and most of the domU to the physical card and the out to the network. Got that figured out no problem, now i want to have a second bridge that runs a local network for all the doms that doesn't connect to the network.

With code I have found used in multiple places I can easily get 2 bridges, and have all the Domu connected to it but i can't get Dom 0 to have an interface.

Script to set up bridges called fine from xend-config.sxp

]# cat multiple-bridge
#!/bin/sh
dir=$(dirname "$0")
"$dir/network-bridge" "$@" vifnum=0 netdev=eth0 bridge=xenbr0
"$dir/network-bridge" "$@" vifnum=2 netdev=dummy bridge=xenbrloc1

I'd suggest you setup the local bridge manually - not in Xen.

Is this Debian ? If so then you can put something like this in /etc/network/interfaces - check the syntax, I'm typing this from memory :

auto xenbrloc1
xenbrloc1 inet static
  ip address a.b.c.d
  netmask w.x.y.z
  pre-up brctl addbr xenbrloc1
  post-down brctl delbr xenbrloc1

I think this should work for you. What happens is that when the I/F is brought up, the bridge is created first (pre-up), and then the IP addr is added to it. The bridge is automatically deleted if the I/F is taken down.

For other distros you'll need to adapt as required.

--
Simon Hobson

Visit http://www.magpiesnestpublishing.co.uk/ for books by acclaimed
author Gladys Hobson. Novels - poetry - short stories - ideal as
Christmas stocking fillers. Some available as e-books.

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users