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] Help me to set up network (routes)

To: AlannY <m@xxxxxxxxx>, xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Help me to set up network (routes)
From: Simon Hobson <linux@xxxxxxxxxxxxxxxx>
Date: Thu, 7 May 2009 07:47:14 +0100
Cc:
Delivery-date: Wed, 06 May 2009 23:47:59 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4A01EBC5.3050602@xxxxxxxxx>
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: <4A01EBC5.3050602@xxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
I haven't used Xen in routed mode, but I can make a few observations based on simple IP networking rules.


AlannY wrote:

Dom0 have one (1) working net card: eth0

with IP for external LAN: 10.9.3.92
and gateway for with IP: 10.9.3.1

And what IP address have you assigned it for the inside network ?


In my DomU (Windows in my case) I set up network interface as follow:

address 10.0.2.2
netmask 255.255.255.0
gateway 10.9.3.1  # it's a gateway which gave me ISP (see above)

NO, the gateway MUST be an IP address on it's own network - ie it MUST be 10.0.2.<something>. In this case, it should the be the internal IP address you assigned to Dom0. Because the gateway isn't on it's own network, the guest doesn't even know how to reach the gateway - if you see what I mean.

%# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:e0:4c:a0:b0:20
          inet addr:10.9.3.92  Bcast:10.9.3.255  Mask:255.255.255.0
          inet6 addr: fe80::2e0:4cff:fea0:b020/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2158921 errors:1 dropped:78 overruns:1 frame:0
          TX packets:1918655 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2215803222 (2.0 GiB)  TX bytes:1294017960 (1.2 GiB)
          Interrupt:17 Base address:0xd000
[...]
tap2.0    Link encap:Ethernet  HWaddr 4e:69:00:fd:f0:48
          inet6 addr: fe80::4c69:ff:fefd:f048/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:26 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:2343 (2.2 KiB)  TX bytes:468 (468.0 B)

vif2.0    Link encap:Ethernet  HWaddr fe:ff:ff:ff:ff:ff
          inet addr:10.9.3.92  Bcast:10.255.255.255  Mask:255.255.255.255

This will need to be i the 10.0.2.x subnet

--
Simon Hobson

Visit http://www.magpiesnestpublishing.co.uk/ for books by acclaimed
author Gladys Hobson. Novels - poetry - short stories - ideal as
Christmas stocking fillers. Some available as e-books.

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