Tags

, , ,


Firstly we’ve to know what the network interface that we’ll change the mac address.
 

Use may use `iwconfig` instead.
 

For example we’ll change our ethernet interface (eth0)

sudo nano /etc/network/interfaces
 

Find the following statements:
 

auto eth0

iface eth0 inet dhcp


 

and add the hwaddress line, So our new configuration should like this:
 

auto eth0

iface eth0 inet dhcp

hwaddress ether 01:02:03:04:05:06

reboot or restart the network service

sudo /etc/init.d/networking restart