On Wed, 22 Feb 2023 at 21:03, Peter Naulls <pe...@chocky.org> wrote:
>
>
> Due to some missing flash values, I need to do a later user space lookup for
> possible missing values stored "elsewhere" to fix up the MAC address.
>
> According to:
>
> https://openwrt.org/docs/guide-user/base-system/basic-networking
>
> Something like this should work:
>
>
> config device
>          option name 'br-lan'
>          option type 'bridge'
>          list ports 'lan1'
>          list ports 'lan2'
>          list ports 'lan3'
>          list ports 'lan4'
>
> config device
>          option 'lan1'
>          option macaddr 34:BA:9A:CC:DD:EE

This should work as long as its in single quotes.

Also, cant you fixup the MAC in 02_networking or in preinit?

Regards,
Robert
>
> But it doesn't get applied in my testing.
>
> As far as I know, there's no option to override the MAC in current luci.
>
> I am using ifconfig at boot to set the MAC, but that's transient and doesn't
> remain set.
>
> Thanks.
>
>
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel

_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to