xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Olaf Hering <olaf@aepfle.de>
To: "Pasi Kärkkäinen" <pasik@iki.fi>
Cc: Farshid Hajizeinalabedin <fz9551@gmail.com>,
	xen-devel@lists.xensource.com
Subject: Re: read mac in vif-bridge
Date: Tue, 30 Aug 2011 15:23:16 +0200	[thread overview]
Message-ID: <20110830132316.GA19098@aepfle.de> (raw)
In-Reply-To: <20110830131806.GO32373@reaktio.net>

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

  reply	other threads:[~2011-08-30 13:23 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-30 10:44 read mac in vif-bridge Farshid Hajizeinalabedin
2011-08-30 13:18 ` Pasi Kärkkäinen
2011-08-30 13:23   ` Olaf Hering [this message]
     [not found]     ` <CAFJMEGRtZhwK3s1VPwiEoJFL2B1Ysgm5CQx6zTzqk3eOe0APxw@mail.gmail.com>
2011-09-03 11:58       ` Olaf Hering
     [not found]         ` <CAFJMEGTsShXCaXuOWoGyJfd7s+g1Nmva_zz1ycDN2e6C7C-nrw@mail.gmail.com>
2011-09-03 12:12           ` Olaf Hering
2011-09-03 12:23             ` Ian Campbell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110830132316.GA19098@aepfle.de \
    --to=olaf@aepfle.de \
    --cc=fz9551@gmail.com \
    --cc=pasik@iki.fi \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).