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] Interface Order

To: Wolfgang Hennerbichler <wogri@xxxxxxxxx>
Subject: Re: [Xen-users] Interface Order
From: Nico Kadel-Garcia <nkadel@xxxxxxxxx>
Date: Thu, 22 Mar 2007 16:42:16 +0000
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 22 Mar 2007 09:41:22 -0700
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=Pnk5DoSaCAHdjQgRDaVofMqZp1ceTllpQ8baNXwUpEob+kwY87m2Dgkg/Spn9RcnW4PbxTafPONgbAR2RGHdxVW9arvQOQ5fCYjZQZVY4nmJ0+1KUpTqH5hUnvwG6Mzdc0smH+TyGwSBRi9dbyibiaTlUYNp8ZhsxuYFFSBzULs=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=iP7UKjwcWeeBLZ3xuNJ0GyKQTUc2s3QichBMQnsDRWgsH+Nrvb6XdrNPPazimunZBcrZNonljRW30Q2ihUrmEjFhwH6phhYdP/ZAcM66+n5iT6pzFECelLrvQjZ8KR8ZAbkP8svVr+N3zaMqb/HhyAQWKz6L0XMJ2L9yTBzXa7E=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <0D25A75E-D592-4279-A1BC-1579E8A54E52@xxxxxxxxx>
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: <0D25A75E-D592-4279-A1BC-1579E8A54E52@xxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.10 (Windows/20070221)
Wolfgang Hennerbichler wrote:
Hi Xen folks,

I have a question where I couldn't find the answer on google or in the archives... I have a statically compiled xenU kernel, and I want a XEN guest with 2 network interfaces. My config looks like this:

name = "myname"
kernel = "/boot/vmlinuz-2.6-xenU"
memory = 256
vif = [ 'bridge=br701', 'bridge=br9' ]
disk = [ 'phy:vg0/myname,hda1,w','phy:vg0/myname_swap,hda2,w' ]
ip="1.2.3.4"
netmask="255.255.255.0"
root = "/dev/hda1 ro"
extra = "2"

Unfortunately the interface order in the (Linux)-Guest seems to be random. This means after booting the guest the IP 1.2.3.4 is assigned to either br701 or br9, but it's always random (both interfaces work in the guest though). If I define mac-addressses for the interfaces there is no difference. Can I somehow "lock" those interfaces? I don't know how. I'd appreciate your help!

wogri
Use pre-defined MAC addresses, and most Linux environments have a way of associating specific MAC addresses with specific network ports. Under RedHat and its ilk, it's in /etc/sysconfig/ntework-scripts/ifcfg-eth0 and is the HWADDR setting.

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

<Prev in Thread] Current Thread [Next in Thread>