How To Change mac address on linux

Published on: Jun 13, 2015 @ 07:41 by Matthew Knight

In some situations you need to fake / change / spoof a MAC address of your network interface. Change mac address on linux with macchanger With this tool you can change your mac address of any Ethernet network device wired or wireless.

My original mac address:

# ifconfig wlan0 ifconfig wlan0 Link encap:Ethernet HWaddr 28:20:b6:44:7c:24 inet addr:192.168.0.102 Bcast:192.168.0.255 Mask:255.255.255.0 inet6 addr: fe80::da50:e6ff:fe84:6c74/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:87778 errors:0 dropped:351 overruns:0 frame:0 TX packets:71430 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:81566592 (77.7 MiB) TX bytes:37284689 (35.5 MiB) Turn off your wireless interface: ifconfig wlan0 down macchanger example for spoofing: # macchanger -m b2:aa:0e:56:ed:f7 wlan0 Current MAC: 28:20:b6:44:7c:24 (unknown) Faked MAC: b2:aa:0e:56:ed:f7 (unknown)

Enable wlan0 wireless interface and check new MAC address:

ifconfig wlan0 up Link encap:Ethernet HWaddr b2:aa:0e:56:ed:f7 inet addr:192.168.0.102 Bcast:192.168.0.255 Mask:255.255.255.0 inet6 addr: fe80::da50:e6ff:fe84:6c74/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:87778 errors:0 dropped:351 overruns:0 frame:0 TX packets:71430 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:81566592 (77.7 MiB) TX bytes:37284689 (35.5 MiB) Looking for a macchanger download? It comes already installed on Backtrack and Kali Linux.

Last edited by Matthew Knight on July 15, 2015 at 1:45 am