
Now, run the following command to enable the service: Sudo vim paste the following text inside the file: īindsTo=sys-subsystem-net-devices-%i.deviceĪfter=sys-subsystem-net-devices-%i.device If you want to assign a particular MAC address in Linux then run the following command by specifying the MAC address.Ĭreate a systemd file so that you can get a new MAC address each time you boot into the system.

Run the macchanger tool with the following command to change the MAC address permanently: Run the following command to see the current MAC address of the network interface: Method 1: Change the MAC Address In Linux Permanentlyįirst, run the following command to list all the network devices in Linux and you also need to note down the interface name using the following command: We will show you two methods to change the MAC address in Linux-based operating systems. Run the following command to install macchanger and net-tools packages.įor Arch-based systems, use the following command: We need to install tools to change MAC addresses in Linux.

In this Linux tutorial post, we will show you the step-by-step guide to changing MAC address in Linux based operating system.
