To change this setting, we’ll need to edit the /etc/network/interfaces file. You can choose to use a different editor if you’d like.
sudo gedit /etc/network/interfacesYou should see the line for your network interface, which is usually eth0. If you have dhcp enabled, it will look like this:
auto eth0Just add another line below it to make it look something like this:
iface eth0 inet dhcp
auto eth0Obviously you would want to choose something else for the MAC address, but it needs to be in the same format.
iface eth0 inet dhcp
hwaddress ether 01:02:03:04:05:06
sudo /etc/init.d/networking restartYou will need to restart networking or reboot to take effect.