basti85
September 25, 2020, 3:19pm
1
Hi,
I've been migrating from ar71xx to ath79 on my devices.
The Problem is that i can't set a custom mac any more, neither via Luci nor via SSH.
The setting "Option macaddr 'xx' " is there in /etc/config/interfaces, but it just gets ignored.
Can somebody help me?
Thanks a lot, basti
pwned
September 25, 2020, 6:26pm
2
Add according to your lan/wan iface name:
config device 'lan_eth0_dev'
option name 'eth0'
option macaddr ':E0:B0:AA'
config device 'wan_eth1_dev'
option name 'eth1'
option macaddr ':48:FC:B4'
1 Like
basti85
September 26, 2020, 10:15am
3
Thank you for the answer. My devices are wifi Clients, though, and i can't get it to work.
I tried your commands, also changing device to wlan0 and radio0. I don't See any Changes, though. Probably i'm using the wrong interface Name?
That's the network where i want to change the mac address:
config interface 'wwan'
option name 'wlan0'
option proto 'dhcp'
I'm at a loss what's the right interface Name. Can you help me out?
Thanks
you need change that under the wifi config
config wifi-iface
option network 'wwan'
option macaddr 'xx:xx:xx:xx:xx'
pwned
September 26, 2020, 12:44pm
5
Your configuration looks quite wrong to me. You wouldn't configure dhcp in /etc/config/wireless where you would change the MAC for WLAN devices like @anon4457646 has written. I think you are mixing up things a bit.
Post the output of:
uci show wireless && uci show network && uci show dhcp
Don't forget to redact any passwords or other sensible informations.
basti85
September 27, 2020, 4:28pm
6
Yes, thanks, that worked
What's confusing: under ar71xx that gets done in the network file, or in network/interfaces via luci. That Option still exists, but it has no effect. I would consider that a bug...
basti85
September 27, 2020, 4:33pm
7
That was /etc/config/network, you're right. That's where i did it under the old target.
I wrote that post before@bricco1981 answered
Anyway, my Problem is solved, maybe i'll file a bug report because the old, not working Option is still there...
pwned
September 27, 2020, 5:05pm
8
Pls mark the topic as solved.
Go to the very top of your topic, i.e. to your first posting
Click the pencil behind the topic
===> If there is no pencil and you can not edit the topic title, skip this and jump to step #5 below. <===
[grafik]
===> If there is no pencil and you can not edit the topic title, skip this and jump to step #5 below. <===
Add "[Solved]" in front of the topic
Click the checkmark to save the edit
[grafik]
If there is a specific posting that contributed the most to the solution, you can mark t…
basti85
September 27, 2020, 7:28pm
9
Done. Can't edit the topic, though.
1 Like
tmomas
Closed
October 7, 2020, 7:28pm
10
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.