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] XEN - Routed and Bridget Mode together (mixed)

To: "Maik Brauer" <mailinglist@xxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] XEN - Routed and Bridget Mode together (mixed)
From: "Ray Barnes" <tical.net@xxxxxxxxx>
Date: Fri, 4 Jul 2008 03:01:19 -0400
Cc: Xen users mailing list <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 04 Jul 2008 00:01:55 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=cbAVOlD370BRVJPWbWn7OlavRLtymSxYjz92mVT1Aao=; b=plCkZ4WF325wWc9f25IWz8ArxLz2T6dkUMxq0QtRIS98Z3rSV13owe8lAZD2TuSuxC a+EPVl+gfnonnwIDgWfW+6JVhrPW7FLkF4R4eX2K3OFJB6LIGH1X49fXTEt52qRa2DPN Nlzdf14HuGb1uLRGDDYGwYZTWnJhUiYhAW8xs=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=MyakSYbgEOo9fplCrJcCgUkcgt6jQhPddoJHm18RzAlO774G9lY25ixUbKCpftmHJu T8+mdjmZUaw1ppvsSstvhtzAQ+O6ti+ZyH63hOfoKmKbNq85ES6UhEFDarQw3fy21RiN 2jqj8MqJH3Zwri+50zjK3M7bUYb6QBohCRsHw=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <297E2249-A9EF-4B3E-B800-C6E6E86611AD@xxxxxxxxxxxxxxx>
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: <76AA7657-DD99-476F-8C8B-C94998008B88@xxxxxxxxxxxxxxx> <afa5bb590807011722n6d117cf3k629e6dd3a784bb0@xxxxxxxxxxxxxx> <297E2249-A9EF-4B3E-B800-C6E6E86611AD@xxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
It sounds like since your system-wide default is routed, you're using the opposite of what I do (which is - default system-wide bridged networking, but individual vif scripts for each domU).  Perhaps add "script=vif-bridge" to your vif configuration for everything using bridged networking.

-Ray



On Wed, Jul 2, 2008 at 4:32 PM, Maik Brauer <mailinglist@xxxxxxxxxxxxxxx> wrote:
Hi Ray,

thanks for this hint.
What I tried so far to make it happen step by step was, that I've included the following line in the DomU script:
vif = [ 'mac=00:16:3e:00:00:01, bridge=mybridge1' ]

Before this I've created a bridge with brctl addbr mybridge1.

I can see the vif device with an ifconfig -a in the Dom0, but if I'm looking with brctl show, there is no vif connected to my bridge.

For your info, the whole XEN setup is configured to use the "routed mode",  because this is necessary due to my providers setup for sub-netting.
What needs to be done else ?

Cheers,
Maik



On Jul 2, 2008, at 2:22 AM, Ray Barnes wrote:

Config is easy; it sounds like you want simultaneous routed and bridged in the same domU.  If that's the case:

vif = [ 'mac=00:16:3e:00:00:01, bridge=somebridge' ]
vif = [ 'mac=00:16:3e:00:00:02, vifname=somevif, script=vif-somevif' ]

The bridged part is easy, just make sure you bring up the bridge first with "brctl addbr somebridge" or via normal OS scripts.  The vif-somevif file will reside in /etc/xen/scripts by default and can be the same for all VMs or customized for each domU.  I like to customize per-domU because it's easy to move prefixes around that way.  HTH.

-Ray



On Tue, Jul 1, 2008 at 3:21 PM, Maik Brauer <mailinglist@xxxxxxxxxxxxxxx> wrote:
Hi,

is there any possibility to get a XEN DomO and DomU running with bridget and routed mode together.
The reason behind this is, to get the requests via the official IPs to the DomU's (routed-mode) and the interworking
between the DomU's with connected with help of the (bridged-mode).

I got it work, with setting everything up manually. But as I understood the "xen-config.sxp" can handle either routed or bridget,
but not both together. So is there're possibility or something what can be done via the Xen-Tools.

Because after a restart everything needs to be set up again and that not the way how it should be.
Many Thanks.

Cheers,
Maik

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

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


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