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

Re: [Xen-devel] question about network setting for domain1

To: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] question about network setting for domain1
From: Xin Zhao <zhaoxin@xxxxxxxxxxxxxx>
Date: Tue, 14 Sep 2004 19:57:19 -0400 (EDT)
Cc: xen-devel@xxxxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 15 Sep 2004 01:00:57 +0100
Envelope-to: steven.hand@xxxxxxxxxxxx
In-reply-to: <E1C7M6R-00031w-00@xxxxxxxxxxxxxxxxx>
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>
References: <E1C7M6R-00031w-00@xxxxxxxxxxxxxxxxx>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
Thanks for your help.

I followed your instructions and removed all ifcfg-ethX files in dom1.
Unfortunately, this does not solve the proble. There must have some other
problems.

As I said before, my gateway of dom0 is 141.213.10.1. Shall I put it in
configuration file of dom1 as the gateway of dom1? If so, the ip addr of
dom1 is set to 192.168.0.188, how can it reach the gateway?  I am a little
bit confused.

Xin

On Tue, 14 Sep 2004, Keir Fraser wrote:

>
> You don't need an ifcfg-eth0 file in dom1. We pass in the IP config on
> dom1's command line, and the interface will automatically be set up.
>
> What is happening is that your ifcfg-eth0 file is overriding the
> settings passed in on the command line. Because you do not specify a
> gateway in the file, no default route is set up and so dom1 cannot
> send packets outside its subnet.
>
>  -- Keir
>
> > 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
>


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