How do you change MAC Address?


Ever wanted to get a permanent solution for your mac address change? Most of you who use internet via LAN has this problem of setting the mac address from the commandline. You do it every single time 3/4 console commands to get the net ready to use in your Ubuntu. Now go make a file(macset) at your home with any texteditor where u’ll have the following lines. notice 22:11:2F:3B:C5:54 is the Mac address of your LAN. It will vary upon your ISP/local provider. Just write down your own mac there. now do
sudo chmod 0777 macset

on the file and when you turn on your pc

you just type

sudo ./macset

to run your file’s commands as shell script, et voila!🙂

ifconfig eth0 down
ifconfig eth0 hw ether 22:11:2F:3B:C5:54
ifconfig eth0 up
/etc/init.d/networking restart

You can now check if your MAC has been set properly by applying the follwing command at command line

ifconfig | grep HWaddr

Also read this post

4 thoughts on “How do you change MAC Address?

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