centos上网络服务起不来network.service failed

前言:今天在开虚拟机,额,,,crt连不上虚拟机了,ping不通,说明虚拟机网卡挂了,去后台看下

发现报错:

Job for network.service failed because the  control process exited with error code. See "systemctl status  network.service" and "journalctl -xe" for details.

按照提示看下报错信息:命令行输入journalctl  -xe

说明真的挂了,查了下发现是系统中networkmanager和network起了冲突,这个就有点蛇皮了

原因:

在CentOS系统上,目前有NetworkManager和network两种网络管理工具。如果两种都配置会引起冲突,而且NetworkManager在网络断开的时候,会清理路由,如果一些自定义的路由,没有加入到NetworkManager的配置文件中,路由就被清理掉,网络连接后需要自定义添加上去。

解决方法:

1.将networkmanager服务停了

systemctl stop NetworkManager

systemctl  disable NetworkManager

2.重启网卡,就ok了

原文地址:https://www.cnblogs.com/ming369/p/10779835.html

时间: 2024-10-11 04:01:57

centos上网络服务起不来network.service failed的相关文章

Linux网卡启动报错Job for network.service failed处理方法

在克隆centos 修改静态IP地址之后,重启网络系统(命令:service network restart 或systemctl restart network.service)报错:job for network.service failed 如下截图 这是由于cat/etc/sysconfig/network-scripts/ifcfg-eno16777736 中HWADDR的地址和ifconfig中的地址不一样,如下图 这里只需要把ifconfig 里的MAC地址添加到.vi/etc/s

Job for network.service failed because the control process exited with error code问题

Job for network.service failed because the control process exited with error code问题 因为是克隆的,所以需要重新修改静态IP vim /etc/sysconfig/network-scripts/ifcfg-xxx 修改 BOOTPROTO=static 下方添加 IPADDR=静态IP地址 GATEWAY=默认网关 NETMASK=255.255.255.0 DNS1=114.114.114.114 保存之后执行

Linux重启网卡出现Job for network.service failed because....

问题描述:重启网卡的时候出现Job for network.service failed because the control process exited with error code. See "systemctl status network.service" and "journalctl -xe" for details. 个人解决方案: 1查看主机中是否开启了虚拟机的服务,把相关的服务全部启动,例如下图 2.可能是MAC地址问题,如下图 在网卡配置文

网卡出现问题Job for network.service failed

centos7网卡是需要写入MAC地址的不然启动不了 在运行"/etc/init.d/network restart"命令时,出现错误"Job for network.service failed. See 'systemctl status network.service' and 'journalctl -xn' for deta",运行"cat /var/log/messages | grep network"命令查看日志中出现的与netw

Job for network.service failed

在运行"/etc/init.d/network restart"命令时,出现错误"Job for network.service failed. See 'systemctl status network.service' and 'journalctl -xn' for deta",运行"cat /var/log/messages | grep network"命令查看日志中出现的与network相关的信息,会发现下面输出语句: Nov 17 

Centos7 虚拟机复制后网卡问题 Job for network.service failed

在运行“/etc/init.d/network restart”命令时,出现错误“Job for network.service failed. See 'systemctl status network.service' and 'journalctl -xn' for deta”,运行“cat /var/log/messages | grep network”命令查看日志中出现的与network相关的信息,会发现下面输出语句: Nov 17 11:31:16 openstack networ

CentOs7.4 网卡启动:Job for network.service failed

 **centos7.4新安装的虚拟机出现CentOs7 网卡出现问题:** Restarting network (via systemctl):  Job for network.service failed because the control process exited with error code. See "systemctl status network.service" and "journalctl -xe" for details. 根据网

C7重启网卡报Job for network.service failed because...错误

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

Linux 重启网卡失败 Job for network.service failed because the control process exited with error code. See "systemctl status network.service" and "journalctl -xe" for details.

linux下重启网卡使用命令 : service network restart 时报错: [[email protected] hadoop]# service network restart Starting network (via systemctl): Job for network.service failed because the control process exited with error code. See "systemctl status network.servi