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

ifconfig

wpid-vmwarefusion1-2011-01-6-22-05.png

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.

wpid-vmwarefusion-2011-01-6-22-05.png

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.

wpid-1____vmwarefusion-2011-01-6-22-05.png

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.

wpid-2____vmwarefusion-2011-01-6-22-05.png

Type in ifconfig to see if your changes stuck.

wpid-3____vmwarefusion-2011-01-6-22-05.png

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 : http://ubuntuforums.org/showthread.php?t=94891

Advertisements

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:

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s

%d bloggers like this: