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 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.

解决方法:

打开查看/etc/sysconfig/network-scripts/ifcfg-eth0文件

1. 发现其中的MAC地址和ifconfig命令输出的MAC地址不一样,对于这种情况删除HWADDR这一行或者将这一行更新为ifconfig命令输出的MAC即可。

2. 完成第一步大部分人问题都能解决,如果还是报错的话,仔细看看该文件内有没有DEVICE这一行,如果有要注释或者删掉,因为这跟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

# DEVICE=en01677736

ONBOOT=yes

时间: 2024-11-08 16:50:25

Centos7 虚拟机复制后网卡问题 Job for network.service failed的相关文章

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

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://

Linux虚拟机克隆后网卡找不到问题

解决虚拟机克隆网卡丢失问题 1.克隆后的虚拟机网卡显示如下 [[email protected] 桌面]# ifconfig lo        Link encap:Local Loopback inet addr:127.0.0.1  Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING  MTU:16436  Metric:1 RX packets:120 errors:0 dropped:0 overruns:

虚拟机复制后修改eth1为eth0

虚拟机克隆后网卡变成eth1,改变的方法如下: 1.vim /etc/udev/rules.d/70-persistent-net.rules 删除上面两行,改红框里的位eth0 2.vim /etc/sysconfig/network-scripts/ifcfg-eth0 删除uuid和mac地址,修改ip 3.卸载网卡 modprobe -r e1000 4.装载网卡 modprobe e1000 5.重启 service network restart

vmware虚拟机复制后连网

vmware虚拟机复制后,在同一网段下连网,复制后用 ipconfig一般能看到lo 或者lo .eth1 此时: /etc/sysconfig/network-scrips/下的ifcfg-eth0还和原来虚拟机中的一样,没变. DEVICE=eth0 TYPE=Ethernet UUID=e7fbb0eb-9546-4aa0-a03f-b94180372ce4 ONBOOT=yes NM_CONTROLLED=yes BOOTPROTO=none HWADDR=00:0C:29:DA:2A:

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. 根据网

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