From: Ian Campbell <Ian.Campbell@citrix.com>
To: Olaf Hering <olaf@aepfle.de>
Cc: "Xen-devel@lists.xensource.com" <Xen-devel@lists.xensource.com>,
Farshid Abediny <farshidabediny@gmail.com>
Subject: Re: read mac in vif-bridge
Date: Sat, 3 Sep 2011 13:23:19 +0100 [thread overview]
Message-ID: <1315052599.5182.2.camel@dagon.hellion.org.uk> (raw)
In-Reply-To: <20110903121238.GA18113@aepfle.de>
On Sat, 2011-09-03 at 13:12 +0100, Olaf Hering wrote:
> On Sat, Sep 03, Farshid Abediny wrote:
>
> > Hello,
> > yes it is,
> > and also i am using solusvm (solusvm.com)
> > can you guide me how can i find mac ?
>
> Please keep Xen-devel@lists.xensource.com in cc list.
>
> Please post the output from your systems.
> 'ip a' and 'head /sys/class/net/*/address ' from dom0 and from the domU.
The mac address of a vifX.Y device in dom0 is almost always
fe:ff:ff:ff:ff. This is the largest valid MAC address and is chosen
because the bridge will take on the lowest MAC of all it's ports under
some circumstances so using fe:..... ensures it is never the MAC of a
VIF.
Presumably the original poster wants the MAC of the ethX device within
the guest?
/etc/xen/scripts/vif-nat has an example of how to do this:
# grep mac /etc/xen/scripts/vif*
/etc/xen/scripts/vif-nat: mac=$(xenstore_read "$XENBUS_PATH/mac")
Ian.
prev parent reply other threads:[~2011-09-03 12: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
[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 [this message]
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=1315052599.5182.2.camel@dagon.hellion.org.uk \
--to=ian.campbell@citrix.com \
--cc=Xen-devel@lists.xensource.com \
--cc=farshidabediny@gmail.com \
--cc=olaf@aepfle.de \
/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).