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.

根据网上提供的办法 ifconfig查看网卡地址然后写入 ifcfg-ens33网卡i配置文件中,并没有解决问题。然后自己捯饬了一上午。终于找到了彻底解决网卡报错的方法。

请关闭虚拟机的 selinux 和 NetworkManager 功能。

1. 彻底删除虚拟机上的网卡。重新添加一个新的。

2. ifconfig查看网卡的mac地址。是否与新网卡配置文件里的一致。如果不一致在新网卡配置文件中改成ifconfig的mac地址。

由于系统字符识别原因新生成的网卡配置文件可能是 ifcfg***1结尾的文件。请用cat ifcfg*1 > ifcfgens33(与ifconfig网卡名一致)查看下内容并改成新的名字。然后删除 ifcfg###1

3.配置新网卡的内容

service network restart  查看是否还有错误。正常情况下错误消失。

4. 测试网关联通性,及上网功能。

4.1 如果不能ping通网关 把虚拟机的 NAT换成 vm8

4.2检查虚拟机网关ip是否与 本机 vm8 ip地址相同。

nat上网参考http://blog.51cto.com/maomaochong/1789679

至此填坑完成。特此记录  2018-5-5 12:42

原文地址:http://blog.51cto.com/maomaochong/2112975

时间: 2024-10-11 08:37:47

CentOs7.4 网卡启动:Job for network.service failed的相关文章

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

解决: [[email protected] hadoop]# systemctl stop NetworkManager[[email protected] hadoop]# systemctl disable NetworkManager ############## 然后:重启网卡即可:[[email protected] hadoop]# systemctl restart network[[email protected] hadoop]# ifconfig 原文地址:https://

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

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地址问题,如下图 在网卡配置文

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

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

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

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. 按照提示看下报错信息:命令行输入journa

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 保存之后执行