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] Interesting networking problem (network is unreachable)

To: "Morten W. Petersen" <morten@xxxxxxxxxxxxxx>
Subject: Re: [Xen-users] Interesting networking problem (network is unreachable)
From: Tim Post <tim.post@xxxxxxxxxxxxxxx>
Date: Wed, 10 Jan 2007 14:29:16 +0800
Cc: Martin Hierling <martin@xxxxxxxxx>, Xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 09 Jan 2007 22:29:35 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <45A3D097.6040905@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>
Organization: Net Kinetics
References: <45A37E78.2050805@xxxxxxxxxxxxxx> <4eb282840701090809y32048fd9l9169f7e39e734898@xxxxxxxxxxxxxx> <45A3D097.6040905@xxxxxxxxxxxxxx>
Reply-to: tim.post@xxxxxxxxxxxxxxx
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On Tue, 2007-01-09 at 18:27 +0100, Morten W. Petersen wrote:
> Martin,
> >
> >     when I try to ping and outside host from the guest domain,
> >     the message "connect: Network is unreachable" appears.
> >
> >     Any ideas what's wrong?
> >
> >
> > Your default route is not inside the netmask range.
> > So if 83.143.83.121 <http://83.143.83.121> is really you gateway you 
> > netmask should at be:
> > 255.255.255.0 <http://255.255.255.0>!
> > It may be that your provider gave your the adresses 83.143.83.192/29 
> > <http://83.143.83.192/29> for your use but your netmask is /25.
> 
> (got your other email about netmask /25).
> 
> I don't get any error messages now when using ping, but
> I don't get any responses either.
> 
> If I configure the guest with IP 83.143.83.193 and netmask
> 255.255.255.0 and the routes
> 
> 83.143.83.0     *               255.255.255.0   U     0      0        0 eth0
> default         83.143.83.121   0.0.0.0         UG    0      0        0 eth0
> 
> ping just waits:
> 
> kshetra:~# ping 83.143.86.11
> PING 83.143.86.11 (83.143.86.11) 56(84) bytes of data.
> 
> --- 83.143.86.11 ping statistics ---
> 8 packets transmitted, 0 received, 100% packet loss, time 7008ms
> 
> Thanks very much for your help so far,
> 
> Morten

Add these lines to /etc/network/interfaces in the dom-u, at the bottom
of the file 

ip route replace 83.143.83.121 dev eth0
ip route add default via 83.143.83.121

And change the netmask to 255.255.255.255

Any time you span subnets under a single gateway, or the gateway is not
where one would expect it to be via the notation, treat each guest IP as
a /32.

Re-start networking and it should be fine.

Best,
--Tim

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