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] yet another networking question

To: mbjohn@xxxxxxxx
Subject: Re: [Xen-users] yet another networking question
From: Patrick Wolfe <pwolfe@xxxxxxxxxxxxxx>
Date: Fri, 31 Mar 2006 08:46:41 -0500
Cc: xen-users <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 03 Apr 2006 09:48:49 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <Pine.GSO.4.58.0603301446120.6158@xxxxxxxxxxxxxxxxxxxxxxx>
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: Employease
References: <Pine.GSO.4.58.0603301446120.6158@xxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On Thu, 2006-03-30 at 15:13 -0500, mbjohn@xxxxxxxx wrote:
> I have tried several things.
> I thought that adding:
> 
> nics = 1
> dhcp = "off"
> ip = "x.y.250.200" (where x and y != private address space)
> netmask = "255.255.255.128"
> gateway = "x.y.250.129"
> hostname = "vm03"
> 
> would make the appropriate magic happen.

I have not had much luck configuring domU IP interfaces this way.  I
prefer to just configure each the domU with a static MAC address (using
the 00:16:3e:xx:xx:xx IEEE range assigned to XenSource Inc), configure
DHCP service to assign static IP addresses base on the MAC address.
Then all you have to do is configure the domU's network interface using
it's own tools (run "system-config-network" on RHEL/Centos, or
"vi /etc/network/interfaces" on debian/ubuntu).

DHCP is a standard service for controlling IP addresses.  I see no
advantage to trying to set them in each domU's config file, especially
since it appears that all this really does is pass the info to the
kernel on the boot command line.  It's up to each distribution to
correctly interpret the command line parameter, and so far, I've only
seen it work on Debian Sarge.



> 2)  I tried to run 'yum update'.  First go, because names didn't resolve,
> I got a name lookup failure.  So, I added the name and ip address to
> /etc/hosts.  After that, I get a 'no route to host' error.


It sounds like you have a routing problem.  Fix dom0 first.  Run
'netstat -rn', make sure you have a default route and that you can ping
the assigned gateway.  If it fails, you might have configured the wrong
IP address, netmask or gateway IP, or you might have a physical network
problem (bad cable).

If you can ping the default gateway, then try pinging something beyond
that.  If that fails, you might need to check that your IP network is
being routed properly (check with your local network admin).  If you're
using RFC1918 private IP addresses (10.x.x.x, etc), make sure something
is doing NAT to hide them.

Also, make sure you've run 'ethtool -K eth0 tx off' (on both dom0 and
domU), or else it might just be corrupt packets causing your problem.



-- 
Patrick Wolfe  (pwolfe@xxxxxxxxxxxxxx)

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>
  • Re: [Xen-users] yet another networking question, Patrick Wolfe <=