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] Networking from domu to the outside

To: Kris Amy <kris@xxxxxxxxxxxx>
Subject: Re: [Xen-users] Networking from domu to the outside
From: Marcus Brown <marcusbrutus@xxxxxxxxxxxxxxxx>
Date: Mon, 22 Aug 2005 11:19:57 +1000
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 22 Aug 2005 01:18:11 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <430843E2.7030101@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/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: <430843E2.7030101@xxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Debian Thunderbird 1.0.6 (X11/20050802)
Hi Kris,

> First of all my setup looks like this
> 
> Router (A.B.C.D) - dom0(A.B.C.D+1) - domU(A.B.C.D+2)
> 
> I can ping from domU -> dom0 and visa versa.
> I can ping from dom0 -> Router.
> I can't ping from domU -> Router.

It would appear that either domU doesn't know how to reach the router,
and/or dom0 isn't forwarding IP.

Perhaps you could try the following?

The domU will need dom0 as it's gateway, so the routing table in
domU should be something like:
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
A.B.C.0         0.0.0.0         255.255.255.0   U     0      0        0 eth0
0.0.0.0         A.B.C.D+1       0.0.0.0         UG    0      0        0 eth0

Also, ensure that port forwarding is enabled in the dom0:
#echo 1 > /proc/sys/net/ipv4/ip_forward


Marcus.

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