From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: read mac in vif-bridge Date: Sat, 3 Sep 2011 13:23:19 +0100 Message-ID: <1315052599.5182.2.camel@dagon.hellion.org.uk> References: <20110830131806.GO32373@reaktio.net> <20110830132316.GA19098@aepfle.de> <20110903115842.GA11981@aepfle.de> <20110903121238.GA18113@aepfle.de> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20110903121238.GA18113@aepfle.de> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Olaf Hering Cc: "Xen-devel@lists.xensource.com" , Farshid Abediny List-Id: xen-devel@lists.xenproject.org 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.