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: Gabor Szilagyi <szilagyi@xxxxxxxxxxxx>
Subject: Re: [Xen-users] 2 network connection for dom0 and domU(s)
From: chris <tknchris@xxxxxxxxx>
Date: Thu, 18 Feb 2010 11:25:21 -0500
Cc: xen-users <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 18 Feb 2010 08:27:10 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=KxrwpTfUwmz0J3wvhTiHdsO4bYJUevyoH8hKrewWpxE=; b=lpb1QKNtxFTu3pw/EzVnllJp8oOYVecrcpOpqRZcC8uLys4QSGSY3nba97KMohLbpk j7ji9EjemXT9UdJ/AMR1Nv3BCMrWIMSYMpmEUoI2kBsCECzJr7IzhRlYig1koL3bx5E3 xrxYjXdh0RIQnWNuGGBISKpaRVbK0Z3gMl5e8=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=IhDcPWsM+vRUDFXbfREh6ZbrcIQMez83nS/2AHMTK6qiHbkByqTjGHkX+FjQ9Kl0dY XvYZrHNIUu9flPAVGErb7QVfXcVZ0OX8ZHPrp1X77WpwxVJNvzkc3hxsjCvpbK8AZnfi nycndDtf+BFO/Xsrchoau4MMXKDD4EM7SuljU=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4B7D5B02.1060103@xxxxxxxxxxxx>
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: <4B7D5B02.1060103@xxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
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?

- chris

On Thu, Feb 18, 2010 at 10:21 AM, Gabor Szilagyi <szilagyi@xxxxxxxxxxxx> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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    -- "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

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

iEYEARECAAYFAkt9WwIACgkQcYMbOTV6LVpiuACfQSbvMyWlpMivNYT4ZxkNdSqf
3o8AoJpQTA4wuBwQgfuc7JD4aLNFNmHW
=lLBS
-----END PGP SIGNATURE-----

_______________________________________________
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