当前位置: > 故障解决 > 常用软件问题 >

解决centos7 虚拟机错误Failed to start LSB: Bring

时间:2016-10-31 01:53来源:blog.csdn.net 作者:小问蓝晨的专栏 举报 点击:
[root@localhost Desktop]# systemctl status network.service 
● network.service - LSB: Bring up/down networking
   Loaded: loaded (/etc/rc.d/init.d/network)
   Active: failed (Result: exit-code) since Sun 2016-10-30 10:16:58 CST; 3min 12s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 11052 ExecStop=/etc/rc.d/init.d/network stop (code=exited, status=0/SUCCESS)
  Process: 11318 ExecStart=/etc/rc.d/init.d/network start (code=exited, status=1/FAILURE)


Oct 30 10:16:13 localhost.localdomain network[11318]: Could not load file '/e...
Oct 30 10:16:13 localhost.localdomain network[11318]: Could not load file '/e...
Oct 30 10:16:13 localhost.localdomain network[11318]: [  OK  ]
Oct 30 10:16:58 localhost.localdomain network[11318]: Bringing up interface W...
Oct 30 10:16:58 localhost.localdomain network[11318]: [FAILED]
Oct 30 10:16:58 localhost.localdomain network[11318]: Bringing up interface e...
Oct 30 10:16:58 localhost.localdomain systemd[1]: network.service: control pr...
Oct 30 10:16:58 localhost.localdomain systemd[1]: Failed to start LSB: Bring ...
Oct 30 10:16:58 localhost.localdomain systemd[1]: Unit network.service entere...
Oct 30 10:16:58 localhost.localdomain systemd[1]: network.service failed.

Hint: Some lines were ellipsized, use -l to show in full.

[root@localhost Desktop]# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 08:00:27:f9:72:2c brd ff:ff:ff:ff:ff:ff
3: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN 
    link/ether 52:54:00:9f:61:80 brd ff:ff:ff:ff:ff:ff
    inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0
       valid_lft forever preferred_lft forever
4: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast master virbr0 state DOWN qlen 500
    link/ether 52:54:00:9f:61:80 brd ff:ff:ff:ff:ff:ff

-----------------------------------------------------------------

 

注意上面加粗加红的字,这就是新的mac地址。

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

---------------------------------------------------------------

TYPE="Ethernet"
BOOTPROTO=dhcp
DEFROUTE="yes"
IPV4_FAILURE_FATAL="no"
IPV6INIT="yes"
IPV6_AUTOCONF="yes"
IPV6_DEFROUTE="yes"
IPV6_FAILURE_FATAL="no"
NAME="enp0s3"
UUID="7431ccd8-03a3-4717-b141-119851579162"
DEVICE="enp0s3"
ONBOOT="yes"
HWADDR=08:00:27:8B:CB:E5
PEERDNS=yes
PEERROUTES=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
~                                                        

------分隔线----------------------------
发表评论
为了和诣的生活,我关闭了评论页面,请大家到QQ群里交流吧:348944156,也欢迎关注本站微信公众号:centoscn
推荐内容