問題登場
systemctl restart nework 失敗,報錯:
Failed to start LSB Bring up/down networking
[root@centos7_009 network-scripts]# systemctl status network
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-02-27 19:26:14 CST; 12s ago
Docs: man:systemd-sysv-generator(8)
Process: 2486 ExecStop=/etc/rc.d/init.d/network stop (code=exited, status=0/SUCCESS)
Process: 2668 ExecStart=/etc/rc.d/init.d/network start (code=exited, status=1/FAILURE)
Feb 27 19:26:09 centos7_009 systemd[1]: Starting LSB: Bring up/down networking...
Feb 27 19:26:09 centos7_009 network[2668]: Bringing up loopback interface: [ OK ]
Feb 27 19:26:09 centos7_009 network[2668]: Bringing up interface Wired_connection_1: ERROR : [/etc/sysconfig/network-scripts/ifup-eth] Device has different MAC addres...d, ignoring.
Feb 27 19:26:09 centos7_009 network[2668]: [FAILED]
Feb 27 19:26:14 centos7_009 network[2668]: Bringing up interface ens32: [ OK ]
Feb 27 19:26:14 centos7_009 systemd[1]: network.service: control process exited, code=exited status=1
Feb 27 19:26:14 centos7_009 systemd[1]: Failed to start LSB: Bring up/down networking.
Feb 27 19:26:14 centos7_009 systemd[1]: Unit network.service entered failed state.
Feb 27 19:26:14 centos7_009 systemd[1]: network.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
解決過程
[root@centos7_009 ~]# cd /etc/sysconfig/network-scripts
[root@centos7_009 network-scripts]# ll
total 240
-rw-r--r--. 1 root root 337 Feb 12 05:59 ifcfg-ens32
-rw-r--r--. 1 root root 254 Sep 12 2016 ifcfg-lo
-rw-r--r--. 1 root root 363 Aug 29 17:56 ifcfg-Wired_connection_1
lrwxrwxrwx. 1 root root 24 Jun 14 2019 ifdown -> ../../../usr/sbin/ifdown
-rwxr-xr-x. 1 root root 627 Sep 12 2016 ifdown-bnep
-rwxr-xr-x. 1 root root 5817 Sep 12 2016 ifdown-eth
-rwxr-xr-x. 1 root root 6196 Nov 6 2016 ifdown-ib
-rwxr-xr-x. 1 root root 781 Sep 12 2016 ifdown-ippp
-rwxr-xr-x. 1 root root 4201 Sep 12 2016 ifdown-ipv6
lrwxrwxrwx. 1 root root 11 Jun 14 2019 ifdown-isdn -> ifdown-ippp
-rwxr-xr-x. 1 root root 1778 Sep 12 2016 ifdown-post
-rwxr-xr-x. 1 root root 1068 Sep 12 2016 ifdown-ppp
-rwxr-xr-x. 1 root root 837 Sep 12 2016 ifdown-routes
-rwxr-xr-x. 1 root root 1444 Sep 12 2016 ifdown-sit
-rwxr-xr-x. 1 root root 1621 Nov 6 2016 ifdown-Team
-rwxr-xr-x. 1 root root 1556 Apr 15 2016 ifdown-TeamPort
-rwxr-xr-x. 1 root root 1462 Sep 12 2016 ifdown-tunnel
lrwxrwxrwx. 1 root root 22 Jun 14 2019 ifup -> ../../../usr/sbin/ifup
-rwxr-xr-x. 1 root root 12688 Sep 12 2016 ifup-aliases
-rwxr-xr-x. 1 root root 859 Sep 12 2016 ifup-bnep
-rwxr-xr-x. 1 root root 11880 Sep 12 2016 ifup-eth
-rwxr-xr-x. 1 root root 10145 Nov 6 2016 ifup-ib
-rwxr-xr-x. 1 root root 12039 Sep 12 2016 ifup-ippp
-rwxr-xr-x. 1 root root 10525 Sep 12 2016 ifup-ipv6
lrwxrwxrwx. 1 root root 9 Jun 14 2019 ifup-isdn -> ifup-ippp
-rwxr-xr-x. 1 root root 642 Sep 12 2016 ifup-plip
-rwxr-xr-x. 1 root root 1043 Sep 12 2016 ifup-plusb
-rwxr-xr-x. 1 root root 2772 Sep 12 2016 ifup-post
-rwxr-xr-x. 1 root root 4154 Sep 12 2016 ifup-ppp
-rwxr-xr-x. 1 root root 1925 Sep 12 2016 ifup-routes
-rwxr-xr-x. 1 root root 3263 Sep 12 2016 ifup-sit
-rwxr-xr-x. 1 root root 1755 Apr 15 2016 ifup-Team
-rwxr-xr-x. 1 root root 1876 Apr 15 2016 ifup-TeamPort
-rwxr-xr-x. 1 root root 2682 Sep 12 2016 ifup-tunnel
-rwxr-xr-x. 1 root root 1740 Sep 12 2016 ifup-wireless
-rwxr-xr-x. 1 root root 4623 Sep 12 2016 init.ipv6-global
-rw-r--r--. 1 root root 15383 Sep 12 2016 network-functions
-rw-r--r--. 1 root root 26829 Sep 12 2016 network-functions-ipv6
-rw-r--r--. 1 root root 57 Feb 11 15:23 route-ens32
劃重點:
[root@centos7_009 network-scripts]# ll | grep ifcfg
-rw-r--r--. 1 root root 337 Feb 12 05:59 ifcfg-ens32
-rw-r--r--. 1 root root 254 Sep 12 2016 ifcfg-lo
-rw-r--r--. 1 root root 363 Aug 29 17:56 ifcfg-Wired_connection_1
下面 請移步:
http://alan1921.cn/index.php/2020/02/27/failed-to-start-lsb-bring-up-down-networking/