esp_wifi_repeater icon indicating copy to clipboard operation
esp_wifi_repeater copied to clipboard

unable to change AP mac

Open danio0701 opened this issue 2 years ago • 9 comments

Hi, I want to change every reboot AP mac. I used command set sta_mac random but every reboot device have same AP Mac. of course I tried use command like set ap_mac random but it not exist and return "Invalid argument".

I also tried set ap_mac 01:0:5e:00:03:fb but it gives also "Invalid argument".

Any advice?

danio0701 avatar Jul 08 '22 11:07 danio0701

I see that if I send set ap_mac 01:0a:5e:00:03:fe it return "AP MAC set" but when I run command from mac terminal I see still same mac address `(192.168.4.1) at ee:fa:bc:28:28:c on en0 ifscope [ethernet]

(224.0.0.251) at 1:0:5e:0:0:fb on en0 ifscope permanent [ethernet]

(239.255.255.250) at 1:0:5e:7f:ff:fa on en0 ifscope permanent [ethernet]`

I want to change this wifi mac address ee:fa:bc:28:28:c

danio0701 avatar Jul 08 '22 11:07 danio0701

Did you do a "save" after changing the parameters and resetting?

martin-ger avatar Jul 08 '22 11:07 martin-ger

no

danio0701 avatar Jul 08 '22 13:07 danio0701

let me check then. I had no idea need to save

danio0701 avatar Jul 08 '22 13:07 danio0701

Did you do a "save" after changing the parameters and resetting?

Trying 192.168.4.1... Connected to 192.168.4.1. Escape character is '^]'. CMD>set ap_mac ee:ff:ff:ff:ff:0f AP MAC set CMD>save Config saved CMD>

when I use on my mac /usr/sbin/arp -a I still got same mac address "ee:fa:bc:28:28:c"

? (192.168.4.1) at ee:fa:bc:28:28:c on en0 ifscope [ethernet] ? (224.0.0.251) at 1:0:5e:0:0:fb on en0 ifscope permanent [ethernet] ? (239.255.255.250) at 1:0:5e:7f:ff:fa on en0 ifscope permanent [ethernet]

I tried also with random but same result

danio0701 avatar Jul 08 '22 13:07 danio0701

Sorry for answers. After all I had to run also command: reset

danio0701 avatar Jul 08 '22 13:07 danio0701

I get one problem more. Now ap mac change but after it there is new value ff:ff:ff:ff:ff:ff

? (192.168.4.1) at 0:7f:1c:a0:6c:b5 on en0 ifscope [ethernet] ? (192.168.4.255) at ff:ff:ff:ff:ff:ff on en0 ifscope [ethernet] ? (224.0.0.251) at 1:0:5e:0:0:fb on en0 ifscope permanent [ethernet] ? (239.255.255.250) at 1:0:5e:7f:ff:fa on en0 ifscope permanent [ethernet]

how to remove or set the normal value for this 192.168.4.255?

I also noticed that random not works for ap mac

danio0701 avatar Jul 08 '22 13:07 danio0701

How did you changed the wifi mac address? Can you explain

RolandDaum avatar Feb 03 '23 21:02 RolandDaum

set [ap_mac|sta_mac] xx:xx:xx:xx:xx:xx
save
reset

martin-ger avatar Feb 04 '23 15:02 martin-ger