You are not logged in.

#26 2009-01-31 07:57:22

kras1001
Member
From: Bulgaria
Registered: 2008-12-18
Posts: 39

Re: Any ways to change the MAC address permanently?

RedShift wrote:

*edit 2*What's the best way to change the mac address at boot before the network goes up on Arch? A line in /etc/rc.local?

Do something like:

eth0mac="eth0 hw ether 00:01:02:03..."
eth0="eth0 192.168.0.1 netmask 255.255.255.0"
INTERFACES=(eth0mac eth0)

Thanks this help me. Work fine.

Offline

#27 2011-01-30 17:28:19

Flavious
Member
Registered: 2007-11-24
Posts: 49

Re: Any ways to change the MAC address permanently?

I've faced the same problem, none of your solution is working (however starting without networking and doing it manually does).

So here is the right solution:

macspoof() {
        ifconfig eth0 hw ether 00:01:CB:02:34:97
}
add_hook multi_start macspoof

put this in a file /etc/rc.d/functions.d/macspoof

Someone who knows shell scripting better than me, please improve this and repost. The documentation is over here.

Thanks.

Last edited by Flavious (2011-01-30 17:29:08)

Offline

#28 2011-01-30 18:25:37

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: Any ways to change the MAC address permanently?

Before someone parrots the "no necrobumping" rule. I want to point out that this is clearly a contribution to the thread. Anyone who stumbles on this while looking for a solution will now find it.

Thanks, Flavious.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

Board footer

Powered by FluxBB