How to permanently change a MAC address using ethtool

Changing the MAC address of a network interface can be a common task if you either change addresses for privacy reasons or if you're performing security assessments. If you're using a Linux-based operating system, this can be done using one of the following commands: ifconfig eth0 hw ether xx:xx:xx:xx:xx:xx macchanger-ng --mac xx:xx:xx:xx:xx:xx eth0 ip link set eth0 address xx:xx:xx:xx:xx:xx While these changes are only temporary, it's also possible to instruct the operating system to set the MAC address straight after booting, for example by modifying files like /etc/network/interfaces. … »