How to change your MAC address at boot?
We need to edit the /etc/network/interfaces to change the MAC address of the network card before it turns on.
We do this using the pre-up command.
What the pre-up command does is it runs the command before the network card turns on and connects, this means that you will always have that MAC address.
First of all we need to be root then run
vi /etc/network/interfacesNote: Advised to make backup i.e. cp interfaces interfaces.bak
You should get something like this
auto lo iface lo inet loopback auto eth0 iface eth0 inet dhcp
We need to add
pre-up ifconfig eth0 hw ether 00:00:00:00:00:01
To the end of the file.
Now reboot and check your MAC address and it should be changed.