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: Farshid Abediny <farshidabediny@xxxxxxxxx>, Xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] read mac in vif-bridge
From: Olaf Hering <olaf@xxxxxxxxx>
Date: Sat, 3 Sep 2011 13:58:42 +0200
Cc:
Delivery-date: Sat, 03 Sep 2011 05:00:08 -0700
Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; t=1315051139; l=803; s=domk; d=aepfle.de; h=In-Reply-To:Content-Transfer-Encoding:Content-Type:MIME-Version: References:Subject:To:From:Date:X-RZG-CLASS-ID:X-RZG-AUTH; bh=t7MrY+v0TVIplgLj1ADefduyE+w=; b=DMPRJtX6OYLEk1fXh1sKUR2g5DfdIoMwCw5L4yOM36TvA/FuavfU1LwpjiXzJhCBHJI e9LZd8Squ83mjTnGRAhTdZWkgZwof8Docmy0QusN1weMgl/Vj4bLOcJH2Dnv+DanS3suf QSF2ByKyvWSa5jUd6dFXh4zrUz0yLMVK0b4=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <CAFJMEGRtZhwK3s1VPwiEoJFL2B1Ysgm5CQx6zTzqk3eOe0APxw@xxxxxxxxxxxxxx>
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> <20110830132316.GA19098@xxxxxxxxx> <CAFJMEGRtZhwK3s1VPwiEoJFL2B1Ysgm5CQx6zTzqk3eOe0APxw@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.21.rev5535 (2011-07-01)
On Sat, Sep 03, Farshid Abediny wrote:

> Hello Olaf,
> but in that file did not put correct mac it is like : e:ff:ff:ff:ff:ff

Does 'ip a' or 'ifconfig -a' show a different MAC address for your
interface?

Olaf

> On Tue, Aug 30, 2011 at 5:53 PM, Olaf Hering <olaf@xxxxxxxxx> wrote:
> 
>     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>