* read mac in vif-bridge @ 2011-08-30 10:44 Farshid Hajizeinalabedin 2011-08-30 13:18 ` Pasi Kärkkäinen 0 siblings, 1 reply; 6+ messages in thread From: Farshid Hajizeinalabedin @ 2011-08-30 10:44 UTC (permalink / raw) To: xen-devel [-- Attachment #1.1: Type: text/plain, Size: 156 bytes --] 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, [-- Attachment #1.2: Type: text/html, Size: 189 bytes --] [-- Attachment #2: Type: text/plain, Size: 138 bytes --] _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: read mac in vif-bridge 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 0 siblings, 1 reply; 6+ messages in thread From: Pasi Kärkkäinen @ 2011-08-30 13:18 UTC (permalink / raw) To: Farshid Hajizeinalabedin; +Cc: xen-devel 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? -- Pasi ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: read mac in vif-bridge 2011-08-30 13:18 ` Pasi Kärkkäinen @ 2011-08-30 13:23 ` Olaf Hering [not found] ` <CAFJMEGRtZhwK3s1VPwiEoJFL2B1Ysgm5CQx6zTzqk3eOe0APxw@mail.gmail.com> 0 siblings, 1 reply; 6+ messages in thread From: Olaf Hering @ 2011-08-30 13:23 UTC (permalink / raw) To: Pasi Kärkkäinen; +Cc: Farshid Hajizeinalabedin, xen-devel 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 ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <CAFJMEGRtZhwK3s1VPwiEoJFL2B1Ysgm5CQx6zTzqk3eOe0APxw@mail.gmail.com>]
* Re: read mac in vif-bridge [not found] ` <CAFJMEGRtZhwK3s1VPwiEoJFL2B1Ysgm5CQx6zTzqk3eOe0APxw@mail.gmail.com> @ 2011-09-03 11:58 ` Olaf Hering [not found] ` <CAFJMEGTsShXCaXuOWoGyJfd7s+g1Nmva_zz1ycDN2e6C7C-nrw@mail.gmail.com> 0 siblings, 1 reply; 6+ messages in thread From: Olaf Hering @ 2011-09-03 11:58 UTC (permalink / raw) To: Farshid Abediny, Xen-devel 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@aepfle.de> 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 > > ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <CAFJMEGTsShXCaXuOWoGyJfd7s+g1Nmva_zz1ycDN2e6C7C-nrw@mail.gmail.com>]
* Re: read mac in vif-bridge [not found] ` <CAFJMEGTsShXCaXuOWoGyJfd7s+g1Nmva_zz1ycDN2e6C7C-nrw@mail.gmail.com> @ 2011-09-03 12:12 ` Olaf Hering 2011-09-03 12:23 ` Ian Campbell 0 siblings, 1 reply; 6+ messages in thread From: Olaf Hering @ 2011-09-03 12:12 UTC (permalink / raw) To: Farshid Abediny, Xen-devel 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. Olaf ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: read mac in vif-bridge 2011-09-03 12:12 ` Olaf Hering @ 2011-09-03 12:23 ` Ian Campbell 0 siblings, 0 replies; 6+ messages in thread From: Ian Campbell @ 2011-09-03 12:23 UTC (permalink / raw) To: Olaf Hering; +Cc: Xen-devel@lists.xensource.com, Farshid Abediny 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. ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2011-09-03 12:23 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).