LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

macchanger

manipulates the MAC address of network interfaces

TLDR

Show current and permanent MAC addresses
$ macchanger -s [eth0]
copy
Set random MAC address
$ sudo macchanger -r [eth0]
copy
Set random MAC with burned-in address flag
$ sudo macchanger -r -b [eth0]
copy
Set a specific MAC address
$ sudo macchanger -m [XX:XX:XX:XX:XX:XX] [eth0]
copy
Set a random MAC from the same vendor
$ sudo macchanger -a [eth0]
copy
Reset to permanent hardware MAC
$ sudo macchanger -p [eth0]
copy
List known vendor MAC prefixes
$ macchanger -l
copy

SYNOPSIS

macchanger [OPTIONS] interface

DESCRIPTION

macchanger manipulates the MAC address of network interfaces. It can set random addresses, vendor-specific addresses, or restore the original hardware address. Useful for privacy, testing, and network troubleshooting.

PARAMETERS

-s, --show

Show current and permanent MAC addresses
-r, --random
Set a completely random MAC address
-b, --bia
Pretend to be a burned-in address (vendor bit)
-m, --mac address
Set a specific MAC address
-p, --permanent
Reset to the permanent hardware MAC
-l, --list
Print known vendor MAC prefixes
-e, --ending
Only change the last bytes, preserving the vendor prefix
-a, --another
Set random vendor MAC of same kind
-A
Set random vendor MAC of any kind

INSTALL

sudo apt install macchanger
copy
sudo dnf install macchanger
copy
sudo pacman -S macchanger
copy
sudo apk add macchanger
copy
sudo zypper install macchanger
copy
brew install macchanger
copy
nix profile install nixpkgs#macchanger
copy

CAVEATS

The interface must be down before changing MAC on most systems. Changes are not persistent across reboots. Some networks detect and block MAC address changes.

HISTORY

macchanger was written by Alvaro Lopez Ortega and is commonly used for privacy and network testing on Linux systems.

SEE ALSO

ip-link(8), ifconfig(8)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid