ifconfig and dmesg| grep eth report different mac
like the headline states I have several different nics on the system and would like to figure out the mac address for each so:
ifconfig eth0 gives me the mac for interface 0. But when i do dmesg| grep -i eth0 I get a different mac address reported for the interface. So basically I'm getting inconsistent information. Which output should I trust or do I need to take extra steps to make sure. thanks |
The mac address identify a physical device, not an interface. Interface names can change: though they be usually allocated by the kernel at start up in the order it discovers the devices, you can change it through udev rules, for exemple to make sure you keep the same interface name for the same device.
Here is an example: Code:
bash-3.1# dmesg|grep eth0 |
All times are GMT -5. The time now is 09:45 AM. |