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/
Home Products Support Community News


Re: [Xen-users] vlans+bonding+bridging

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] vlans+bonding+bridging
From: Maximilian Wilhelm <max@xxxxxxxxxxx>
Date: Wed, 16 Jul 2008 13:40:31 +0200
Delivery-date: Wed, 16 Jul 2008 04:41:11 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <alpine.DEB.1.00.0807161244430.18610@ariadne>
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>
Mail-followup-to: xen-users@xxxxxxxxxxxxxxxxxxx
References: <alpine.DEB.1.00.0807161244430.18610@ariadne>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.13 (2006-08-11)
Anno domini 2008 Longina Przybyszewska scripsit:


> I have to configure Xen server and DomU's which should be able 
> to talk to different vlans - depending on services put on DomU's.

> I would like to enslave 2 NICs via bond interface.
> Both NICs are on trunk ports which are configured in the same way, the 
> same native vlan.

Sounds like Cisco ;)

> I don't know, if  I have to add vlans tagging to eth* interfaces then 
> enslave tagged eth* interfaces to bond interface and then set up a bridge
> or
> først enslave eth* interfaces to one bond interface  and then add vlan 
> tagging to that bond. Bridges would be set up per vlan.
> What is the real difference between this to approches?

The main difference will most probably be the pain of setup and

I'm using bonding of trunk interfaces on many systems by just bonding
together some eth* interfaces and splitting up the bondX interface
into vlans so that I have bond0.42, bond0.23 and so on.

> Then, I would like to have bridges bound to different vlans - one vlan per 
> bridge, or more vlans per bridge, depending on domU's services.

The next step is to setup a bridge per vlan like
 # brctl addbr br<VLAN_ID>
 # brctl addif br<VLAN_ID> bond0.<VLAN_ID>
so you get br42 and br23 following the above example.

> What about IP addressing - do I have to assign IP addresses to the bridges 
> or to the DomU's?

If the Dom0 (host system) has to use a bridge for it's networking, you
have to assign this IP to the bridge interface.
The IPs of all DomU (guest systetms) have to be set in the DomU
itself, using the standard mechanisms provides by the distribution.

        Follow the white penguin.

Xen-users mailing list

<Prev in Thread] Current Thread [Next in Thread>