Error when staring network

Issues related to configuring your network
Post Reply
Azard
Posts: 1
Joined: 2023/08/31 13:35:50

Error when staring network

Post by Azard » 2023/08/31 13:50:35

I am having an issue starting a network interface (enp0s31f6). I have two interface but the other works fine (enp3s0). Ii only happens when I set it to dhcp. If I set it to static, no issue when I restart the network service. Actually earlier today I accidentally deleted the ifcfg-enp0s31f6 file. I recreate it manually and confirmed the UUID is correct. All this happen after that careless event.
Attachments
NetworkManager.txt
(4.81 KiB) Downloaded 125 times
CE.txt
(1.99 KiB) Downloaded 110 times

User avatar
TrevorH
Site Admin
Posts: 33223
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Error when staring network

Post by TrevorH » 2023/08/31 14:28:06

Two errors there, one in the first file:
Aug 31 19:31:12 samson NetworkManager[1003]: <warn> [1693481472.1381] ifcfg-rh: loading "/etc/sysconfig/network-scripts/ifcfg-enp0s31f6" fails: Invalid GATEWAY IP4 address '192.168.1..1'
and te other looks like you copied the ifcfg file for the other device and forgot to change all references to enp0s3 to enp0s3f6
Aug 31 15:36:20 samson network[9758]: Bringing up interface enp0s31f6: Error: Connection activation failed: No suitable device found for this connection (device enp3s0 not available because profile is not compatible with device (mismatching interface name)).
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

User avatar
jlehtone
Posts: 4532
Joined: 2007/12/11 08:17:33
Location: Finland

Re: Error when staring network

Post by jlehtone » 2023/09/01 06:49:44

Azard wrote:
2023/08/31 13:50:35
Actually earlier today I accidentally deleted the ifcfg-enp0s31f6 file. I recreate it manually and confirmed the UUID is correct.
Definition of a connection is stored in a file. On default setup (when package NetworkManager-config-server is not installed) the NetworkManager does automatically create a connection for every interface (that daes not already have a defined connection). These automatic connections are written to files only if they are explicitly modified.

In other words, if you had rebooted after the deletion, you should have gotten a proper DHCP-based connection for enp0s31f6.

To "recreate manually", you could/should have ran:

Code: Select all

nmcli con add type ethernet con-name enp0s31f6 ifname enp0s31f6
That would have written correct values into right file. (For more, see man nmcli-examples and man nmcli.)

The UUID is actually insignificant; it is not used anywhere unless referred to by other connections (e.g. with bridges, bonds, vlans).
The UUID has to be unique (among connections) and valid, but that's about it.

Post Reply