Changing MAC address in Ubuntu 9.04

To change your current or existing MAC address in ubuntu 9.04 just follow the follwing steps.... hope yours will be changed..

1. Open The terminal [Application-->Accessories-->Terminal]
2. Write the quoted code or copy and paste it in terminal [without the "" symbols]
"sudo gedit /etc/init.d/bootmisc.sh"
give sudo password when prompted.
3. A file will be opened. In that file after the last line write the following codes or paste it.

killall dhclient
killall dhclient3
ifconfig eth0 down
ifconfig eth0 hw ether 001CC019A888
ifconfig eth0 up
/sbin/dhclient
/sbin/dhclient3

4. Now save the file and restart your machine.

You are done.

3 comments:

  1. Thank you man! Don't know where you get it, but works like a charm!!!

    ReplyDelete
  2. How about changing the MAC on Wlan0? How do you get it to
    change Wmaster0?

    ReplyDelete
  3. you could specify that you could type the commands one at a time, or make a "change mac.sh" script file or something. It doesn't need to happen after a restart.

    ReplyDelete