Macchanger

net-analyzer/macchanger


Source Repository:Repository:Gentoo Portage Tree

https://github.com/alobbs/macchanger

Summary: Utility for viewing/manipulating the MAC address of network interfaces

News

Oleg

GCC Update

GCC Update
2016-11-25 by Oleg
Oleg

Portage Git Sync Fix

Portage Git Sync fix
2016-11-14 by Oleg
Oleg

Python-3.3-Removal

Python-3.3 Removal from Portage Tree
2016-10-28 by Oleg
More...

Macchanger

Tip

We welcome improvements to this page. To edit this page, Create a Funtoo account. Then log in and then click here to edit this page. See our editing guidelines to becoming a wiki-editing pro.

MAC changer is a program that will change an interfaces mac address.

# emerge net-analyzer/macchanger

Usage

Note

to change an address you must completely disconnect from all networks on the interface

Show Vendor Codes

# macchanger -l

Generate a Random Address

# macchanger -r wlan0

Pretend To Be A Burned In Address

# macchanger -rb wlan0

Manually Assign an Address

# macchanger -m 11:22:33:44:55:66 wlan0

Revert All Changes

# macchanger -p wlan0

NetworkManager Autostart

The e flag will keep the vendor code, and b will pretend to be burned in resulting in random macs every interface up.

/etc/NetworkManager/dispatcher.d/pre-up.d/macchanger.sh (bash source code) - auto change mac address
#!/bin/bash
macchanger -eb $1

The script must be executable:

# chmod +x /etc/NetworkManager/dispatcher.d/pre-up.d/macchanger.sh
Restart NetworkManager:

# rc-service NetworkManager restart