Find MAC addresses in /proc or somewhere despite bonding device?
I'm still searching for a more "official" explanation, but according to this blog, the file /proc/net/bonding/${bonding name}
will provide the actual mac address for each NIC in the bond (eth0, eth1, etc..), so that might be more useful.
Hope this will help!
On RHEL/CentOS 6:
# ethtool -P <if>
Permanent address: 00:11:22:33:44:55
You can get this from /sys
instead of /proc
. For example:
$ cat /sys/class/net/eth0/address
0a:58:ac:16:05:13
All the interfaces available are listed under net
:
$ ls /sys/class/net/
eth0 lo