Article 5307A Set static IP, network service will no longer boot

Set static IP, network service will no longer boot

by
Zeno McDohl
from LinuxQuestions.org on (#5307A)
I set a static IP for my CentOS 7 server using `nmtui edit` (edited Wired connection 1), and now the network service (`systemctl restart network`) no longer boots.

Log output:

Code: -- Unit network.service has begun starting up.
May 03 21:52:09 NIXSERVER NetworkManager[1010]: <info> [1588557129.6050] ifcfg-rh: update /etc/sysconfig/network-scripts/ifcfg-Wired_connection_1 (d8fac711-9114-32c9-a759-05fdeed28a6f,"Wired connection 1")
May 03 21:52:09 NIXSERVER NetworkManager[1010]: <warn> [1588557129.6094] ifcfg-rh: loading "/etc/sysconfig/network-scripts/ifcfg-eth0" fails: File '/etc/sysconfig/network-scripts/ifcfg-eth0' had neither TYPE nor DEVICE keys.
May 03 21:52:10 NIXSERVER network[12774]: Bringing up loopback interface: [ OK ]
May 03 21:52:10 NIXSERVER network[12774]: Bringing up interface Wired_connection_1: [ OK ]
May 03 21:52:10 NIXSERVER NetworkManager[1010]: <info> [1588557130.9329] audit: op="connection-activate" uuid="08e23dbd-9817-4247-98f3-4a149eecd390" name="enp0s25" result="fail" reason="No suitable device found for this connection."
May 03 21:52:10 NIXSERVER network[12774]: Bringing up interface enp0s25: Error: Connection activation failed: No suitable device found for this connection.
May 03 21:52:10 NIXSERVER network[12774]: [FAILED]
May 03 21:52:11 NIXSERVER NetworkManager[1010]: <warn> [1588557131.1644] ifcfg-rh: loading "/etc/sysconfig/network-scripts/ifcfg-eth0" fails: File '/etc/sysconfig/network-scripts/ifcfg-eth0' had neither TYPE nor DEVICE keys.
May 03 21:52:11 NIXSERVER network[12774]: Bringing up interface eth0: Could not load file '/etc/sysconfig/network-scripts/ifcfg-eth0'
May 03 21:52:11 NIXSERVER NetworkManager[1010]: <warn> [1588557131.3840] ifcfg-rh: loading "/etc/sysconfig/network-scripts/ifcfg-eth0" fails: File '/etc/sysconfig/network-scripts/ifcfg-eth0' had neither TYPE nor DEVICE keys.
May 03 21:52:11 NIXSERVER network[12774]: Could not load file '/etc/sysconfig/network-scripts/ifcfg-eth0'
May 03 21:52:11 NIXSERVER network[12774]: ERROR : [/etc/sysconfig/network-scripts/ifup-eth] Device does not seem to be present, delaying initialization.
May 03 21:52:11 NIXSERVER /etc/sysconfig/network-scripts/ifup-eth[13057]: Device does not seem to be present, delaying initialization.
May 03 21:52:11 NIXSERVER network[12774]: [FAILED]
May 03 21:52:11 NIXSERVER network[12774]: RTNETLINK answers: File exists
May 03 21:52:11 NIXSERVER network[12774]: RTNETLINK answers: File exists
May 03 21:52:11 NIXSERVER network[12774]: RTNETLINK answers: File exists
May 03 21:52:11 NIXSERVER network[12774]: RTNETLINK answers: File exists
May 03 21:52:11 NIXSERVER network[12774]: RTNETLINK answers: File exists
May 03 21:52:11 NIXSERVER network[12774]: RTNETLINK answers: File exists
May 03 21:52:11 NIXSERVER network[12774]: RTNETLINK answers: File exists
May 03 21:52:11 NIXSERVER network[12774]: RTNETLINK answers: File exists
May 03 21:52:11 NIXSERVER network[12774]: RTNETLINK answers: File exists
May 03 21:52:11 NIXSERVER systemd[1]: network.service: control process exited, code=exited status=1
May 03 21:52:11 NIXSERVER systemd[1]: Failed to start LSB: Bring up/down networking.
-- Subject: Unit network.service has failedIs there anything I am missing? This hardware only has one ethernet connected to it.

Command output for `nmcli -p dev`:

Code: ====================================================
Status of devices
====================================================
DEVICE TYPE STATE CONNECTION
----------------------------------------------------
docker0 bridge connected docker0
enp12s0 ethernet connected Wired connection 1
enp11s0 ethernet unavailable --
lo loopback unmanaged --latest?d=yIl2AUoC8zA latest?i=YO--otqZ3To:cObSthkh3r4:F7zBnMy latest?i=YO--otqZ3To:cObSthkh3r4:V_sGLiP latest?d=qj6IDK7rITs latest?i=YO--otqZ3To:cObSthkh3r4:gIN9vFwYO--otqZ3To
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments