Friday, 4 October 2013

Change MAC address for your Ethernet adapter in Linux

Run the following commands from bash shell (yes you may need to cd to /etc first):
cd /etc
sudo vim rc.local
Add the following lines before "exit 0" (change the MAC address as needed):
/sbin/ifconfig eth2 down
/sbin/ifconfig eth2 hw ether 00:00:00:00:00:00
/sbin/ifconfig eth2 up
Restart your system and it should be OK.

If you want to temporarily change your MAC address, simply run the 3 lines of commands at bash shell prompt.


  1. It is amazing to know that just these simple steps can easily
    change the MAC Address for your Ethernet.

    Silvester Norman

    Change MAC Address