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] Random swap of interfaces at domU startup

To: Frédéric VANNIÈRE <frederic@xxxxxxxxxxx>
Subject: Re: [Xen-users] Random swap of interfaces at domU startup
From: "Luke S. Crawford" <lsc@xxxxxxxxx>
Date: Thu, 18 Jan 2007 11:28:48 -0800 (PST)
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 18 Jan 2007 11:28:35 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <3B768AE8-E926-4C42-8B6E-B1A49EB21E20@xxxxxxxxxxx>
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>
References: <3B768AE8-E926-4C42-8B6E-B1A49EB21E20@xxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx


On Thu, 18 Jan 2007, Frédéric VANNIÈRE wrote:
I'm using xen 3.0.4 with a custom kernel (with drbd) and
quite often xen inverts eth0 and eth1. In order to have correct
interfaces I need to restart the domU

This is a Linux problem rather than a Xen problem; Linux is notorious for swapping network interfaces when disturbed.

The solution is to manually tie eth[01] to the mac addresses you specified in your xm config file. If you use RedHat, edit /etc/sysconfig/network-scripts/ifcfg-eth[01] and add

HWADDR= [mac specified in xm config]

if you don't use redhat or want to read more about how linux orders Ethernet interfaces, read this:

http://www.science.uva.nl/research/air/wiki/LogicalInterfaceNames

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