Override MAC address for interface?

Rafał Miłecki zajec5 at gmail.com
Wed Feb 22 22:43:22 PST 2023


On 22.02.2023 21:02, Peter Naulls 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'

This line is clearly wrong. See how you specify device name in above section.


>          option macaddr 34:BA:9A:CC:DD:EE
> 
> 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.



More information about the openwrt-devel mailing list