How to find *hardware* mac addresses on bonded interfaces?
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How to find *hardware* mac addresses on bonded interfaces?
Does anyone know how to display the true hardware MAC address for interfaces involved in bonding? ifconfig shows the the single mac address involved in all interfaces.
Don't have a bonded setup to test here, but 'lshw' shows the MAC address, and I think it gets this info from the HW itself rather than by asking the kernel so it should be the real HW MAC address...
thanks for the info. due to some issues we had to revert back to no bonding, so I retrieved all the macs. I'll have to grab lshw, though I did find lshal useful on another box.
If you're still curious, a "cat /proc/net/bonding/bondX" where bondX is replace with the name of your bonded interface (ie., bond0) will show all of the physical interfaces and their actual hardware address.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.