Top MAC Spoofing Tools and Commands (2027): Ethical Hacking and Network Privacy Guide

Discover the best MAC spoofing tools in 2026 with real command examples. Learn how to spoof MAC addresses in Linux and Windows using macchanger, Technitium, SpoofMAC, and more. Perfect for ethical hackers, cybersecurity students, and network engineers.

Jul 03, 2025 - 10:50
Updated: 
110.7k

Ethical Hacking in Cybersecurity & Ethical Hacking · Commands & reference

Network Security

Top MAC Spoofing Tools and Commands (2027): Ethical Hacking and Network Privacy Guide

Quick answer: On Linux, change a MAC address with ip link set dev eth0 address 02:11:22:33:44:55, macchanger, or NetworkManager's cloned-mac-address setting for a permanent change. On Windows, use the adapter's "Network Address" property, PowerShell Set-NetAdapter -MacAddress, or Technitium MAC Address Changer. On macOS, use ifconfig or the built-in private Wi-Fi address. Use these only on your own devices or authorised tests.

Key takeaways

  • Pick a valid address before changing it: a locally administered MAC such as 02:11:22:33:44:55 avoids clashing with real manufacturer ranges.
  • Changes made with ip link or macchanger disappear after reboot, so use NetworkManager's cloned-mac-address setting when you need it to persist.
  • Practise spoofing only on your own devices or an authorised lab, and keep the original address noted so you can undo the change.

Changing a MAC address is a routine task for privacy, network troubleshooting, lab work and authorised testing of MAC-based controls. This page lists the tools that still work in 2026, the exact commands for each operating system, how to make a change permanent or undo it, and how to fix the errors people usually hit.

If you want the concepts first (how spoofing is abused, how to detect it and how to prevent it), read MAC spoofing: how it works, real risks and prevention.

MAC address tools at a glance

ToolPlatformTypePersists after reboot?Status in 2026
ip link (iproute2)LinuxBuilt-in commandNoStandard, recommended
NetworkManager (nmcli)Linux desktopsBuilt-in settingYes, per connectionRecommended for persistent or random MACs
macchangerLinuxCLI toolNoStill packaged in Kali, Debian and Ubuntu; old but works
Adapter properties / Set-NetAdapterWindowsBuilt-inYesRecommended
Random hardware addressesWindows 10/11Built-in Wi-Fi settingYesRecommended for Wi-Fi privacy
Technitium MAC Address ChangerWindowsFree GUIYesConvenient GUI option
ifconfig / private Wi-Fi addressmacOSBuilt-inNo (ifconfig) / Yes (setting)ifconfig may fail on some Wi-Fi hardware
SpoofMACmacOS, Linux, WindowsPython scriptNoUnmaintained; prefer built-in tools
SMACWindowsCommercial GUIYesLegacy; not needed on current Windows

Before you start: pick a valid address

Use a locally administered, unicast address. In practice that means the second hex digit of the first byte should be 2, 6, A or E, for example 02:xx:xx:xx:xx:xx or 0A:xx:xx:xx:xx:xx. This avoids clashing with a real manufacturer's address and, on Windows Wi-Fi adapters, is often the only kind the driver accepts. Note your original address first so you can restore it.

How do you change a MAC address with ip link on Linux?

The ip command is built into every modern Linux distribution, so it is the most dependable option. The change lasts until the interface resets or the machine reboots.

# 1. Find the interface name and current MAC
ip -br link

# 2. Bring the interface down, set the new address, bring it up
sudo ip link set dev eth0 down
sudo ip link set dev eth0 address 02:11:22:33:44:55
sudo ip link set dev eth0 up

# 3. Confirm
ip link show eth0

Replace eth0 with your real interface name, which on modern systems often looks like enp0s3 or wlp2s0. The older ifconfig eth0 hw ether... syntax still works where net-tools is installed, but ip is the current standard. For more everyday commands, see essential Linux networking commands.

Linux: persistent or random MAC with NetworkManager

On Ubuntu, Fedora, RHEL and most desktops, NetworkManager will undo a manual change when it reconnects. Set the address in the connection profile instead:

# List connection profiles
nmcli connection show

# Wired: fixed custom MAC for this connection
nmcli connection modify "Wired connection 1" ethernet.cloned-mac-address 02:11:22:33:44:55

