How to Change a Network Device’s MAC Address

root@ubuntu:~# ifconfig -a wlan0
wlan0     Link encap:Ethernet  HWaddr FF:FF:FF:FF:FF:FF
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:66769 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9225 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:22089814 (22.0 MB)  TX bytes:1509599 (1.5 MB)
root@ubuntu:~# ifconfig wlan0 down
root@ubuntu:~# ifconfig wlan0 hw ether AA:AA:AA:AA:AA:AA
root@ubuntu:~# ifconfig wlan0 up
root@ubuntu:~# ifconfig -a wlan0
wlan0     Link encap:Ethernet  HWaddr AA:AA:AA:AA:AA:AA
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:66977 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9399 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:22181538 (22.1 MB)  TX bytes:1534290 (1.5 MB)

References

Leave a Reply

Your email address will not be published. Required fields are marked *

*