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] read mac in vif-bridge

To: Pasi Kärkkäinen <pasik@xxxxxx>
Subject: Re: [Xen-devel] read mac in vif-bridge
From: Olaf Hering <olaf@xxxxxxxxx>
Date: Tue, 30 Aug 2011 15:23:16 +0200
Cc: Farshid Hajizeinalabedin <fz9551@xxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 30 Aug 2011 06:23:59 -0700
Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; t=1314710610; l=450; s=domk; d=aepfle.de; h=In-Reply-To:Content-Transfer-Encoding:Content-Type:MIME-Version: References:Subject:Cc:To:From:Date:X-RZG-CLASS-ID:X-RZG-AUTH; bh=gqbLTrMF/J157jMyxguPcZE8qgg=; b=jKG7bkOrYM9x6Cm63R5sxM5ctFeUBEeWhpB6+8lZgHH2Q7imo2zNGXQ5nLYgsvQmoSn cZiU0azXh/uDt2ADS3JhV5s6VGOizMzOnshm0yrODohUc22/qgZrA5a9MYTdQRyqcGfoy nU0npPktJjnUbK/WBwVCr139Xio7442PsLg=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20110830131806.GO32373@xxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <CAJauKYK+aUzFpL3AjzMF50tekLf8mXpw2E4r3wvpvaFv3UWgzA@xxxxxxxxxxxxxx> <20110830131806.GO32373@xxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.21.rev5535 (2011-07-01)
On Tue, Aug 30, Pasi Kärkkäinen wrote:

> On Tue, Aug 30, 2011 at 03:14:40PM +0430, Farshid Hajizeinalabedin wrote:
> >    Hello,
> >    i need read mac address in /etc/xend/scripts/vif-bridge but in this file 
> > i
> >    can only read ip and vif how can i read mac address on this file?
> >    thanks,
> 
> Well, you know the vif name, so use "ifconfig" or "ip" commands to get the 
> mac?

Its provided in the /sys/class/net/${vif}/address file.

Olaf

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

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