11

I am currently using ubuntu 13.04 along With windows 7. But I want to change my MAC address of pc. Is there any way to change it.

0

3 Answers 3

22

In a command line (terminal), run:

  • sudo ifconfig eth0 down
  • sudo ifconfig eth0 hw ether 00:11:22:33:44:55
  • sudo ifconfig eth0 up

That's sufficient for the current user's session. However, in order for the changes to persist, you must also edit /etc/network/interfaces and create or modify an entry for the interface. For example:

iface eth0 inet dhcp
     hwaddress ether 08:00:00:00:00:01

Source: http://blog.sleeplessbeastie.eu/2013/01/11/how-to-change-the-mac-address-of-an-ethernet-interface/

2
  • 1
    you should mention that we should use sudo before all those command Nov 27, 2014 at 10:01
  • Old post but thanks. For some reason after a power outage my mac address was lost. Was able to get it from a log and set it this way - yah!
    – Josh Morel
    Apr 21, 2017 at 0:41
9

You can install macchanger

sudo apt-get install macchanger 
macchanger --mac=01:23:45:67:89:AB eth1
7

In Ubuntu you can clone a Mac address in the network settings.

Click on the network icon in the top bar and select Edit connections. Select your current network and hit Edit. In the Ethernet tab you should see your actual device MAC and a field to enter the MAC you want to clone.

Not the answer you're looking for? Browse other questions tagged or ask your own question.