# Wi-Fi: new random MAC each time you connect
nmcli connection modify "CafeWiFi" wifi.cloned-mac-address random

# Wi-Fi: a stable random MAC for this network (privacy without breaking logins)
nmcli connection modify "HomeWiFi" wifi.cloned-mac-address stable

# Back to the hardware address
nmcli connection modify "HomeWiFi" wifi.cloned-mac-address permanent

# Apply
nmcli connection up "HomeWiFi"

The accepted values (preserve, permanent, random, stable or a specific address) are listed in the NetworkManager documentation. stable is a good default for networks you use often: you keep privacy from other networks, and the router still recognises you.

Linux: macchanger

macchanger is a small tool that sets random, vendor-style or specific addresses. It hasn't had a major release in years but is still in the Kali, Debian and Ubuntu repositories and works fine.

sudo apt install macchanger

sudo ip link set dev eth0 down
sudo macchanger -s eth0 # show current and permanent MAC
sudo macchanger -r eth0 # fully random address
sudo macchanger -e eth0 # keep vendor bytes, randomise the rest
sudo macchanger -m 02:11:22:33:44:55 eth0 # set a specific address
sudo macchanger -p eth0 # restore the permanent (factory) MAC
sudo ip link set dev eth0 up

During installation on Debian-based systems you may be asked whether to change the MAC automatically whenever a device comes up. Choose "No" unless you specifically want that, because it can confuse DHCP reservations and network access control.

Windows: Device Manager, PowerShell and random addresses

Device Manager (any adapter that supports it)

  1. Open Device Manager and expand Network adapters.
  2. Right-click the adapter, choose Properties, then the Advanced tab.
  3. Select Network Address (some drivers call it "Locally Administered Address").
  4. Enter 12 hex digits with no separators, for example 021122334455, and click OK.
  5. Choose Not Present later to go back to the factory address.

If there's no Network Address option, the driver doesn't support changing it.

PowerShell (run as administrator)

# See adapter names and current MACs
Get-NetAdapter | Select-Object Name, MacAddress, Status

# Set a new MAC (dashes optional)
Set-NetAdapter -Name "Ethernet" -MacAddress "02-11-22-33-44-55"

# Restore the original address
Reset-NetAdapterAdvancedProperty -Name "Ethernet" -DisplayName "Network Address"

The display name of the property can differ by driver, so check it with Get-NetAdapterAdvancedProperty -Name "Ethernet" if the reset fails. Microsoft documents the -MacAddress parameter on its Set-NetAdapter page, and notes that not all adapters support it.

What are random hardware addresses for Wi-Fi?

For privacy on public Wi-Fi you usually don't need a tool at all. In Windows 11, go to Settings > Network & internet > Wi-Fi and turn on Random hardware addresses, either for all networks or for one network from its properties page.

Technitium MAC Address Changer

Technitium's free GUI lists every adapter with its vendor, lets you pick a random or specific address, and restores the original with one click. It is handy if you change addresses often or prefer not to edit driver settings. Download it only from the developer's official site.

macOS: ifconfig and private Wi-Fi addresses

# Find the interface (Wi-Fi is usually en0)
networksetup -listallhardwareports

# Temporary change (disconnect from Wi-Fi first)
sudo ifconfig en0 ether 02:11:22:33:44:55
ifconfig en0 | grep ether

On recent Macs, especially with Apple silicon, a manual Wi-Fi change may not stick or may be reset on reconnect. For privacy, the supported route is System Settings > Wi-Fi > Details for a network, then set Private Wi-Fi address to Fixed or Rotating.

Android and iPhone

You don't need a spoofing app on phones. Android 10 and later use a randomised MAC per network by default (set under the network's privacy options), and iPhones use a private Wi-Fi address per network. Changing to an arbitrary address on Android generally needs root, which weakens the phone's security and isn't worth it for privacy alone.

Legitimate uses, matched to the right tool

GoalBest tool
Privacy on public Wi-FiBuilt-in randomisation (Windows, macOS, Android, iOS, NetworkManager)
Replacing a router or NIC without re-registering with an ISP or DHCP reservationRouter "MAC clone" setting or nmcli/Device Manager
Lab exercises and CTFsip link or macchanger in a VM
Authorised test of a client's MAC filtering or NACip link/macchanger, documented in the test plan
Testing your own detection (port security, DAI, NAC alerts)Any of the above on a lab switch you control

