Netcard Driver For Mac

Active2 years, 6 months ago

The MAC address for all installed network adapters will be displayed in hexadecimal format in the 'Physical Address' column, along with other information such as the adapter name and type of connection. MAC addresses contain only the letters A-F in combination with numbers. Any other character aside from A-F is a number. Download Network Card drivers, firmware, bios, tools, utilities. Download Network Card drivers, firmware, bios, tools, utilities.

Os:REDHAT LINUX Linux manage: 2.6.18.8-1 #

Is this possible to read MAC address form NIC directly ? I have below code but it just read from above layer but not the card itself !!!

I'm trying to figure out how to find the original MAC address of an ethernet NIC on my linux box. I understand how to find the current MAC address using ifconfig, but if the address has been changed, say by using 'ifconfig eth0 hw ether uu:vv:ww:yy:xx:zz',or I set 'permanent' it using vi /etc/sysconfig/network-scripts/ifcfg-eth0.this file..I can successfully UP it in REBOOT also. how do I find the original? There must be a way to find it, because it is still burned permanently into the card, but I can't find a tool to read the burned in address.is there any utility for it or command for it?I suppose to write C code for it. but don't know how to do this in above case.

** below code gives my current MAC but not original MAC

Jatin Bodarya
Jatin BodaryaJatin Bodarya
5582 gold badges11 silver badges26 bronze badges

6 Answers

Certainly in ethtool 3.1 you can just print the address:ethtool -P --show-permaddr DEVNAME Show permanent hardware address

e.g.

Permanent address: 94:de:80:6a:21:25

Jason MorganJason Morgan

Try cat /sys/class/net/eth0/address or cat /sys/class/net/em1/address if using Fedora. It should work.

The original answer is here: Notes of a Systems Admin

tver3305tver3305
5,6712 gold badges16 silver badges21 bronze badges

The only way to find the original MAC address is to use the same method the network card driver does - unfortunately, I don't believe there is a generic way to tell the driver to provide it's MAC address 'as provided by the hardware'. Of course, there are cases where there isn't a hardware network card for that particular interface - virtual network drivers for virtualization and when using bridges and software switches for example.

And of course, the hardware may be such that you can't actually read the 'original' MAC address when it has been overwritten by software, because there is only one set of registers for the MAC address itself.

I had a quick look at the pcnet32.c drivers (because it's one of the models of network card that I have a rough idea how it works and where the different registers are, etc, so I can see what it does). As far as I can see, it supports no method of actually asking 'what is your PROM ethernet address' - the MAC address is read out during the 'probe1' section of the module initialization, and stored away. No further access to those hardware registers is made.

• ISO8859_15 charset support. • Enhanced work with metadata schemes when working with database via NONE charset. Firebird database odbc driver for mac • Advanced testing allowed detection and elimination of errors.

Mats PeterssonMats Petersson
112k12 gold badges103 silver badges181 bronze badges

Well, the old ethernet address remains in the first bytes of the card eeprom (at least for some types of cards), so it is possible to extract it using ethtool

where tt:uu:ww:xx:yy:zz is old mac address

begemotv2718begemotv2718

This may not be the programmatic way, but why not search dmesg. All of my machines' NICs spit out the MAC address at detection time.

Try something like this:

Different NICs display the MAC address differently, but the log will always contain the kernel given name of the adapter (in most cases eth0 or wlan0).

Youssef Bouhjira
1,0421 gold badge16 silver badges30 bronze badges
user3462738user3462738

This command lists all the ethernet devices and original HW addresses.

Canon Printer Driver For Mac

R4C3RR4C3R

Xbox One Controller Driver For Mac

Not the answer you're looking for? Browse other questions tagged linuxsocketslinux-kernellinux-device-drivermac-address or ask your own question.