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.

You should see the line for your network interface, which is usually eth0. If you have dhcp enabled, it will look like this:

Just add another line below it to make it look something like this:

Obviously you would want to choose something else for the MAC address, but it needs to be in the same format.

You will need to restart networking or reboot to take effect.