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] Cannot ping from dom0 to domU and vice versa

To: Srinivasan S <ssrini@xxxxxxxxxxxxxx>, xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Cannot ping from dom0 to domU and vice versa
From: Ernst Bachmann <e.bachmann@xxxxxxxx>
Date: Thu, 22 Sep 2005 18:25:15 +0200
Delivery-date: Thu, 22 Sep 2005 16:23:02 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20050922161024.8123.qmail@xxxxxxxxxxxxxxxxxxxxxxxx>
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: <20050922161024.8123.qmail@xxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.8.1
On Thursday 22 September 2005 18:10, Srinivasan S wrote:
...
> vif= ['mac=aa:00:10:00:00:10, bridge=xen-br0']
> ip = "192.168.2.2"
...

> Boots and allows me to login .. then I tried to ping the dom0 from domU and
> it didnt work.  Heres the ifconfig from domU:
>
> eth0      Link encap:Ethernet  HWaddr AA:00:10:00:00:10
>           inet addr:192.168.2.2  Bcast:192.168.2.255  Mask:255.255.255.0

...

> Heres the ifconfig from dom0, I have 2 nics one local n/w (eth1) and the
> other for the internet via router (eth0):
>
> eth0      Link encap:Ethernet  HWaddr 00:50:BA:08:43:4C
>           inet addr:192.168.1.100  Bcast:192.168.1.255  Mask:255.255.255.0
>
> eth1      Link encap:Ethernet  HWaddr 00:0E:A6:15:8D:FB
>           inet addr:192.168.2.1  Bcast:192.168.2.255  Mask:255.255.255.0
>
> xen-br0   Link encap:Ethernet  HWaddr 00:50:BA:08:43:4C
>           inet addr:192.168.1.100  Bcast:192.168.1.255 
>
> Please let me know how I get the two doms to ping each other

Well, simple routing problem:

your xen-br0 bridge has eth0 enslaved, and thus is in the 192.168.1.* subnet, 
while your domU think it has a 192.168.2.* subnet, and ip inside it.

you'll probably want to enslave eth1 to xen-br0 instead of eth0, but giving 
domU a 192.168.1.x IP address would work, too.

/Ernst

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