martin-ger / esp_wifi_repeater

A full functional WiFi Repeater (correctly: a WiFi NAT Router)
MIT License
4.72k stars 896 forks source link

unable to change AP mac #499

Open danio0701 opened 2 years ago

danio0701 commented 2 years ago

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 commented 2 years ago

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

martin-ger commented 2 years ago

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

danio0701 commented 2 years ago

no

danio0701 commented 2 years ago

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

danio0701 commented 2 years ago

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 commented 2 years ago

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

danio0701 commented 2 years ago

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

RolandDaum commented 1 year ago

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

martin-ger commented 1 year ago
set [ap_mac|sta_mac] xx:xx:xx:xx:xx:xx
save
reset