[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] read mac in vif-bridge



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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.