[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <a7b0b637-8ecb-4092-b6a9-162bafb95454@lunn.ch>
Date: Thu, 5 Dec 2024 15:51:29 +0100
From: Andrew Lunn <andrew@...n.ch>
To: Dominique Martinet <asmadeus@...ewreck.org>
Cc: Oliver Neukum <oneukum@...e.com>, Andrew Lunn <andrew+netdev@...n.ch>,
"David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>,
Dominique Martinet <dominique.martinet@...ark-techno.com>,
netdev@...r.kernel.org, linux-usb@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] net: usb: usbnet: restore usb%d name exception for local
mac addresses
> > The point about locally administered MAC addresses is that they are
> > locally administered.
>
> Honest question here our of curiosity, my reading of a few random pages
> on the internet is that it would be acceptable for the modem to randomly
> generate it?
> (under the assumption that e.g. a reset would clear it and get me a new
> mac)
>
> Or does it have to be assigned as late as possible, e.g. we'd want linux
> to be generating it in this case?
Honest, answer is, i've never read what IEEE says about locally
administered MAC addresses.
The general pattern in linux is, if there is no alternative, generate
a random MAC address in the locally administered range. The sysadmin
should be able to change it via ip link set address, and more likely
making it 'permanent' by setting it in /etc/network/interfaces or
whatever the distribution uses. I would not be too surprised if some
MAC drivers are broken and that fails.
Since you can change the MAC address at runtime, and you say they do
appear to be somewhat random, i don't see why we cannot live with
this. It can still be locally administrated if need be. But it is no
something we want to see OEMs do, they really should get an OUI.
Andrew
Powered by blists - more mailing lists