Hacking/Tools/Network/Changing Your MAC Address/Other systems

You can use a third-party utility to change the MAC of almost any Ethernet adapter.

Most consumer-grade routers allow for a user-specified MAC address to be given.

AIX:

Original MAC address:

entstat -d ent1 | grep "Hardware"

Hardware Address: 00:09:6b:be:f8:ed

Using alternate MAC address:

chdev -l ent1 -a use_alt_addr=yes -a alt_addr=0x123456789ABC

ent1 changed

entstat -d ent1 | grep "Hardware"

Hardware Address: 12:34:56:78:9a:bc

Returning original MAC address:

chdev -l ent1 -a use_alt_addr=no

ent1 changed

entstat -d ent1 | grep "Hardware"

Hardware Address: 00:09:6b:be:f8:ed


Under FreeBSD, the MAC address can be changed in a similar way to Linux:

ifconfig fxp0 ether 02:01:02:03:04:05

This can be done without needing to take the interface down and back up.


As of OpenBSD 3.8, the MAC address can be changed as follows:

ifconfig bge3 lladdr 02:01:02:03:04:05


As of version "I'm not sure" and at least 5.3, it can be done within the hostname file, for example /etc/hostname.bge3:

dhcp lladdr 02:01:02:03:04:05

or static:

inet 1.2.3.4 255.0.0.0 1.255.255.255 lladdr 02:01:02:03:04:05


Changing MAC address without root privileges

edit

There are a number of techniques for changing your MAC address without root privileges on Unix based systems (Linux, BSD, OSX, etc.). This can be done with such techniques as LD_PRELOAD or ptrace.