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 setting for domain1

To: xen-devel@xxxxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] question about network setting for domain1
From: Xin Zhao <zhaoxin@xxxxxxxxxxxxxx>
Date: Tue, 14 Sep 2004 18:32:46 -0400 (EDT)
Delivery-date: Tue, 14 Sep 2004 23:43:00 +0100
Envelope-to: steven.hand@xxxxxxxxxxxx
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
Hi,all,

I cannot get my network in domain1 work. Here is my configuration:

in dom0:

I have two network cards, the ip addrs are 141.213.10.110 and 192.168.0.4,
respectively. 141.213.10.110 is an external IP and can access internet
directly. The gateway should be 141.213.10.1.

/etc/xen/vfp: the domain1 configuration file, I created domain1 using 'xm
create vmid=1 -f /etc/xen/vfp'

Here is the network setting part:

/***************************************************************/
#dhcp="dhcp"
ip = "192.168.0.188"
netmask = "255.255.255.0"
gateway = "141.213.10.104"  // I also tried "192.168.0.1"
# Set netmask.
#netmask=
# Set default gateway.
#gateway=
# Set the hostname.
#hostname= "vm%d" % vmid
/***************************************************************/

in dom1:

/etc/sysconfig/network-scripts/ifcfg-eth0:

/**************************************************************/
DEVICE=eth0
BOOTPROTO=static
IPADDR=192.168.0.188
NETMASK=255.255.255.0
ONBOOT=yes
TYPE=Ethernet
/*************************************************************/

After I started dom1, I can see that the network interface is activated
and got the ip "192.168.0.188". But neither can I connect outside from
dom1, nor connect to dom1 from outside.

What's wrong with my setting? I don't know whether that is the gateway
setting issue. :( I put my 'netstat -rn' dumpout info below:

/***********************************************************************/
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt
Iface
192.168.0.0     0.0.0.0         255.255.255.0   U         0 0          0
eth0
169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0
eth0
127.0.0.0       0.0.0.0         255.0.0.0       U         0 0          0
lo
/***********************************************************************/

If anybody knows how to solve this problem, please help.

Thanks,

Xin



-------------------------------------------------------
This SF.Net email is sponsored by: thawte's Crypto Challenge Vl
Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam
Camcorder. More prizes in the weekly Lunch Hour Challenge.
Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel