7

Is there any way to change MAC address via Terminal ?And of course any command for this job ?

pyprism
  • 377
  • 1
  • 7
  • 16

1 Answers1

13

Easiest way to change mac address on nic is:

sudo ifconfig eth0 down
sudo ifconfig eth0 hw ether  xx:xx:xx:xx:xx:xx
sudo ifconfig eth0 up

Where xx:xx:xx:xx:xx:xx represent mac address

For wlan

sudo ifconfig wlan0 down
sudo ifconfig wlan0 hw ether  xx:xx:xx:xx:xx:xx
sudo ifconfig wlan0 up
2707974
  • 10,553
  • 6
  • 33
  • 45
  • --- can you have a look at this persons issue and see if you help the guy --- http://askubuntu.com/questions/439429/my-machine-hangs-up-on-networking-restart?noredirect=1#comment573648_439429 --- thanks – Tasos Mar 26 '14 at 13:03
  • Ubuntu no longer has ifconfig installed by default. Not sure why this question doesn't allow updates. See https://askubuntu.com/questions/81648/how-do-i-change-spoof-my-mac-address-and-easily-switch-between-multiple-ones/1258805#1258805 – ekeyser Jul 13 '20 at 19:50