CentOS 7 网卡、网络服务无法启动或重启

启动网卡时提示错误

[[email protected] ~]# ifup eth0 Error: Connection activation failed: The base network connection was interrupted [[email protected] ~]# ifup eth0 RTNETLINK answers: File exists

重启网络服务时提示错误

[[email protected] ~]# systemctl restart network
Job for network.service failed because the control process exited with error code. See "systemctl status network.service" and "journalctl -xe" for details.

查看network服务的状态

[[email protected] ~]# systemctl status network.service -l
● 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 Wed 2018-07-25 10:26:39 CST; 15min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 28690 ExecStop=/etc/rc.d/init.d/network stop (code=exited, status=0/SUCCESS)
  Process: 30094 ExecStart=/etc/rc.d/init.d/network start (code=exited, status=1/FAILURE)
Jul 25 10:26:39 centos network[30094]: RTNETLINK answers: File exists
Jul 25 10:26:39 centos network[30094]: RTNETLINK answers: File exists
Jul 25 10:26:39 centos network[30094]: RTNETLINK answers: File exists
Jul 25 10:26:39 centos network[30094]: RTNETLINK answers: File exists
Jul 25 10:26:39 centos network[30094]: RTNETLINK answers: File exists
Jul 25 10:26:39 centos network[30094]: RTNETLINK answers: File exists
Jul 25 10:26:39 centos systemd[1]: network.service: control process exited, code=exited status=1
Jul 25 10:26:39 centos systemd[1]: Failed to start LSB: Bring up/down networking.
Jul 25 10:26:39 centos systemd[1]: Unit network.service entered failed state.
Jul 25 10:26:39 centos systemd[1]: network.service failed.

查看日志

[[email protected] ~]# journalctl -xe
Jul 25 10:42:38 centos NetworkManager[616]:   [1532486558.8406] manager: N
Jul 25 10:42:38 centos NetworkManager[616]:   [1532486558.8412] device (et
Jul 25 10:42:38 centos NetworkManager[616]:   [1532486558.8424] device (et
Jul 25 10:42:38 centos NetworkManager[616]:   [1532486558.8473] policy: au
Jul 25 10:42:38 centos NetworkManager[616]:   [1532486558.8487] device (et
Jul 25 10:42:38 centos NetworkManager[616]:   [1532486558.8489] device (et
Jul 25 10:42:38 centos NetworkManager[616]:   [1532486558.8491] manager: N
Jul 25 10:42:38 centos NetworkManager[616]:   [1532486558.8608] device (et
Jul 25 10:42:38 centos NetworkManager[616]:   [1532486558.9080] device (et
Jul 25 10:42:38 centos NetworkManager[616]:   [1532486558.9088] dhcp4 (eth
Jul 25 10:42:38 centos NetworkManager[616]:   [1532486558.9233] dhcp4 (eth
Jul 25 10:42:38 centos dhclient[30661]: DHCPDISCOVER on eth3 to 255.255.255.255
Jul 25 10:42:44 centos dhclient[30661]: DHCPDISCOVER on eth3 to 255.255.255.255
Jul 25 10:42:52 centos dhclient[30661]: DHCPDISCOVER on eth3 to 255.255.255.255
Jul 25 10:43:08 centos dhclient[30661]: DHCPDISCOVER on eth3 to 255.255.255.255
Jul 25 10:43:23 centos NetworkManager[616]:   [1532486603.8424] dhcp4 (eth
Jul 25 10:43:23 centos NetworkManager[616]:   [1532486603.8425] dhcp4 (eth
Jul 25 10:43:23 centos NetworkManager[616]:   [1532486603.8460] dhcp4 (eth
Jul 25 10:43:23 centos NetworkManager[616]:   [1532486603.8460] dhcp4 (eth
Jul 25 10:43:23 centos NetworkManager[616]:   [1532486603.8467] device (et
Jul 25 10:43:23 centos NetworkManager[616]:   [1532486603.8473] manager: N
Jul 25 10:43:23 centos NetworkManager[616]:   [1532486603.8478] device (et
Jul 25 10:43:23 centos NetworkManager[616]:   [1532486603.8487] device (et

NetworkManager的状态

[[email protected] ~]# systemctl status NetworkManager -l
● NetworkManager.service - Network Manager
   Loaded: loaded (/usr/lib/systemd/system/NetworkManager.service; enabled; vendor preset: enabled)
   Active: active (running) since Mon 2018-07-23 16:53:28 CST; 1 day 17h ago
     Docs: man:NetworkManager(8)
 Main PID: 616 (NetworkManager)
   CGroup: /system.slice/NetworkManager.service
           └─616 /usr/sbin/NetworkManager --no-daemon
Jul 25 10:26:46 centos dhclient[30413]: DHCPDISCOVER on eth3 to 255.255.255.255 port 67 interval 17 (xid=0x5761d4ed)
Jul 25 10:27:03 centos dhclient[30413]: DHCPDISCOVER on eth3 to 255.255.255.255 port 67 interval 21 (xid=0x5761d4ed)
Jul 25 10:27:23 centos NetworkManager[616]:   [1532485643.8333] dhcp4 (eth3): request timed out
Jul 25 10:27:23 centos NetworkManager[616]:   [1532485643.8337] dhcp4 (eth3): state changed unknown -> timeout
Jul 25 10:27:23 centos NetworkManager[616]:   [1532485643.8367] dhcp4 (eth3): canceled DHCP transaction, DHCP client pid 30413
Jul 25 10:27:23 centos NetworkManager[616]:   [1532485643.8368] dhcp4 (eth3): state changed timeout -> done
Jul 25 10:27:23 centos NetworkManager[616]:   [1532485643.8372] device (eth3): state change: ip-config -> failed (reason 'ip-config-unavailable', sys-iface-state: 'managed')
Jul 25 10:27:23 centos NetworkManager[616]:   [1532485643.8375] manager: NetworkManager state is now DISCONNECTED
Jul 25 10:27:23 centos NetworkManager[616]:   [1532485643.8379] device (eth3): Activation: failed for connection 'eth3'
Jul 25 10:27:23 centos NetworkManager[616]:   [1532485643.8385] device (eth3): state change: failed -> disconnected (reason 'none', sys-iface-state: 'managed')

0 Comments

发表评论

电子邮件地址不会被公开。 必填项已用*标注