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: Jan Vejvalka <jan.vejvalka@xxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] Xen 4.1.0, multiple network interfaces, network-bridge failing to create multiple bridges
From: Todd Deshane <todd.deshane@xxxxxxx>
Date: Thu, 5 May 2011 09:54:36 -0400
Cc: Xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 05 May 2011 06:56:18 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=D3a+QKS8DC3XYe8yjxMxLXNvCy6g4ztcboObdmTRegc=; b=PiA+hk8SqX3MyWr+cbl2injjheqQS44I9Ea1roYE7Kt1Q7hTatXyvCZGovKtguPoIm JLqU2Vq0GRM155gtYlyEPmuJAr6I/eHw/kh14VI/vM6lCGwzPUN7KQXnga2OIlUY2rmA r5XDrve1HqM67pbpw9rklqeA3KqhBqI0ZO+D4=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=otYrsvhc9xgZA0ak+spuLvEB7HxvZ8sv4qyC7EP9K0/bmJ+hEuOB8sPG1B9zXxtEqM DJUP1qHhrOUBI9ThEYyNxKmSU7VOItj7XS8SX205avhVCU4+O8wMLQA0k/U80Wqt7Knx LjlUrFo2xTX/JWArHiu0I9nM0uPS2AYbqCmG0=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <BANLkTikyd8tuQW8kp-Oaj-CJH6-4LLqyyg@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>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On Thu, May 5, 2011 at 9:32 AM, Todd Deshane <todd.deshane@xxxxxxx> wrote:
> On Thu, May 5, 2011 at 4:49 AM, Jan Vejvalka
> <jan.vejvalka@xxxxxxxxxxxxxxx> wrote:
>>>> root@cen:~# /etc/xen/scripts/network-bridge start netdev=eth0
>>>> root@cen:~# /etc/xen/scripts/network-bridge start netdev=eth1
>>>>
>>>> only creates the eth0 bridge.
>>>>
>>>> There is a check in the script that prevents it from creating more than
>>>> one bridge:
>>>>
>>>> (...)
>>>> op_start () {
>>>> (...)
>>>>   if [ `brctl show | wc -l` != 1 ]; then
>>>>        return
>>>>   fi
>>>>
>>>> Why ? Is that a bug, a feature, or is it something that came in in the
>>>> process of building Xen ? Did I miss something somewhere ?
>>>>
>>
>>> Networking in Xen 4.1+ has changed:
>>> http://wiki.xensource.com/xenwiki/MigrationGuideToXen4.1%2B
>>>
>>> See also:
>>> http://wiki.xensource.com/xenwiki/HostConfiguration/Networking
>>> http://wiki.xensource.com/xenwiki/Xen4.1
>>
>> I see. But I did not upgrade, I installed from fresh. Does it mean that
>> the /etc/xen/scripts/network-bridge script is obsolete ?
>>
>
> Yes it is deprecated. It will be much better and more robust to use
> the network scripts in your distribution.
>
> Offhand I can't seem to find the slackware documentation on creating
> network bridges.
>
> The closest thing I can find is:
> http://www.slackbook.org/html/book.html#NETWORK-CONFIGURATION-TCPIP-CONF
>
> Maybe other Xen Slackware users will have some tips?
>
> I've asked on the ##slackware IRC channel on freenode and if someone
> answers I can post more info.
>

So some responses from the slackware IRC indicate that brctl is in
fact a good option and you could put the commands in /etc/rc.local

Another person added a diff to rc.inet1 that support bridges:

http://connie.slackware.com/~alien/rc_scripts/bridging/

Hope that helps.

If we could document a Slackware bridging guide somewhere guide on the
wiki that would be helpful for the future.

Thanks,
Todd

> A more manual option is to use a tool called brctl (using in a package
> called something like bridge-utils)
>
> brctl can be used to add a bridge device and connect it to your
> network card (eth0 for example).
>
> brctl is well-documented.
>
> Let us know if you find good slackware documentation for bridged
> networking so we can add it to our wiki.
>
> Thanks,
> Todd
>
>> Is there some info/example on how to set up networking in Xen 4.1 that
>> is not distribution-specific ? So far, the most helpful for me was the
>> diagram in http://libvirt.org/archnetwork.html together with the
>> network-bridge script itself.
>>
>> And one more question: how can I tell which document in xenwiki applies
>> to which version of Xen ?
>>
>> Thanks,
>>
>> Jan
>>
>> _______________________________________________
>> Xen-users mailing list
>> Xen-users@xxxxxxxxxxxxxxxxxxx
>> http://lists.xensource.com/xen-users
>>
>
>
>
> --
> Todd Deshane
> http://www.linkedin.com/in/deshantm
> http://www.xen.org/products/cloudxen.html
> http://runningxen.com/
>



-- 
Todd Deshane
http://www.linkedin.com/in/deshantm
http://www.xen.org/products/cloudxen.html
http://runningxen.com/

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