码迷,mamicode.com
首页 > Web开发 > 详细

Centos7:Failed to start LSB: Bring up/down networking

时间:2018-11-18 10:19:19      阅读:616      评论:0      收藏:0      [点我收藏+]

标签:uuid   strong   detail   emctl   fail   ons   net   service   png   

一开始配置的ifcfg-ens33

[root@cdh-141 ~]# cd /etc/sysconfig/network-scripts/
[root@cdh-141 network-scripts]# ls
ifcfg-ens33  ifdown-post      ifup-aliases  ifup-post      inactive
ifcfg-lo     ifdown-ppp       ifup-bnep     ifup-ppp       init.ipv6-global
ifdown       ifdown-routes    ifup-eth      ifup-routes    network-functions
ifdown-bnep  ifdown-sit       ifup-ippp     ifup-sit       network-functions-ipv6
ifdown-eth   ifdown-Team      ifup-ipv6     ifup-Team
ifdown-ippp  ifdown-TeamPort  ifup-isdn     ifup-TeamPort
ifdown-ipv6  ifdown-tunnel    ifup-plip     ifup-tunnel
ifdown-isdn  ifup             ifup-plusb    ifup-wireless
[root@cdh-141 network-scripts]# more ifcfg-ens33 
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=static
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=ens33
UUID=c25dceec-3196-43f8-86a3-f393aa52a2a3
DEVICE=ens33
ONBOOT=yes
DNS1=8.8.8.8
DNS2=114.114.114.114
IPADDR=192.168.0.141
PREFIX=24
GATEWAY=192.168.0.1
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes

问题状态:

执行 service network restart 出现以下错误

Restarting network (via systemctl):  Job for network.service failed. See ‘systemctl status network.service‘ and ‘journalctl -xn‘ for details.

执行systemctl status network:

显示有标题的错误信息。《Failed to start LSB: Bring up/down networking.》 原因是mac地址的问题

执行ip addr显示以下ip列表:

技术分享图片

解决方案:

修改ifcfg-ens33文件了,只修改HWADDR就可以了。接下来执行service network restart 就正常了。

修改后ifcfg-ens33

[root@cdh-141 network-scripts]# more ifcfg-ens33 
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=static
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=ens33
UUID=c25dceec-3196-43f8-86a3-f393aa52a2a3
HWADDR=00:0c:29:93:9e:97
DEVICE=ens33
ONBOOT=yes
DNS1=8.8.8.8
DNS2=114.114.114.114
IPADDR=192.168.0.141
PREFIX=24
GATEWAY=192.168.0.1
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes

 

Centos7:Failed to start LSB: Bring up/down networking

标签:uuid   strong   detail   emctl   fail   ons   net   service   png   

原文地址:https://www.cnblogs.com/yy3b2007com/p/9976206.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!