Home Blog Archive Software Linux: Mac address change - how to

Linux: Mac address change - how to

  • Oct 30, 2025
  • 628
  • 0

You want to change the MAC address of your network card, it works also under Linux. We will show you how to do it.

Step 1: In Linux, log in as Root

Note: In this practical tip we will use the Linux Distribution Ubuntu.
  1. Press simultaneously the keys [Ctrl] + [Alt] + [T] to open the Terminal.
  2. Enter the command "sudo passwd root" and confirm with the [Enter] key.
  3. Type in your user password, as well as the new, freely selectable Root password.
  4. You can then log in via the command "su root" as the Administrator in the Terminal.
Linux: log in As Root

Step 2: MAC address in Linux to change

Note: Use only Numbers between 0 and 9 and letters from A to F when you select a new MAC address.
  1. You can close the Terminal according to the above instructions, open it again and log in with "su root" and the Root password.
  2. On the command "ifconfig eth0" you will see the current MAC address. Make a note of this. A second network card in the PC, type "ifconfig eth1".
  3. Now enter the command "ifconfig eth0 down" will disable the network card. Is the only way to Change the MAC-address is possible.
  4. With "ifconfig eth0 hw ether XXX" you can now change the MAC address. You put for "XXX" any MAC address such as B3:17:A1:0C:34:26.
  5. Then, you can turn on the network card via the command "ifconfig eth0 up" again and use.
Linux: change MAC address
In the next practical tip we show you how to Ubuntu-programs on the Terminal to install.

YOU MAY ALSO LIKE

0 COMMENTS

LEAVE A COMMENT

Human?
1 + 3 =