Using a purely gl default config with 2 lan wifi access points and 2 guest wifi acccess points across 2 radios. wan and lan.
in some configs I perform a ifconfig and view luci-network-interfaces and view luci-network-wireless.
What I see.
wan interface has 46:xx.xx.xx.xx.ba <why 46 and ifconfig different below?
lan interface has 46.xx.xx.xx.xx.bb <why 46 and ifconfig different below?`
guest interface has 26.xx.xx.xx.xx.b0 <26? from softcode random?
wireless2g lan station is E4.xx.xx.xx.xx.ba
wireless2g guest station E6.xx.xx.xx.xx.ba
wireless5g lan station is E4.xx.xx.xx.xx.bb
wireless5g guest station E6.xx.xx.xx.xx.bb
here is my next question.
how to impliment random mac change on wan and also lan and wifi on every reboot. not worried about local dhcp server filling up with a crap load of address but rather a script to run when traveling.
this worked fine with wan but looking to randomize all interfaces.
For the second question:
You can add your own code in the /etc/rc.local script, modify the mac address of the corresponding interface, wan / lan / guest network in / etc / config / network, and modify / etc / config / wireless configuration wirelessly
uci set network.lan.macaddr="XX:XX:XX:XX:XX:XX"
uci set network.wan.macaddr="XX:XX:XX:XX:XX:XX"
uci set wireless.default_radio0.macaddr=“XX:XX:XX:XX:XX:XX”
uci set wireless.default_radio1.macaddr=“XX:XX:XX:XX:XX:XX”
uci set wireless.guest2g.macaddr=“XX:XX:XX:XX:XX:XX”
uci set wireless.guest5g.macaddr=“XX:XX:XX:XX:XX:XX”
uci commit network
uci commit wirless
The mac address of the guest and the lan are distinguished according to the interface you add to it. The one with the smallest mac address among all the interfaces is taken. If the minimum mac address of the interface of your two bridges is the same, then the mac of the guest and the lan will be Will be the same
It can be seen from the above that for the wifi with relay enabled, the mac address of the relay interface is read from the art area, the main wifi is art + 2, and the guest wifi is art-2
For wireless without relay enabled, the main wifi is read from the art area, and the guest wifi is art + 2