Error when staring network
Error when staring network
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 148 times
-
- CE.txt
- (1.99 KiB) Downloaded 134 times
Re: Error when staring network
Two errors there, one in the first file:
and te other looks like you copied the ifcfg file for the other device and forgot to change all references to enp0s3 to enp0s3f6Aug 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'
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
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
Re: Error when staring network
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
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.