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 network: Bringing up interface eth0:  Error: no device found for connection ‘eth0‘.

Nov 17 11:31:16 openstack network: [FAILED]

Nov 17 11:31:16 openstack network: RTNETLINK answers: File exists

Nov 17 11:31:16 openstack network: RTNETLINK answers: File exists

Nov 17 11:31:16 openstack network: RTNETLINK answers: File exists

Nov 17 11:31:16 openstack network: RTNETLINK answers: File exists

Nov 17 11:31:16 openstack network: RTNETLINK answers: File exists

Nov 17 11:31:16 openstack network: RTNETLINK answers: File exists

Nov 17 11:31:16 openstack network: RTNETLINK answers: File exists

Nov 17 11:31:16 openstack network: RTNETLINK answers: File exists

Nov 17 11:31:16 openstack network: RTNETLINK answers: File exists

Nov 17 11:31:16 openstack systemd: network.service: control process exited, code=exited status=1

Nov 17 11:31:16 openstack systemd: Failed to start LSB: Bring up/down networking.

Nov 17 11:31:16 openstack systemd: Unit network.service entered failed state.

从错误提示“Error: no device found for connection ‘eth0‘”可以确定是配置文件eth0的问题,打开查看/etc/sysconfig/network-scripts/ifcfg-eth0文件发现其中的MAC地址和ifconfig命令输出的MAC地址不一样,具体如下所示:

[[email protected] ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0

HWADDR=1A:E9:47:A5:75:C8

TYPE=Ethernet

BOOTPROTO=static

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

IPADDR=192.168.1.79

PREFIX=24

GATEWAY=192.168.1.1

DNS1=192.168.1.1

DNS2=8.8.8.8

NAME=eth0

UUID=ba670f0c-201a-483b-8379-c8c72c03ab27

ONBOOT=yes

[[email protected] ~]# ifconfig

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500

inet 192.168.1.79  netmask 255.255.255.0  broadcast 192.168.1.255

inet6 fe80::8081:a6ff:fe9d:5887  prefixlen 64  scopeid 0x20<link>

ether 82:81:a6:9d:58:87  txqueuelen 1000  (Ethernet)

RX packets 3426  bytes 394042 (384.8 KiB)

RX errors 0  dropped 0  overruns 0  frame 0

TX packets 57  bytes 9578 (9.3 KiB)

TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

所以只需将ifcfg-eth0中的HWADDR变量值改为ifconfig命令里显示的MAC地址即可。

时间: 2024-11-08 19:02:13

Job for network.service failed的相关文章

网卡出现问题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

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处理方法

在克隆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

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 &quot;systemctl status network.service&quot; and &quot;journalctl -xe&quot; 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 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地址问题,如下图 在网卡配置文

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