Re: device names

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

 



On Sun, Apr 12, 2020 Roberto Ragusa <mail@xxxxxxxxxxxxxxxx> wrote:
> On 2020-04-10 20:53, Jack Craig wrote:


>> on F30, i would like to swap enp4s0 to eth0.
>>
>> outside the network ifcfg* files, any other place(file) to update?
>
> Having a proper ifcfg*, including the HWADDR MAC address used to be
> enough (but be sure you rebuild your initrd since renaming happens
> there).
>
> https://docs.fedoraproject.org/en-US/Fedora/25/html/Networking_Guide/sec-Understanding_the_Device_Renaming_Procedure.html
>
> Is that not working anymore?

AFAIK, you can't rename NICs via
/etc/sysconfig/network-scripts/ifcfg-*" any longer. If you use nmcli,
you can set "NAME=name" to refer to "name" in the commands.

Using "net.ifnames=0" at the kernel cmdline is the simplest solution.

But there are other methods:

1) You can rename NICs, NOT_TO "ethX", via

/etc/udev/rules.d/*.rules

or

/etc/systemd/network/*.link

2) You can keep "ethX" via

/etc/systemd/network/99-default.link

in which you set

NamePolicy=kernel

instead of

NamePolicy=keep kernel database onboard slot path

as in

/usr/lib/systemd/network/99-default.link

3) You can keep "ethX" via an empty

/etc/udev/rules.d/80-net-setup-link.rules

but this file was called something else ("80-net-name-slot.rules"?)
previously, so...


> Messing with grub kernel options looks definitely overkill.

Why? It's just one file edit.
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux