Changing a MAC address in Linux Mint replaces the hardware address a network connection presents to a local network. It can help with a privacy-conscious network setup, testing, or access to a network that recognizes a registered device. You can set an address for one connection in NetworkManager or change it temporarily with a terminal tool. Before you start, note that this does not hide your device from websites or make you anonymous, and it may interrupt your network connection. Only change an address on a network and device you are authorized to use.
What You’ll Need
- A Linux Mint account with administrator privileges. Terminal commands that change an interface or install software use
sudo. - The name of the network interface you want to change, such as
wlp2s0for Wi-Fi orenp3s0for Ethernet. Names vary by computer. - For the terminal method, an internet connection to install
macchangerif it is not already installed. If you are changing the MAC address used for Wi-Fi, have the network password available in case you need to reconnect. - Optionally, the address you want to use. A randomly generated address is usually simpler and safer than making one up.
Step-by-Step
- Decide whether the change should be persistent or temporary. Use NetworkManager’s connection settings if the address should be applied whenever you connect using that profile. Use
macchangerfor a one-off test or temporary change. NetworkManager may reapply the profile’s address when a connection starts, so its profile setting is generally the better option for a lasting change. - Identify the interface and active connection. Open Terminal from the Mint menu and run:
ip -br link nmcli connection show --activeThe first command lists interface names and link state. The second lists active NetworkManager connections and their profile names. Match the connected device to the interface; do not assume the first interface listed is the one you use. In the examples below, replace
wlp2s0with your actual interface andHome Wi-Fiwith your connection profile name. - Record the original address and connection details. Run
ip link show dev wlp2s0and note the value afterlink/ether. You can also check the current permanent hardware address withsudo ethtool -P wlp2s0ifethtoolis installed and the adapter supports the query. Keep a note of the original value and the connection profile name so you can undo the change. Do not share a real device address publicly unless necessary. - For a persistent change, open the NetworkManager connection editor. In Cinnamon, open the network menu, choose the settings or connection settings option, and edit the profile you use. If you cannot find the editor in the menu, open Terminal and run
nm-connection-editor. Select the relevant Wi-Fi or Ethernet profile, then open its Wi-Fi or Ethernet tab. Look for a field named Cloned MAC address or similar. The precise wording and available choices depend on the Mint and NetworkManager versions. - Choose the address behavior in the profile. If the editor offers a Random choice, select it to have NetworkManager use a generated address for this profile. To use a particular address, enter it in the cloned-address field in six pairs of hexadecimal digits, for example
02:11:22:33:44:55. The example is only a format illustration, not an address to copy if another device on your network might use it. A locally administered unicast address commonly begins with an even value such as02; avoid using the address of another device. Save the profile when finished. - Reconnect using the edited profile. Turn Wi-Fi off and on using the network menu, or disconnect and reconnect to the network. For Ethernet, disconnect and reconnect the profile if the interface does not update automatically. A brief interruption is normal. If asked, enter the Wi-Fi password again. The profile change applies when NetworkManager activates that connection; it does not rewrite the adapter’s permanent hardware address.
- Verify the persistent change. In Terminal, run
ip link show dev wlp2s0again and inspect thelink/ethervalue. You can also usenmcli -f GENERAL.HWADDR,GENERAL.PERM-HWADDR device show wlp2s0on versions that support those fields. The currently used address should match your chosen or generated value. The permanent address may still appear separately, which is expected. Check that you can browse or reach a known local service before relying on the connection. - For a temporary change, install macchanger if needed. Run
sudo apt update, thensudo apt install macchanger. If the installer asks whether to change the MAC address automatically at boot, choose the option that matches your intention; for a manually controlled, temporary test, choose not to apply it automatically. You can confirm the tool is available withmacchanger --version. - Disconnect the interface before changing it with macchanger. First bring down the active connection profile, replacing the example name with yours:
sudo nmcli connection down 'Home Wi-Fi' sudo ip link set dev wlp2s0 downThen request a random address:
sudo macchanger -r wlp2s0To set a specific address instead, use
sudo macchanger -m 02:11:22:33:44:55 wlp2s0, choosing an unused address appropriate for your network. Bring the interface back up withsudo ip link set dev wlp2s0 up, then reconnect withsudo nmcli connection up 'Home Wi-Fi'. NetworkManager may restore the address configured in the profile when it reconnects. If that happens, set the cloned address in the profile as described above rather than repeatedly forcing it withmacchanger. - Check the temporary result and restore the original when finished. Use
macchanger -s wlp2s0orip link show dev wlp2s0to check the address. To restore the adapter’s permanent address, disconnect the profile, bring the interface down, runsudo macchanger -p wlp2s0, bring it up, and reconnect. If you used the persistent profile method instead, return to the cloned MAC address field and select the default, permanent, or preserve option provided by your editor, then reconnect.
Common Mistakes
Changing the wrong interface: A laptop may show a Wi-Fi interface, a wired interface, and virtual interfaces for containers or VPNs. Confirm the device name and active connection before running commands. A change to an unused interface will not affect the connection you are testing.
Using a malformed address: A MAC address has six hexadecimal pairs separated by colons. Letters must be A through F, and each pair must contain two characters. Also avoid copying an address from a router, phone, or other device on the same network; duplicate addresses can cause intermittent or complete connectivity failures.
Expecting a temporary command to survive reconnection: NetworkManager controls managed interfaces and may apply the saved profile when the connection comes back. A terminal change can therefore disappear after reconnecting, restarting NetworkManager, or rebooting. Use the connection editor when you need repeatable behavior.
Confusing the current and permanent addresses: Linux tools can show both. The permanent address is normally the adapter’s factory address; the current address is what it is presenting now. A different permanent value in a status display does not necessarily mean the change failed.
Treating a new MAC address as complete privacy: Websites can still identify accounts, browser characteristics, and network traffic in other ways. A MAC address is normally relevant only on the local network segment, not as a replacement for other privacy protections.
Tips
- Change one interface at a time and keep the original address and profile name nearby. That makes it easier to undo the change without guessing.
- If a network requires a registered address, ask its administrator to update the registration rather than trying random values. A changed address can also affect DHCP leases, router reservations, parental controls, or device access rules.
- For a repeatable privacy setup, prefer a per-network profile option over a system-wide setting. That lets you use a different behavior on a home network and a public network, where supported.
- After changing the address, test both the local connection and the service you need. A successful Wi-Fi association does not guarantee that a router’s access controls or DHCP server will accept the device.
- Do not change the first byte casually when entering a custom value. The address should be a valid unicast address, and the locally administered bit should be set when you are using a locally chosen address. A tool-generated random address avoids some common formatting and bit-selection errors.
Troubleshooting
The command says the interface is busy or the change is not permitted: Make sure the connection is disconnected and the interface is down before running macchanger. Use sudo for commands that require administrator access. Confirm that the interface name is correct with ip -br link; a typo can produce a device-not-found error.
The address changes and then changes back: NetworkManager is probably applying its profile settings. Open the connection editor and configure the cloned MAC address there, save, then reconnect. Also check whether you have another profile for the same network and are connecting with that profile instead.
Wi-Fi will not reconnect: Restore the original address or remove the custom value from the profile, then reconnect. Check that the address is not already used by another device. If the network uses MAC filtering or a DHCP reservation, the router may need to be updated. You can inspect connection status with nmcli device status and recent NetworkManager messages with journalctl -u NetworkManager -n 50 --no-pager.
The GUI has no cloned-address field: Install or launch the NetworkManager connection editor if available, or use nmcli to inspect the profile and its supported properties. Wi-Fi profiles use the 802-11-wireless.cloned-mac-address property; wired profiles use 802-3-ethernet.cloned-mac-address. Property choices vary by NetworkManager version, so check them with nmcli connection show 'Home Wi-Fi' and use the documentation for the installed version rather than guessing a value.
The connection works but a website still recognizes you: That is expected. MAC changes do not change your public IP address, browser data, logged-in accounts, or cookies. The change only affects the address presented at the local network level.
Frequently Asked Questions
Can I change a MAC address in Linux Mint without installing anything?
Usually, yes. NetworkManager’s connection editor can configure a cloned MAC address for a profile. The terminal method using macchanger requires installing that package if it is not already present.
Will the change survive a reboot?
A cloned address saved in a NetworkManager profile generally applies again when that profile connects, including after a reboot. A manual macchanger change is temporary unless you configure an automatic startup method, which is not needed for most users.
Does changing the MAC address change my public IP?
No. Your router or internet provider assigns or routes your IP address separately. A MAC change may affect the local DHCP lease, but it does not directly set a new public IP.
Is it safe to choose any random-looking address?
Not necessarily. The address must be correctly formatted and should not duplicate another device on the same local network. Use NetworkManager’s random option or macchanger -r where appropriate, and follow any rules set by the network administrator.
How do I undo the change?
For a temporary change, disconnect the interface and run sudo macchanger -p INTERFACE, replacing INTERFACE with its actual name. For a saved profile, remove the custom cloned address or choose the editor’s default, permanent, or preserve option, then reconnect.
Can a MAC change bypass a network block?
It may change one identifier used by a local network, but it is not a reliable or appropriate way to bypass access controls. Networks can use other identifiers and policies, and you should ask the administrator to resolve a legitimate access problem.