change mac address on ubuntu 10.04

There are multiple ways to change the mac address on ubuntu.

From Terminal:

  • type sudo ifconfig eth0 down hw ether your:mac:address
  • then sudo ifconfig eth0 up

Done. Now check your new mac address typing ifconfig

Another way:

setup macchanger from synaptic manager. Go to terminal and type
sudo macchanger -m <your:mac:address> <device>

Another way:

go terminal and type:
sudo gedit /etc/network/interfaces

from the last line add the following lines,
auto eth0
iface eth0 inet manual
hwaddress ether [your_mac_address]

now restart your network by typing,

<code>sudo /etc/init.d/networking restart</code>

Advertisements