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

[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
~                                                                       
                     

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值