Override MAC address for interface?

Peter Naulls peter at chocky.org
Wed Feb 22 12:39:01 PST 2023


On 2/22/23 15:34, Robert Marko wrote:

>>           option 'lan1'
>>           option macaddr 34:BA:9A:CC:DD:EE
> 
> This should work as long as its in single quotes.

I corrected the quotes, but no joy.

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

Yes, I have a preinit script, but it seems that the MAC address
doesn't get retained. Probably cleared by netifd, which would be entirely
expected.

The plan of course is to have the preinit script do the config setting.





More information about the openwrt-devel mailing list