Advertising

Welcome to SparkyLinux forums
Zapraszamy również na polsko-języczne Forum https://forum.linuxiarze.pl

How to change the Network Interface Naming Policy?

Started by mirto, January 20, 2024, 08:05:18 PM

Previous topic - Next topic

mirto

Hi all,
I have a motherboard with 2 network interfaces

Sparky names the interfaces "eth0" and "eth1" (names assignment to hardware address changes at every boot)
I need to use the "enp38s0" and "enp39s0" naming schema.

How can I do this?

I tried to modify the file
/usr/lib/systemd/network/99-default.link

with this content


[Match]
OriginalName=*

[Link]
#NamePolicy=keep kernel database onboard slot path
#AlternativeNamesPolicy=database onboard slot path
NamePolicy=path kernel database onboard slot
AlternativeNamesPolicy=path database onboard slot
MACAddressPolicy=persistent

but nothing changed



smithloo

#1
I've got the same question
does anyone help?
just visit us https://www.qualitybacklink.net/
visit us:

AxL

Quote from: mirto on January 20, 2024, 08:05:18 PM[....]
I have a motherboard with 2 network interfaces

Sparky names the interfaces "eth0" and "eth1" (names assignment to hardware address changes at every boot)
I need to use the "enp38s0" and "enp39s0" naming schema.

How can I do this?
[....]


See:
➤ Want to know how you can use a program you have never used before? "man" will be your best new friend! Type "man <pkg-name>" in a shell.
➤ Or, point your browser to "manpages.debian.org/<pkg-name>" .... RTFM !!!

View the most recent posts on the forum