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". ![]() Memcpy(mac, ifr.ifr_hwaddr.sa_data, IFHWADDRLEN) #include /* for the glibc version number */ ** below code gives my current MAC but not original MAC #include /* Standard I/O */ but don't know how to do this in above case. ![]() ![]() Is there any utility for it or command for it? 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. '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. I understand how to find the current MAC address using ifconfig, but if the address has been changed, say by using I'm trying to figure out how to find the original MAC address of an ethernet NIC on my linux box. 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 !!! ![]() Os:REDHAT LINUX Linux manage: 2.6.18.8-1 #
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |