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: Carlos <cechevarne@xxxxxxxxx>
Subject: Re: [Xen-users] 1 host, 1 nick, 1 regular bridge, 1 local bridge, 5 vm
From: Todd Deshane <todd.deshane@xxxxxxx>
Date: Wed, 23 Mar 2011 14:58:55 +0000
Cc: John Rounds <vannion@xxxxxxxxx>, xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 23 Mar 2011 08:02:17 -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:from :date:x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=3xrLNZ64OrHDkD5gqSFSGgHkThVH1Olgn1IsPqSEipw=; b=V4LAeY91/ZikZucrgXDraZ28SaEJZjemZBnM1lVDYX7YzbWO69Gl73fLnx8m2icpvs wBKLgoBsens2kKYzlLiPFHSv456R92kv+ecdHzX6vLmddHZezX5RX9PtbY6b8/JvVKkK +dCxOiiy8OkZeWll2KleqzLYud9m80bimf3iw=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; b=iIFWdz7coi3jLbhBJ+Ue9TzE7UA3oeJLQooZNHp5L0NAiYf4f/1VPO5mAoRrwUwvfg 2tJh15qEsvx+gO7vhlKR84lf2gfsFiv45DKYNBQNQTvU4VADZn4K3duahoT/63Oo6NAc z2j60jJzllnEDKRInJCgULGc6aTgvEOU8WUQk=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AANLkTin-jCadtU3iszADhn=7=Q=A4m6MNPchhG-ywQ-3@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> <p0624082dc9ad74053d6b@xxxxxxxxxxxxxxxxxxxxxx> <AANLkTimWsrbCCAryNV60zueyPOEv5c25WiUNy+4dmHtE@xxxxxxxxxxxxxx> <AANLkTikUhRQqf3+6a18SNyjFymka8cFUatFoOB3hUA+8@xxxxxxxxxxxxxx> <AANLkTin-jCadtU3iszADhn=7=Q=A4m6MNPchhG-ywQ-3@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On Wed, Mar 23, 2011 at 11:25 AM, Carlos <cechevarne@xxxxxxxxx> wrote:
> Debian/Ubuntu /etc/network/interfaces config to setup dom0 internal network
> interface(bridge dummy).
>
> Load kernel module.
>
> modprobe dummy
>
> /etc/network/interfaces
>
> auto dummy0
> iface dummy0 inet manual
>         pre-up ifconfig $IFACE up
>         post-down ifconfig $IFACE down
>
> auto lan-xen-ofi
> iface lan-xen-ofi inet manual
>         bridge_ports dummy0
>         bridge_maxwait 0
>         bridge_stp off
>
>


Carlos: do you feel this type of information should be added to the wiki
http://wiki.xensource.com/xenwiki/HostConfiguration/Networking

If so, let me know your username on the wiki (i can add you to the
editors group) if you would like to help shape this page.

Thanks,
Todd

> 2011/3/22 John Rounds <vannion@xxxxxxxxx>
>>
>> I think this might be the answer I needed Todd,   Going to give it a try
>> soon.
>>
>> On Tue, Mar 22, 2011 at 8:36 AM, Todd Deshane <todd.deshane@xxxxxxx>
>> wrote:
>>>
>>> On Mon, Mar 21, 2011 at 5:35 PM, Simon Hobson <linux@xxxxxxxxxxxxxxxx>
>>> wrote:
>>> > 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.
>>> >
>>>
>>> Good suggestion. We have documentation and notes on this, since this
>>> is the way Xen 4.1+ will work.
>>>
>>> See:
>>> http://wiki.xensource.com/xenwiki/HostConfiguration/Networking
>>> http://wiki.xensource.com/xenwiki/MigrationGuideToXen4.1%2B
>>>
>>> Thanks,
>>> Todd
>>>
>>> > 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
>>> >
>>>
>>>
>>>
>>> --
>>> Todd Deshane
>>> http://www.linkedin.com/in/deshantm
>>> http://www.xen.org/products/cloudxen.html
>>
>>
>> _______________________________________________
>> 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
>



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

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