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

[Xen-devel] Question about network-route

To: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Subject: [Xen-devel] Question about network-route
From: wei huang <huanwei@xxxxxxxxxxxxxxxxxx>
Date: Thu, 28 Jul 2005 18:41:42 -0400 (EDT)
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 28 Jul 2005 22:40:13 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <258bd2b369872356f2ad147acf573bee@xxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi,

I saw in file /etc/xen/xend-config.sxp that I also have the choice to use
network-route to configure the network. I have troubles using veth0 so I
would like to give it a shot.

I saw some of instruction given in the mailing list:
http://lists.xensource.com/archives/html/xen-devel/2005-01/msg00368.html

I strictly follow it: modify the xend-config.sxp, configuration script and
start domu. (I didn't change the network-route and vif-route scripts
though)

But it seems that DomU is still trying to get ip from dhcp. It stops at
determine eth0 ip address for quite a long time and quits with fail.
Do I have to change something at /etc/sysconfig/network-script/ifcfg-eth0
in my domU disk image? If so, I guess it should not be booted with dhcp.
But what should my static ip, netmask, default gateway be?

Here I tried to change the static ip to "1.2.3.4" (what ever I specify in
the script) and mask to be 255.255.255.255 but leave the gateway blank.
Now DomU got its ip during boot time cannot connect outside.

I check dom0's route table after domU boots, it seems that 1.2.3.4 is
there:
Kernel IP routing table
tination     Gateway         Genmask         Flags Metric Ref    Use Iface
1.2.3.4         *               255.255.255.255 UH    0      0      0 vif1.0
9.2.72.0        *               255.255.255.128 U     0      0      0 eth0
169.254.0.0     *               255.255.0.0     U     0      0      0 eth0
default         lab001.watson.i 0.0.0.0         UG    0      0      0 eth0

And DomU's routing table:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
169.254.0.0     *               255.255.0.0     U     0      0        0 eth0
default         *               0.0.0.0         U     0      0        0 eth0

Dom0 can ping 1.2.3.4 but cannot ssh. DomU cannot access outside, even use
ping.

Am I miss something here? I really got stuck here so any suggestions will
be helpful.

Thank you very much!

Regards,
Wei Huang



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