Override MAC address for interface?

edgar.soldin at web.de edgar.soldin at web.de
Thu Feb 23 06:48:38 PST 2023


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 that isn't obvious up front,
> until you know, and then it is. But thanks for the correction.
>
> However, what I really want to do is this:
>
>
> config interface 'wan'
>          option auto '0'
>          option proto 'dhcp'
>          #option device 'wan'
>          option name 'wan'
>          option metric '0'
>
> config device 'wan'
>          option name 'wan'
>          option macaddr '34:BA:9A:CC:DD:BB'
>
> But uci doesn't allow this. I guess I'll have to rename the wan device in the DTS to wan0 or something.

this is how it worked in 21.x , can't try on 22.x just now
  https://forum.openwrt.org/t/solved-how-to-clone-mac-address-for-21-02-0/108690/3

..ede



More information about the openwrt-devel mailing list