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

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



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®.