How to change MAC address in Debian 6.0 Linux

First of all we have to stop networking. /etc/network/interfaces file and under eth0 (or other network interface) add following line:

hwaddress ether your_new_mac_address

After that you can start networking again.

Example:

sudo /etc/init.d/networking stop  

sudo vi /etc/network/interfaces

#now add:  hwaddress ether 01:02:03:04:05:06 

sudo /etc/init.d/networking start

2 thoughts on “How to change MAC address in Debian 6.0 Linux

  1. this isa really shit post – you should say if this change is permanent or only temporary until next reboot

Leave a comment