[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: firejail: changing Ethernet network adapter name is breaking Firefox profile



On Sat, Jan 22, 2022 at 10:00:34AM +0100, tomas@tuxteam.de wrote:
> On Sat, Jan 22, 2022 at 08:28:34AM +0100, Andrei POPESCU wrote:
> > On Lu, 17 ian 22, 22:43:49, piorunz wrote:
> > > 
> > > Problem is, every now and then, Ethernet adapter name changes, from
> > > enp5s0 to enp6s0 for example. 
> > 
> > Those names are supposed to be stable.
> 
> Hahaha :)
> 
> Actually, they're supposed to be /predictable/.

In reality, they are neither.  What piorunz is reporting is not uncommon.
Any change to the system hardware, or even to the motherboard's firmware,
can cause PCI devices to be renumbered.  This causes "predictable"
network interface names to change, unpredictably.

Some people work around this by reverting to the old "eth0" style names,
and for machines with exactly one ethernet interface, this works well.

For machines with more than one ethernet interface, of course, it doesn't.
On such machines, the best course of action seems to be setting up
systemd.link(5) files to give your interfaces whatever names you want
them to have, based on their MAC addresses.  (In essence, replicating
what udev used to do by default, but which was deprecated in buster.)


Reply to: