Re: Override MAC address for interface?

2023-02-24 Thread Rafał Miłecki
On 23.02.2023 13:49, Peter Naulls wrote: On 2/23/23 01:43, Rafał Miłecki wrote: On 22.02.2023 21:02, Peter Naulls wrote: config device option 'lan1' This line is clearly wrong. See how you specify device name in above section. Perhaps it is "clear" but there's much in OpenWrt

Re: Override MAC address for interface?

2023-02-23 Thread edgar . soldin
On 23.02.2023 13:49, Peter Naulls wrote: On 2/23/23 01:43, Rafał Miłecki wrote: On 22.02.2023 21:02, Peter Naulls wrote: config device option 'lan1' This line is clearly wrong. See how you specify device name in above section. Perhaps it is "clear" but there's much in OpenWrt

Re: Override MAC address for interface?

2023-02-23 Thread Peter Naulls
On 2/23/23 01:43, Rafał Miłecki wrote: On 22.02.2023 21:02, Peter Naulls wrote: config device option 'lan1' This line is clearly wrong. See how you specify device name in above section. Perhaps it is "clear" but there's much in OpenWrt that isn't obvious up front, until you

Re: Override MAC address for interface?

2023-02-22 Thread Rafał Miłecki
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

Re: Override MAC address for interface?

2023-02-22 Thread Robert Marko
On Wed, 22 Feb 2023 at 21:39, Peter Naulls wrote: > > 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. Hm, that is weird as I have

Re: Override MAC address for interface?

2023-02-22 Thread Peter Naulls
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

Re: Override MAC address for interface?

2023-02-22 Thread Robert Marko
On Wed, 22 Feb 2023 at 21:03, 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 > >

Override MAC address for interface?

2023-02-22 Thread Peter Naulls
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