Using a copied address to get onto a network, past a captive portal or around a ban that you aren't authorised to bypass is unauthorised access. In India that can lead to liability under Section 43 and charges under Section 66 of the IT Act, 2000. For practice, build an isolated setup as described in how to set up a penetration testing lab.

Troubleshooting common errors

ProblemCauseFix
RTNETLINK answers: Cannot assign requested addressMulticast or invalid address (first byte odd)Use a locally administered unicast address such as 02:...
Device or resource busyInterface still upRun ip link set dev IFACE down first
MAC reverts after a few secondsNetworkManager reapplies its profileSet cloned-mac-address in the connection instead
Windows Wi-Fi ignores the new addressDriver only accepts certain first bytesUse a first byte of 02, 06, 0A or 0E, or use Random hardware addresses
No internet after the changeDHCP reservation, NAC or MAC filtering tied to the old addressRestore the original MAC or ask the network admin
Change lost after rebootTemporary methods (ip, macchanger, ifconfig)Use NetworkManager, systemd-networkd or the Windows adapter property

What defenders should know about these tools

Because every tool above is free and takes seconds to use, network admins should assume any device can present any MAC address. Rely on 802.1X or NAC for access decisions, and use port security, DHCP snooping and Dynamic ARP Inspection on managed switches to catch duplicates and mismatches. Those controls are a core part of the CCNA (200-301) training if you want to configure them hands-on.

Next step

Open a Linux VM and practise the full cycle: record the original address, change it with ip link, make it persistent with nmcli, then restore it with permanent. Then turn on random or private Wi-Fi addresses on your own phone and laptop, which is the privacy win most people actually need.

Related reading

Frequently Asked Questions

Bring the interface down, set the address and bring it back up: sudo ip link set dev eth0 down, sudo ip link set dev eth0 address 02:11:22:33:44:55, then sudo ip link set dev eth0 up. For a change that survives reconnects, set cloned-mac-address in NetworkManager.

Yes. macchanger has not had a major release in years, but it is still packaged in Kali, Debian and Ubuntu and works well for random, vendor-style or specific addresses. The built-in ip command and NetworkManager settings do the same job without extra software.

Open Device Manager, go to the adapter's Properties, Advanced tab, Network Address, and enter 12 hex digits. Or run Set-NetAdapter -Name "Ethernet" -MacAddress "02-11-22-33-44-55" in an administrator PowerShell. For Wi-Fi privacy, turn on Random hardware addresses in Settings.

On Linux, run sudo macchanger -p eth0, set cloned-mac-address to permanent in NetworkManager, or simply reboot after a temporary ip link change. On Windows, set Network Address to Not Present or reset the advanced property in PowerShell.

Changes made with ip link, macchanger or ifconfig are temporary and reset on reboot. NetworkManager's cloned-mac-address setting, systemd-networkd configuration and the Windows adapter Network Address property are persistent until you change them back.

Many Windows Wi-Fi drivers only accept locally administered addresses whose first byte is 02, 06, 0A or 0E. Use an address that starts with one of those values, or turn on Random hardware addresses instead of setting one by hand.

Changing your own device's address for privacy, troubleshooting, labs or authorised testing is legal. Using a copied address to access a network or service without permission is unauthorised access and can bring penalties under Sections 43 and 66 of India's IT Act, 2000.

No. Android 10 and later randomise the Wi-Fi MAC per network by default, and iPhones use a private Wi-Fi address per network. Setting an arbitrary address on Android usually needs root, which weakens the phone's security.

What's Your Reaction?

Like Like 0
Dislike Dislike 0
Love Love 0
Funny Funny 0
Wow Wow 0
Sad Sad 0
Angry Angry 0
Vaishnavi

Vaishnavi is a skilled tech professional at the Ethical Hacking Training Institute in Pune, responsible for managing and optimizing the technical infrastructure that supports advanced cybersecurity education. With deep expertise in network security, backend operations, and system performance, she ensures that practical labs, online modules, and assessments run smoothly and securely. Her behind-the-scenes contributions play a vital role in delivering a seamless and secure learning experience for aspiring ethical hackers.