macchanger - Man Page
MAC Changer
Examples (TL;DR)
- View the current and permanent MAC addresses of a interface:
macchanger --show interface
- Set interface to a random MAC:
macchanger --random interface
- Set an interface to a random MAC address, and pretend to be a [b]urned-[i]n-[a]ddress:
macchanger --random --bia interface
- Set an interface to a specific MAC address:
macchanger --mac XX:XX:XX:XX:XX:XX interface
- Print the identifications (the first three bytes of a MAC address) of all known vendors:
macchanger --list
- Reset an interface to its permanent hardware MAC address:
macchanger --permanent interface
Synopsis
macchanger [options] device
Description
macchanger is a GNU/Linux utility for viewing/manipulating the MAC address for network interfaces.
Options
macchanger accepts the following options:
- -h, --help
Show summary of options.
- -V, --version
Show version of program.
- -s, --show
Prints the current MAC. This is the default action when no other option is specified.
- -e, --ending
Don't change the vendor bytes.
- -a, --another
Set random vendor MAC of the same kind.
- -A
Set random vendor MAC of any kind.
- -r, --random
Set fully random MAC.
- -p, --permanent
Reset MAC address to its original, permanent hardware value.
- -l, --list[=keyword]
Print known vendors (with keyword in the vendor's description string).
- -b, --bia
When setting fully random MAC pretend to be a burned-in-address. If not used, the MAC will have the locally-administered bit set.
- -m, --mac XX:XX:XX:XX:XX:XX, --mac=XX:XX:XX:XX:XX:XX
Set the MAC XX:XX:XX:XX:XX:XX.
Example
macchanger -A eth1
See Also
Author
Alvaro Lopez Ortega <alvaro@alobbs.com>.