Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 9160 - Method to change the mac address on a nic
Summary: Method to change the mac address on a nic
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: Normal enhancement (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-15 08:29 UTC by Kenneth Rawlings
Modified: 2004-09-02 11:03 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Example of what I would like to see changed. (net.eth0,3.83 KB, text/plain)
2002-10-15 08:31 UTC, Kenneth Rawlings
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kenneth Rawlings 2002-10-15 08:29:12 UTC
It would be a nice feature addition to be able to change the mac address on a
nic.  I have included a possible modification for allowing this.  You should see
that I am having the script change the mac address before assigning the ip. 
This is needed for those of us who need to have a specific mac assigned before
we negotiate a dhcp address with our provider.
Comment 1 Kenneth Rawlings 2002-10-15 08:31:31 UTC
Created attachment 4727 [details]
Example of what I would like to see changed.

Here is an example of what I would like to see changed in the networking
scripts.
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2002-10-17 17:48:33 UTC
Cant you change it in the same call to ifconfig that sets the ip ?
Comment 3 Kenneth Rawlings 2002-10-19 10:30:08 UTC
You can, but many cards don't allow you to change the hardware address.  This
gives bettter feedback if that is the case.
Comment 4 Martin Schlemmer (RETIRED) gentoo-dev 2002-10-19 23:41:08 UTC
Well, my opinion is that the user should know if his can or not.  That is
the whole idea behind iface_eth0="foo", and not useing stuff like:

IP=
SUBMASK=

etc .. so that you can add extra ifconfig commands if needed.  Gentoo's
rc-scripts is supposed to be lite, and easy to modify by user to suit
their needs .. that with CONFIG_PROTECT.  And net.eth0 is already too
loaded for my linking.
Comment 5 Charles Goodwin 2003-10-08 04:55:34 UTC
Basically, you want an app to change your mac address.

See here:
http://www.alobbs.com/modules.php?op=modload&name=macc&file=index

This bug should be marked invalid.
Comment 6 Kenneth Rawlings 2003-10-08 09:09:40 UTC
I think people that have been responding to this bug are missing the point.
 There are those of us who need to be able to change our MAC *before* we
ask for a dhcp address from our provider.  It's that simple.  Any other details
are peripheral to the problem.  I'm not saying my solution is the way to
do it.  What I am saying is that a solution needs to be found.  When my firewall/gateway
comes up, it would be nice if it could do so automatically without me having
to manually set the mac address and *then* get my dhcp address (although,
I don't have to do it manually, because I implemented these changes).  I
also believe that this should be a configuration issue, not a script hacking
issue.
Comment 7 Albert Liu 2004-04-22 19:49:09 UTC
The Kenneth Rawlings's script is a good resolution. I hope it will be patched to the next Gentoo release.
Comment 8 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2004-08-27 01:08:53 UTC
Please have a look at the newest net.eth0 from baselayout, it has this feature.
Comment 9 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-09-02 11:03:38 UTC
I'm closing this, as it was my macchanger patch that got into baselayout.