LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-23-2016, 04:24 PM   #1
genogebot
Member
 
Registered: Jun 2010
Location: Brisbane, Australia
Distribution: Xubuntu 16.04.1 / Linux Mint 18 XFCE / Linux Mint 18 Mate / Ubuntu Server 16.04.1 / Lubuntu 16.04.1
Posts: 146

Rep: Reputation: 20
My BIOS mac address is writable - but how?


I have a desktop pc with a Gigabyte Z97X-SOC Force motherboard, and it has a Qualcomm Atheros Killer E2201 nic onboard.

I know the mac address is supposed to be locked in during manufacture, but for some reason mine is changeable. If I set a 'hwaddress' value in '/etc/network/interfaces', it is stored in the BIOS next time I boot. The folks at Gigabyte insisted this wasn't possible until I sent them BIOS info screen dumps showing different mac addresses, then they just admitted they had no idea how it was happening and gave up.

It did cause my Windows 7 Home Premium installation to choke and insist it needed to be reactivated every time the mac address changed, resulting in a weekly routine of phoning Microsoft for another activation code. Eventually I installed Windows 7 Ultimate and ran it without activation

For example, the original mac address is '74:d4:35:ea:07:41', so on one of my Linux installations '/etc/network/interfaces' is:
Code:
auto lo
iface lo inet loopback

allow-hotplug enp5s0
iface enp5s0 inet dhcp
    hwaddress ether 74:d4:35:ea:07:41
On a different Linux installation with a different hostname where I want a different ip address from my router's dhcp, I have generated a new mac address using an md5 algorithm based on the hostname and interface name:
Code:
auto lo
iface lo inet loopback

allow-hotplug enp5s0
iface enp5s0 inet dhcp
    hwaddress ether 02:75:77:0f:8d:1a
I've attached two screenshots from the BIOS info display showing the different mac addresses.

I'm not particularly concerned about it, I think it's pretty cool to be able to do this, I'm just curious about how this happens. How does a change to the mac address in '/etc/network/interfaces' get into the nic's firmware?

Click image for larger version

Name:	161019015001.jpg
Views:	120
Size:	133.2 KB
ID:	23356

Click image for larger version

Name:	161023204419.jpg
Views:	80
Size:	133.3 KB
ID:	23357

Last edited by genogebot; 10-24-2016 at 01:37 AM.
 
Old 10-26-2016, 04:28 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,973

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
I'll take a wild guess and say that that nic is a (loosely speaking) software solution. As such the traditional assumptions of bios interaction will not apply. I'll further assume that the driver interacts with the OS and has some write ability to the software. The bios reads the software much like it would do in a hardware burned nic.
 
Old 10-26-2016, 05:29 PM   #3
sneakyimp
Senior Member
 
Registered: Dec 2004
Posts: 1,056

Rep: Reputation: 78
I've noticed that my router (on which I installed a *nix-based firmware) has a setting that lets me arbitrarily specify an arbitrary MAC address to be used for network actions.
 
Old 10-26-2016, 05:36 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,973

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
Kind of the same idea I guess but maybe not the same mechanism. Things like clone mac on wan port or set is common on routers.
 
Old 10-26-2016, 10:35 PM   #5
genogebot
Member
 
Registered: Jun 2010
Location: Brisbane, Australia
Distribution: Xubuntu 16.04.1 / Linux Mint 18 XFCE / Linux Mint 18 Mate / Ubuntu Server 16.04.1 / Lubuntu 16.04.1
Posts: 146

Original Poster
Rep: Reputation: 20
Quote:
Originally Posted by jefro View Post
I'll take a wild guess and say that that nic is a (loosely speaking) software solution. As such the traditional assumptions of bios interaction will not apply. I'll further assume that the driver interacts with the OS and has some write ability to the software. The bios reads the software much like it would do in a hardware burned nic.
That's probably not far wrong, although from the response of people at Gigabyte I got the impression it wasn't supposed to do that. I did once see an oblique reference to some nic firmware that had a fallback function to get a mac address from the network when the hardware mac was corrupted/damaged/inaccessible. Maybe it's something like that, but I would have thought the Gigabyte techs would know what their own hardware was capable of. They seemed to be shocked about the situation
 
Old 10-27-2016, 06:38 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,973

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
"I would have thought the Gigabyte techs would know what their own hardware"

Call a help desk but we call it the no help desk. Very common in support.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how can i make a folder writable on mac? the3rdchain Linux - Newbie 1 06-29-2013 01:04 AM
how do I find what MAC address web pages see as my MAC address rob.rice General 20 05-29-2010 02:08 AM
Ethernet MAC Addresses database; MAC address-based processing cctualatin Linux - Newbie 1 04-14-2009 08:59 AM
how to get ip address, broadcast address, mac address of a machine sumeshstar Programming 2 03-12-2005 04:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration