Change MAC address in linux / ubuntu

Linux temporarily change your mac address.

Should be universal for all distros of linux.

find the name of the interface you want to change, usually it is eth0, but just in case type in



The network adaptor on my computer is called eth0.
The mac address is next to HWaddr. In this case my mac address is 66:55:44:33:22:11.

First step to change it is turn off the network adaptor like this (assuming your device is eth0. If it isn’t change it to what your computer showed in the last step) You may need to provide your password.


Enter the following command replacing eth0 with your network card name, and replace 00:11:22:33:44:55 with the mac address you choose. Remember a mac address is 12 digits consisting of 0 through 9 and A through F.


Assuming no errors showed up, the next step is to turn the network adaptor back on. The process is almost identical to turning it off.


Type in ifconfig to see if your changes stuck.


Note this will only save your changes until you reboot. In the future I will show two other methods to make the changes more persistent.

resources :


About spuder
spuder is a "super computer" support engineer by day, and tinkerer / hobbyist by night.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: