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

xen-users

[Top] [All Lists]

[Xen-users] Re: Random MAC addresses in Xen

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Re: Random MAC addresses in Xen
From: Matt Palmer <mpalmer@xxxxxxxxxxx>
Date: Wed, 5 Apr 2006 17:33:05 +1000
Delivery-date: 2006年4月05日 00:59:56 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <4f52331f0604041547u5e0607a2xa51b7a2ca316697c@xxxxxxxxxxxxxx>
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: <4f52331f0604041547u5e0607a2xa51b7a2ca316697c@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.9i
On Tue, Apr 04, 2006 at 03:47:37PM -0700, Fong Vang wrote:
> I could have potentially hundreds of domUs bridged in the same
> network. What's the easiest way to assign MAC addresses for domUs? 
> In random mode, how does Xen pick MAC addresses? Once a MAC is chosen
> for a domU, will it remain fixed? How does Xen know whether a MAC
> address has already been assigned?
I use the following snippet in my domU setup script to create a MAC address
for a new host:
MACADDR="aa:00:$(echo $VHOSTNAME | md5sum \
 | sed 's/^\(..\)\(..\)\(..\)\(..\).*$/1円:2円:3円:4円/')"
Then substitute MACADDR into the template config file we use here.
Yes, there is a (small but) non-zero chance of collision. No, I don't care.
- Matt
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>
Previous by Date: [Xen-users] Booting and installing a domU from cdrom , pierre . gentile
Next by Date: [Xen-users] CDU load problems with testing , Steffen Heil
Previous by Thread: RE: [Xen-users] Random MAC addresses in Xen , Alan Murrell
Next by Thread: Re: [Xen-users] Random MAC addresses in Xen , Sadique
Indexes: [Date] [Thread] [Top] [All Lists]

Copyright ©, Citrix Systems Inc. All rights reserved. Legal and Privacy
Citrix This site is hosted by Citrix

AltStyle によって変換されたページ (->オリジナル) /