If you add "net.ifnames=0" to the kernel parameters, the interface names
should stay as "ethx" instead of "enwhatever".
But I have to admit that I never tried to add this to an existing
install, but always made sure to also add this parameter when booting
the installer image, so that the network configuration will be created
for the ethx interface names.
On 14/07/2024 12:43, fedora@xxxxxxxxxxxxxx wrote:
I notice that the network interface 'eth1' is now renamed 'enp2s0' but
eth0 is left alone.
How do I stop this rename? It breaks a number of thing for me.
I note that some interfaces are configured in
/etc/sysconfig/networking/devices/
-rw-r--r-- 1 root root 579 Dec 9 2022 ifcfg-eth0
-rw-r--r-- 1 root root 653 Jul 13 20:11 ifcfg-eth1
-rw-r--r-- 1 root root 55 Dec 9 2022 route-eth0
but many more are in
/etc/sysconfig/network-scripts/
where there is no ifcfg-eth1.
Is there some confusion between the two places?
Maybe I need to put ifcfg-eth1 with the others? I will test...
Tried, and got a failure:
[network] You are using 'network' service provided by
'network-scripts', which are now deprecated.
[network] 'network-scripts' will be removed from distribution in
near future.
[network] It is advised to switch to 'NetworkManager' instead for
network management.
So NM does at least look in network-scripts, should I empty that directory?
ifcfg-eth0 in both places is a bit different, which one is used? I am
happy to do a cleanup.
NM also overwrites by handmade /etc/resolv.conf...
Looks like a mess to me.
--
_______________________________________________
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
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue