Jobfornetwork.servicefailedbecausethecontrolp。。。
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
保存之后执⾏
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.
这时候就纠结了,跑去原来的系统中查看源码看是不是⼿误改到了哪⼀项,结果发现原来的系统也不⾏了, 使⽤ ifconfig查看了⼀下
lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
exited
inet 127.0.0.1  netmask 255.0.0.0
inet6 ::1  prefixlen 128  scopeid 0x10<host>
loop  txqueuelen 1  (Local Loopback)
RX packets 0  bytes 0 (0.0 B)
RX errors 0  dropped 0  overruns 0  frame 0
TX packets 0  bytes 0 (0.0 B)
TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
少了⼀项⽹卡的,尝试着重启了系统,再测试⼀下,也是不⾏.跑去翻了⽹络上的⼤神门都是怎么解决了,尝试了数种⽅法,终于两个系统都解决了在 /etc/sysconfig/network-scripts⽬录下删除掉别的ifcfg-xxx(只保留⼀个你⽹卡同名的⽂档)
再把NetworkManager停⽤
systemctl stop NetworkManager
systemctl disable NetworkManager
使⽤ ip addr 查看 mac地址,把mac地址添加进 ifcfg-xxx 的HWADDR中(如果没有就再新添加⼀项)
HWADDR=xx:xx:xx:xx:xx:xx
:wq 保存之后再执⾏ systemctl restart network 就可以解决了

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。