954,202 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

MAC Address

Can we Change the MAC Address of an Ethernet Card in Linux 9 :?:

ydpraveen
Newbie Poster
1 post since Jul 2004
Reputation Points: 10
Solved Threads: 0
 

Hello,

You MIGHT be able to, but why would you want to?

Which Linux version? Mandrake? RedHat?

Christian

kc0arf
Posting Virtuoso
Team Colleague
1,937 posts since Mar 2004
Reputation Points: 121
Solved Threads: 57
 

sounds like someone is trying to avoid a ban for a gaming server.

99% of the time, its not possible on newer cards.

Zachery
The Geek Father
Team Colleague
894 posts since Nov 2003
Reputation Points: 96
Solved Threads: 21
 

You can change the MAC address with something like the following command:

ifconfig eth0 hw ether AA:FF:EE:00:00:00

TKS
Posting Pro in Training
470 posts since Jan 2004
Reputation Points: 108
Solved Threads: 18
 

Hey, why am I the only one who answered who isn't a supermod :)

TKS
Posting Pro in Training
470 posts since Jan 2004
Reputation Points: 108
Solved Threads: 18
 
Hey, why am I the only one who answered who isn't a supermod :)

Only because you posted before I did... :mrgreen:

"ifconfig eth0 hw ether AA:FF:EE:00:00:00"

Yes, that might very well work. The interface will probably have to be taken offline in order for that to work though, so before you try the above command, do the following:

ifdown eth0

Remember that the example "eth0" refers to your first or only Ethernet NIC; if you have 2 NICs and it's the address of the second that you want to change, it would be eth1 instead of eth0.

Also, a change implemented by the above command may not persist through a reboot; you have to take extra steps to make the new MAC "permanent". See the following for a bit more info: http://whoozoo.co.uk/mac-spoof-linux.htm

There are also utilities specific to the individual chipset used on a given NIC which can change the MAC as well. Regardless of how you try to make the change, the chipset and driver must support this ability,

*Note that ISPs often use your MAC address as part of the information which authenticates you as a valid customer. Depending on your network/Internet configuration, changing your MAC addy might break your connection to your ISP.

DMR
Wombat At Large
Team Colleague
7,229 posts since Dec 2003
Reputation Points: 221
Solved Threads: 370
 

Hi,

Wouldn't the MAC address on the Cable Modem / DSL device be the one tracked by the ISP? I know that on my systems here, there are various hops to get to the network. The ISP wouldn't care what NIC is in my Redhat box... they see the MAC on the cablemodem device.

Of course, the linux commands are not going to change the Cable Modem's information.

I have also thought of a reason why I would want to change a MAC address... so that I could have a wireless device filter for that MAC address.

Oh well.

Christian

kc0arf
Posting Virtuoso
Team Colleague
1,937 posts since Mar 2004
Reputation Points: 121
Solved Threads: 57
 
Hi, Wouldn't the MAC address on the Cable Modem / DSL device be the one tracked by the ISP? I know that on my systems here, there are various hops to get to the network. The ISP wouldn't care what NIC is in my Redhat box... they see the MAC on the cablemodem device.


Depending on your particular setup (and your ISP), the cable modemwill acquire the MAC addy of the attached device and pass that on to the ISP. That's the reason many broadband gateway routers have a "spoof this computer's MAC address" (or similar) option.

DMR
Wombat At Large
Team Colleague
7,229 posts since Dec 2003
Reputation Points: 221
Solved Threads: 370
 
I have also thought of a reason why I would want to change a MAC address... so that I could have a wireless device filter for that MAC address.


Yes. As wireless becomes more ubiquitous, that reason is becoming more common.

DMR
Wombat At Large
Team Colleague
7,229 posts since Dec 2003
Reputation Points: 221
Solved Threads: 370
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: