How to Change MAC Address in Linux?

by Chinmoy Kanjilal | Translate | Print
Monday, 17th Aug 2009 | Share


Share How to Change MAC Address in Linux? on Twitter Share How to Change MAC Address in Linux? on Facebook Save How to Change MAC Address in Linux? To Delicious Favorites Stumble How to Change MAC Address in Linux? Share How to Change MAC Address in Linux? on Digg Get Instant Updates as RSS Feeds from Techie Buzz

Many times we do things over our network which gets us banned or suspended from the network. Common reasons might include massive torrent downloads, bypassing protections, erratic logins as multiple users etc. These situations are quite annoying.

Basically, in windows your identity on the network is your IP address, your computer name and your MAC address. For Linux it is just the IP address and the MAC address.

So all you need to do, is change your IP address, your MAC address and hop back in. The IP address can be changed from a GUI, but there is no GUI to change the MAC address. Here is an easy way to change your MAC address from the terminal in four easy steps.

  1. Key in sudo ifconfig eth0 Here eth0 is my ethernet network controller. This command displays the hardware information of your ethernet controller.
  2. Next, enter sudo ifconfig eth0 down,this command turns off your ethernet.
  3. Now, change your MAC address with sudo ifconfig eth0 hw ether AA:MA:CA:DD:RE:SS Here replace “AA:MA:CA:DD:RE:SS” with a valid mac address.
  4. Finally, turn back your ethernet on by entering sudo ifconfig eth0 up

That is all. You are back on the network.



Share

2 Responses so far | Share Your Opinions!

  1. Glass Beads
    August 17th, 2009 at 11:20 am #

    i dont know how to use linux and mac but, thanks for this info. Might experience some linux or mac someday so this is helpful

    Reply to this comment

  2. Chinmoy
    August 17th, 2009 at 4:00 pm #

    sure. The same can be done on windows as well if you need it.

    Reply to this comment

Leave a Comment

Note: We discourage users from using keywords in their names while posting comments, most of them get caught by spam, also it really would be more fruitful in knowing people who comment by their real name, rather than by using a name no one relates to. In future we reserve the right to delete comments from users using a name other than their own.

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>