From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olaf Hering Subject: Re: read mac in vif-bridge Date: Sat, 3 Sep 2011 13:58:42 +0200 Message-ID: <20110903115842.GA11981@aepfle.de> References: <20110830131806.GO32373@reaktio.net> <20110830132316.GA19098@aepfle.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Farshid Abediny , Xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org 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 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 > >