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] 2 network connection for dom0 and domU(s)

To: chris <tknchris@xxxxxxxxx>
Subject: Re: [Xen-users] 2 network connection for dom0 and domU(s)
From: Gabor Szilagyi <szilagyi@xxxxxxxxxxxx>
Date: Thu, 18 Feb 2010 11:46:32 -0500
Cc: xen-users <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 18 Feb 2010 08:50:41 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <31e44a111002180825y779f92cdtf7b9af5c0ef203ee@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>
Openpgp: id=357A2D5A
Organization: UNEP NYO
References: <4B7D5B02.1060103@xxxxxxxxxxxx> <31e44a111002180825y779f92cdtf7b9af5c0ef203ee@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090706)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

chris wrote:
> In my experience its because the bridge is not brought up unless the
> interface is configured. Does the eth1 on dom0 have an IP address or did
> you put it up with ifconfig?

Thanks Chris,

Yes, it is fully configured (second network cable is not attached right
now but was tested). Actually /etc/network/interfaces file is fully
configured on the dom0 for eth0 and eth1 ... just the second network is
not in the location where the host is now :-) could this be an issue?

See ifconfig print out in my message below.

Again, when I have only one bridge declared in the domU config (see
below it comes up fine with one interface using the modifed wrapper but
with both it hangs

Gabor

> 
> - chris
> 
> On Thu, Feb 18, 2010 at 10:21 AM, Gabor Szilagyi <szilagyi@xxxxxxxxxxxx
> <mailto:szilagyi@xxxxxxxxxxxx>> wrote:
> 
> I am new to xen and went through the wiki(s) on bridging btw dom0
> and domU.
> 
> My physical host has two network card which needs to be attached to two
> different network (one private one public).
> 
> First using one bridge was successful but I am having trouble to bring
> up the second. I have tried to  modifie the xendconfig and tried to
> create a custom wrapper for the bridging script following some examples.
> 
> The dom0 is Debian Squeeze (base install) with dom0 kernel compiled from
> the jeremy's tree (no problem there). The Hypervisor 3.4.2 (64bit)
> 
> I have not found exact receipt for the layout I want
> 
> dom0 -- eth0 -- XX.XX.242.0/24 -- "bridge1" -- eth0 -- domU1
> dom0 -- eth1 -- 10.0.0.0/24 <http://10.0.0.0/24>    -- "bridge2" --
> eth1 -- domU1
> 
> All the interfaces will be using static IP (I have no problem
> configuring those within their OS).
> 
> 
> Current setup:
> 
> rasnew:/etc/xen# cat xend-config.sxp|grep -v ^#|grep bridge
> (network-script network-bridge-custom)
> (vif-script vif-bridge)
> 
> rasnew:/etc/xen# cat ./scripts/network-bridge-custom
> #!/bin/sh
> /etc/xen/scripts/network-bridge "$@" netdev=eth0
> /etc/xen/scripts/network-bridge "$@" netdev=eth1
> 
> 
> The test domU config is like this the uncommented line would hang the
> domU although it shows up in xm list
> 
> rasnew:/etc/xen# cat test1_pv.cfg
> bootloader = '/usr/lib/xen-3.4/bin/pygrub'
> memory = 256
> name = "testPV"
> vif = [ 'mac=00:16:3e:00:01:06, bridge=eth0' , ]
> #vif = [ 'mac=00:16:3e:00:01:06, bridge=eth0' , 'mac=00:16:3e:10:01:01,
> bridge=eth1', ]
> disk = [ 'phy:/dev/vm-vg/testdomU.disk,xvda1,w', ]
> 
> On the host both eth0 and eth1 us up :
> 
> rasnew:/etc/xen# ifconfig
> eth0      Link encap:Ethernet  HWaddr 00:21:86:ef:3e:bb
>          inet addr: XX.XX.242.105  Bcast: XX.XX.242.255
>  Mask:255.255.255.0
>          inet6 addr: fe80::221:86ff:feef:3ebb/64 Scope:Link
>          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>          RX packets:643696 errors:0 dropped:0 overruns:0 frame:0
>          TX packets:61616 errors:0 dropped:0 overruns:0 carrier:0
>          collisions:0 txqueuelen:0
>          RX bytes:129478544 (123.4 MiB)  TX bytes:7094105 (6.7 MiB)
> 
> eth1      Link encap:Ethernet  HWaddr 00:0e:0c:64:cf:3c
>          inet addr:10.0.0.105  Bcast:10.0.0.255  Mask:255.255.255.0
>          UP BROADCAST MULTICAST  MTU:1500  Metric:1
>          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>          collisions:0 txqueuelen:1000
>          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
> 
> 
> 
> Not sure what else I should list here :-)
> 
> Any suggestion would be appreciated. Can this be done with the xen
> scripts or I have to build the bridges manually?
> 
> Thanks.
> 
> Gabor
> 

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




- --
+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+
| Gabor Szilagyi (Mr.)                    Gabor.Szilagyi@xxxxxxxxxxxx |
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkt9bugACgkQcYMbOTV6LVoN4gCeIG5ubuGmMzeY1/ABVZfHbaXS
UlwAn0IYWEfI23nRlno8ideWdGGgvFAz
=YMgi
-----END PGP SIGNATURE-----

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