Tag Archives: network.service – LSB: Bring up/down networking

[Solved] VMware Modify network.service Error: LSB: Bring up/down networking

modify the network configuration: VIM/etc/sysconfig/network scripts/ifcfg-ens32

TYPE="Ethernet"
#BOOTPROTO="dhcp"
DEFROUTE="yes"
PEERDNS="yes"
PEERROUTES="yes"
IPV4_FAILURE_FATAL="no"
IPV6INIT="yes"
IPV6_AUTOCONF="yes"
IPV6_DEFROUTE="yes"
IPV6_PEERDNS="yes"
IPV6_PEERROUTES="yes"
IPV6_FAILURE_FATAL="no"
NAME="eno16777728"
UUID="47be0836-29b3-4ae8-8c41-8ba96a7cb0f8"
DEVICE="ens32"
ONBOOT="yes"

BOOTPROTO="static"
IPADDR=192.168.7.101
GATEWAY=192.168.7.2
METMASK=255.255.255.0
DNS1=8.8.8.8
DNS2=114.114.114.114

systemctl restart network.service

● network.service - LSB: Bring up/down networking
   Loaded: loaded (/etc/rc.d/init.d/network; bad; vendor preset: disabled)
   Active: failed (Result: exit-code) since Thu 2020-07-02 11:21:16 CST; 4min 26s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 1631 ExecStart=/etc/rc.d/init.d/network start (code=exited, status=1/FAILURE)

Jul 02 11:21:16 node1 network[1631]: RTNETLINK answers: File exists
Jul 02 11:21:16 node1 network[1631]: RTNETLINK answers: File exists
Jul 02 11:21:16 node1 network[1631]: RTNETLINK answers: File exists
Jul 02 11:21:16 node1 network[1631]: RTNETLINK answers: File exists
Jul 02 11:21:16 node1 network[1631]: RTNETLINK answers: File exists
Jul 02 11:21:16 node1 network[1631]: RTNETLINK answers: File exists
Jul 02 11:21:16 node1 systemd[1]: network.service: control process exited, code=exited status=1
Jul 02 11:21:16 node1 systemd[1]: Failed to start LSB: Bring up/down networking.
Jul 02 11:21:16 node1 systemd[1]: Unit network.service entered failed state.
Jul 02 11:21:16 node1 systemd[1]: network.service failed.

journals -xe

Jul 02 11:33:45 node1 systemd[1]: network.service failed.
Jul 02 11:33:45 node1 polkitd[705]: Unregistered Authentication Agent for unix-process:1803:35978 (system bus name :1.29, object path /org/freedesktop/Poli
Jul 02 11:35:59 node1 polkitd[705]: Registered Authentication Agent for unix-process:2069:49419 (system bus name :1.37 [/usr/bin/pkttyagent --notify-fd 5 -
Jul 02 11:35:59 node1 polkitd[705]: Unregistered Authentication Agent for unix-process:2069:49419 (system bus name :1.37, object path /org/freedesktop/Poli
Jul 02 11:36:06 node1 polkitd[705]: Registered Authentication Agent for unix-process:2081:50192 (system bus name :1.38 [/usr/bin/pkttyagent --notify-fd 5 -
Jul 02 11:36:06 node1 systemd[1]: Reloading.
Jul 02 11:36:06 node1 polkitd[705]: Unregistered Authentication Agent for unix-process:2081:50192 (system bus name :1.38, object path /org/freedesktop/Poli
Jul 02 11:36:12 node1 polkitd[705]: Registered Authentication Agent for unix-process:2106:50727 (system bus name :1.39 [/usr/bin/pkttyagent --notify-fd 5 -
Jul 02 11:36:12 node1 systemd[1]: Starting LSB: Bring up/down networking...
-- Subject: Unit network.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit network.service has begun starting up.
Jul 02 11:36:12 node1 network[2112]: Bringing up loopback interface:  [  OK  ]
Jul 02 11:36:12 node1 network[2112]: Bringing up interface eno16777728:  ERROR     : [/etc/sysconfig/network-scripts/ifup-eth] Device eno16777728 does not 
Jul 02 11:36:12 node1 /etc/sysconfig/network-scripts/ifup-eth[2239]: Device eno16777728 does not seem to be present, delaying initialization.
Jul 02 11:36:12 node1 network[2112]: [FAILED]
Jul 02 11:36:12 node1 network[2112]: Bringing up interface ens32:  ERROR     : [/etc/sysconfig/network-scripts/ifup-eth] Device eno16777728 does not seem t
Jul 02 11:36:12 node1 /etc/sysconfig/network-scripts/ifup-eth[2264]: Device eno16777728 does not seem to be present, delaying initialization.
Jul 02 11:36:12 node1 network[2112]: [FAILED]
Jul 02 11:36:12 node1 network[2112]: RTNETLINK answers: File exists
Jul 02 11:36:12 node1 network[2112]: RTNETLINK answers: File exists
Jul 02 11:36:12 node1 network[2112]: RTNETLINK answers: File exists
Jul 02 11:36:12 node1 network[2112]: RTNETLINK answers: File exists
Jul 02 11:36:12 node1 network[2112]: RTNETLINK answers: File exists
Jul 02 11:36:12 node1 network[2112]: RTNETLINK answers: File exists
Jul 02 11:36:12 node1 network[2112]: RTNETLINK answers: File exists
Jul 02 11:36:12 node1 network[2112]: RTNETLINK answers: File exists
Jul 02 11:36:12 node1 network[2112]: RTNETLINK answers: File exists
Jul 02 11:36:12 node1 systemd[1]: network.service: control process exited, code=exited status=1
Jul 02 11:36:12 node1 systemd[1]: Failed to start LSB: Bring up/down networking.
-- Subject: Unit network.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit network.service has failed.
-- 
-- The result is failed.
Jul 02 11:36:12 node1 systemd[1]: Unit network.service entered failed state.
Jul 02 11:36:12 node1 systemd[1]: network.service failed.
Jul 02 11:36:12 node1 polkitd[705]: Unregistered Authentication Agent for unix-process:2106:50727 (system bus name :1.39, object path /org/freedesktop/Poli

Solution:

ip addr to see if the driver is consistent with the NIC profile

cd /etc/sysconfig/network-scripts/

ls -l

mv /etc/sysconfig/network-scripts/ifcfg-eno16777728 /etc/sysconfig/network-scripts/ifcfg-ens32

Modify the configuration file vim /etc/sysconfig/network-scripts/ifcfg-ens32

reboot