Page 1 of 1
MAC address change
Posted: Wed Jun 18, 2014 5:04 pm
by chigo58
Dear all,
I am attempting to change the mac address of the wifi interface using the traditional way of editing the /etc/config/wireless file and adding the option macaddr 'xx:xx:xx:xx:xx:73' line under 'radio0'.
The reason for this is that the router is connected as a WIFI client to my ISP and i wish to clone my MBP MAC address to the router.
Once I apply the change and reboot the router, the interface gets disabled and status is 'n/an/a'.
Can someone help me get this right?
Code: Select all
|----------------------------------------------------------------|
| Gargoyle version 1.6.1 | OpenWrt Attitude Adjustment branch |
| Gargoyle revision 87ce626 | OpenWrt revision r40423 |
| Built April 18, 2014 | Target ar71xx/usb |
------------------------------------------------------------------
Re: MAC address change
Posted: Mon Jan 12, 2015 12:42 pm
by Spooky
Hi,
i know this thread is pretty old but I figured out how it works.
1. Connect to SSH
2. Install macchanger:
3. Disable Wifi Interface
4. Change MAC
For a random address:
for a custom address:
Code: Select all
macchanger wifi0 -m BC:F4:11:6C:BC:58
5. Enable Wifi Interface again
6. Renew DHCP (via Webinterface for example)
Tested on Version 1.2.5 with FON2100
With the commands from 3. to 5. you could write a script to set the mac address at every boot
Re: MAC address change
Posted: Mon Jan 12, 2015 12:52 pm
by chigo58
Thank you

Re: MAC address change
Posted: Mon Jan 12, 2015 3:16 pm
by Spooky
Have a look at:
https://wiki.openwrt.org/doc/uci/wireless
It seems like you tried to edit the wifi-device configuration, which can't be used for changing the mac address:
macaddr MAC address yes/no (autodetected) Specifies the radio adapter associated to this section,
it is not used to change the device mac but to identify the underlying interface.
You have to edit the wifi-iface Part to specify a custom mac address:
macaddr mac address no (hostapd/driver default) Overrides the MAC address used for the wifi interface.
option 'macaddr' '54:e6:fc:af:3b:1e'
for example.
I hope this helps too.
Re: MAC address change
Posted: Thu Sep 10, 2015 9:45 am
by ggravier
For some strange reason, with firmware 1.8.0, I can't install macchanger
Code: Select all
root@nzone:~# opkg update
Downloading package list for barrier_breaker_routing source...
Package list for barrier_breaker_routing downloaded successfully.
Downloading package list for gargoyle source...
Package list for gargoyle downloaded successfully.
Downloading package list for barrier_breaker_base source...
Package list for barrier_breaker_base downloaded successfully.
Downloading package list for barrier_breaker_packages source...
Package list for barrier_breaker_packages downloaded successfully.
Downloading package list for barrier_breaker_management source...
Package list for barrier_breaker_management downloaded successfully.
Downloading package list for barrier_breaker_telephony source...
Package list for barrier_breaker_telephony downloaded successfully.
root@nzone:~# opkg install macchanger
ERROR: No package named macchanger found, try updating your package lists
root@nzone:~#
Package removed? Possibility gone?
Cheers,
Gilles
Re: MAC address change
Posted: Fri May 03, 2024 7:53 am
by aqxwakdcv
Not working v. 1.14
Re: MAC address change
Posted: Fri May 03, 2024 7:51 pm
by Lantis
macchanger is not required. Modify the appropriate config file.