Re: another f38->f40 issue: network if is renamed.

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

 



On 7/15/24 12:46 AM, fedora@xxxxxxxxxxxxxx wrote:
Thanks,

On 15/7/24 4:49 pm, Samuel Sieb wrote:
On 7/14/24 3:43 AM, 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.

What does it break?

I have a number of scripts, some tcpdump, some fw rules, some data collection, and such.
I see command failures when attempting to use eth1.

You can edit the connection with nmcli or directly in /etc/NetworkManager/system-connections/. In the "[connection]" section, add or edit the "interface-name=" line. Set it to what you want, presumably "eth1".

Looks like it may be what I need. I see two connection configurations for eth1. Should I remove one?

$ sudo ls -1 /etc/NetworkManager/system-connections/
'System eth1-9c92fad9-6ecb-3e6c-eb4d-8a47c6f50c04.nmconnection'
     # has 'interface-name=eth1'
'System eth1.nmconnection'
     # has 'interface-name=eth1'
'Wired connection 1.nmconnection'
     # does not have 'interface-name='

Check which one is enabled and active and for the interface. You probably only want one for the interface.

Maybe adding a name to the last one (eth0) will help?

Looking at the system log I see:

kernel: r8169 0000:05:00.0 eth0: RTL8168h/8111h, b4:2e:99:83:6d:7d, XID 541, IRQ 161
     # this is correct
kernel: e1000e 0000:02:00.0 eth1: (PCI Express:2.5GT/s:Width x1) 00:1b:21:3a:56:72
     # this is correct
kernel: e1000e 0000:02:00.0 enp2s0: renamed from eth1
     # this is what I do not want.

So, despite having 'interface-name=eth1', the interface is renamed. Why?

That's the kernel driver loading. Once NetworkManager takes it, it will do the rename.

--
_______________________________________________
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



[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