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

[Xen-users] Re: bridging two interfaces

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Re: bridging two interfaces
From: "Tomoki Taniguchi" <tomoki.taniguchi@xxxxxxxxx>
Date: Tue, 31 Jul 2007 17:19:23 +0900
Delivery-date: Tue, 31 Jul 2007 01:17:11 -0700
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=mylbT4IcO/lZfIR/rMZb28R1cW9LMDF2p27n2Y8YS1cgMcCk87LGR6TOFFW88VNznBn8Ylbe+zPKC/yMrKhJ4I7hjN8yZeXoP7+Ryuv9YaP+js9U7u69qceS5w3u3yYYVp+N4LE5MkKFVZUMl8QWKfS/WUiXL9OhWtKB+BppXs0=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=bFJHAEMhM3OVYAci5Rxst2MQhkC85wMEuzRrUO66c7Fzn13T26fdmF/3DXmMJD87Z/6QNEam8lZ/U6le8qP2A7KtuIafdsGwkzk5seD8DuowhVSSnh2bxnwKPUTHIFZvDP7BoxekfNxMy7RLUNHvT0H6J5o8upklVVN9VJKc+i8=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <718828c0707301928o11947c21w1421e105fcae4e7d@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/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <718828c0707301922o53801957n7c758b028474c21e@xxxxxxxxxxxxxx> <718828c0707301928o11947c21w1421e105fcae4e7d@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Ok i think i'm starting to understand the problem.

my xen host has two network cards eth0 and eth1
the eth0 was configured with the local lan ip.
but the eth1 was connected to the WAN but not configured.
I had no reason for the xen server to have direct access to the internet.
But i wanted to setup a domU on it that would have a reason to access
the internet.
which i have tried to do.

The only time the domU's eth1 worked properly was when the dom0 eth1 is assigned
an ip address.  currently i have assigned a bogus ip address to get
the domU eth1 working.
is there a better way to do this?

TIA,
Tomoki

On 7/31/07, Tomoki Taniguchi <tomoki.taniguchi@xxxxxxxxx> wrote:
> just an update.
> Now I am sure my xenbr1 is note being set properly
> it is being bridged to eth0
> I changed the domU's eth1 settings from
> static to dhcp, and eth1 gets an ip from the LAN
> which is connected to the eth0 on dom0.
>
> so i guess my multi-network-bridge script is not working properly.
>
>
> On 7/31/07, Tomoki Taniguchi <tomoki.taniguchi@xxxxxxxxx> wrote:
> > I have a host machine with eth0 and eth1.
> > eth0 is connected to the lan and eth1 is connected to the internet
> >
> > I am trying to bridge both interfaces in xend so that
> > xenbr0=eth0 and xenbr1=eth1
> >
> > following some documentation i changed
> > (network-script network-bridge)
> > to
> > (network-script multi-network-bridge)
> > in /etc/xen/xend-config.sxp
> >
> > then i created a /etc/xen/scripts/multi-network-bridge file
> > in put
> > #!/bin/sh
> > dir=$(dirname "$0")
> > "$dir/network-bridge" "$@" vifnum=0 netdev=eth0
> > "$dir/network-bridge" "$@" vifnum=1 netdev=eth1
> > in side.
> >
> > I restart xend, which seemed to create the xenbr0 and xenbr1
> > interfaces.
> >
> > I then editted the domU config file. I changed
> > vif = [ 'bridge=xenbr0' ]
> > to
> > vif = [ 'bridge=xenbr0','bridge=xenbr1' ]
> >
> > eth0 and eth1 are created on domU and i was able to set the ip
> > addresses for eth0 and eth1.
> > i was able to connect to the domU host through the lan ip address
> > assigned to eth0.
> > but i can't seem to connect via the wan ip address assigned to eth1.
> >
> > from inside the domU i have tried to ping other machines on the same wan 
> > subnet,
> > but i get a "Destination Unreachable".  I have confirmed that the ip
> > address and the subnet
> > is correct.  I can't ping the domU eth1 ipaddress from the dom0 eth1
> > ipaddress which is on the same subnet.
> >
> > which leads me to believe my xenbr1 is not being setup properly.
> >
> > can anyone help me with this?
> >
> > TIA
> > Tomoki
> >
>
>
> --
> Tomoki Taniguchi
> SKYPE: taiyocable.com_taniguchi_tomoki
> MSN: tomoki_taniguchi@xxxxxxxxxxx
> YAHOO: tomoki_taniguchi
> AIM: tomoki taniguchi
>


-- 
Tomoki Taniguchi
SKYPE: taiyocable.com_taniguchi_tomoki
MSN: tomoki_taniguchi@xxxxxxxxxxx
YAHOO: tomoki_taniguchi
AIM: tomoki taniguchi

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

<Prev in Thread] Current Thread [Next in Thread>