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 4.1.0, multiple network interfaces, network-bridge f

To: Xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Xen 4.1.0, multiple network interfaces, network-bridge failing to create multiple bridges
From: Jan Vejvalka <jan.vejvalka@xxxxxxxxxxxxxxx>
Date: Fri, 06 May 2011 11:08:22 +0200
Cc:
Delivery-date: Fri, 06 May 2011 02:10:38 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <BANLkTimJiHZuFuwQs3E0buQ6VzbZiz2xqQ@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: <4DC17A0C.6040709@xxxxxxxxxxxxxxx> <BANLkTinPXZk=qOGoUVEsZSV39ZtyNjHcQQ@xxxxxxxxxxxxxx> <4DC26482.5060300@xxxxxxxxxxxxxxx> <BANLkTikyd8tuQW8kp-Oaj-CJH6-4LLqyyg@xxxxxxxxxxxxxx> <4DC2D29E.5080206@xxxxxxxxxxxxxxx> <BANLkTimJiHZuFuwQs3E0buQ6VzbZiz2xqQ@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10
On 5.5.2011 19:19, Joseph Glanville wrote:
Hi,

From your original post I can gather you wish to create 2 bridges, one
each for the interfaces eth0 and eth1?

This can be achieved by running the following:
brctl addbr xenbr0
brctl addif xenbr0 eth0
brctl addbr xenbr1
brctl addif xenbr1 eth1

Slackware doesn't have a nice way of doing this with it's internal
networking system but adding the above to rc.local accomplishes the
job good enough.

Thanks - that's simple enough (and that's what I like on Slack, that it
does not create complicated ways to hide simple things).

To make use of a multiple bridge setup effectively you need to specify
the bridge in the vif statement of the xen config file (something like
bridge=xenbr0)

Note, only network-bridge and associated are depreciated.
You still require the vif-bridge script to be enabled in
/etc/xen/xend-config.xcp

When domains are created Xen will create the vif adapters to the
following naming convention:
vif<domid>.<adapternumber>

So for a domid of 5 and a system with 2 adapters the following vif
devices will be created in dom0:
vif5.0
vif5.1

During device hotplug the vif-script then brings this interface up and
adds it to the bridge.

Do you have any further questions or need any further clarification on
any of the points above?

- There are "7 pairs of connected virtual ethernet interfaces for Dom0"
  mentioned in http://wiki.xensource.com/xenwiki/XenNetworking . Is
  that still valid ?

- Not sure how VLANs are handled by the bridges; two setups come to my
  mind: either connecting the specific VLAN (e.g. eth0.5) to xenbrX in
  Dom0 or connecting all eth0 and selecting the right VLAN(s) on the
  ethernet interface in DomU. Both ways can have their pros and cons,
  are both possible ?

Otherwise it's clear enough at the moment, thanks :-)

I am considering writing an article on Xen Wiki about how network
configuration is carried out in Xen as it seems to be an area alot of
people have problems with.

That would definitely be most useful.

Thanks,

Jan

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