
Where XX:XX:XX:XX:XX:XX is the new MAC id that you want to change.įinally, to revert the MAC address to its original hardware value, run the following command: macchanger -p enp0s31f6 To change the MAC address to a specific value, specify any custom MAC address using command: macchanger -mac=XX:XX:XX:XX:XX:XX You will now see that MAC has been spoofed. Now, to assign any random MAC address to this network card, use: sudo macchanger -r enp0s31f6Īfter changing the MAC id, verify it using command: ip addr How to Use Macchanger to change MAC addressĭo you remember your network interface name? You got it in the Step 1 earlier. So, choose No (by pressing tab key) and hit Enter key to continue. I recommend not to run it automatically, unless you really need to change your MAC address every time. Now you may proceed to changing the MAC address. You may want to note it down on a secure place to revert to this original MAC address later on. Link/ether 42:02:07:8f:a7:38 brd ff:ff:ff:ff:ff:ffĪs you can see, in this case, my network interface is called enp0s31f6 and its MAC address is 38:42:f8:8b:a7:68. Link/ether 38:42:f8:8b:a7:68 brd ff:ff:ff:ff:ff:ffĤ: docker0: mtu 1500 qdisc noqueue state DOWN mode DEFAULT group default Link/ether 94:c6:f8:a7:d7:30 brd ff:ff:ff:ff:ff:ffģ: enp0s31f6: mtu 1500 qdisc noqueue state UP mode DORMANT group default qlen 1000 In the output, you’ll see several details along with the MAC address: 1: lo: mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000 Use this command to get the network interface details: ip link show Let’s find out some details about the network card in Linux. Let’s go through each step: Step 1: Find your MAC address and network interface

I am going to show the steps for changing MAC address (also called spoofing/faking MAC address).
