Shutting down interface eth0: Error: Device 'eth0' (/org/freedesktop/NetworkManager/Devices/0) disc

安装CENT OS时手动配置了IP和DNS,安装完成后,IP未生效

[root@localhost network-scripts]# cat ifcfg-eth0
DEVICE=eth0
BOOTPROTO=none
BROADCAST=10.205.1.255
GATEWAY=10.205.0.254
IPADDR=10.205.0.70
NETMASK=255.255.255.0
NM_CONTROLLED=yes
ONBOOT=yes
TYPE=Ethernet
UUID="cbf78fc4-dca7-431f-bacb-66e9fb152dcd"
HWADDR=5A:2D:8A:5F:F7:9C
PREFIX=23
DNS1=211.155.27.88
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System eth0"
LAST_CONNECT=1417162738


service network restart:

有如下报错

hutting down interface eth0:  Error: Device 'eth0' (/org/freedesktop/NetworkManager/Devices/0) disconnecting failed: This device is not active                                                           [FAILED]
Shutting down interface eth1:  Error: Device 'eth1' (/org/freedesktop/NetworkManager/Devices/1) disconnecting failed: This device is not active                                                           [FAILED]

搜索网上解决方案:

  1. chkconfig NetworkManager off
  2. chkconfig network on
  3.  service NetworkManager stop
  4. Stopping NetworkManager daemon: [ OK ]
  5. service network start
结果报如下错:

Bringing up interface eth0:  Device eth0 has different MAC address than expected, ignoring

搜解决方案:

#ifconfig eth0 down
#cd /etc/sysconfig/network-scripts 
#vi ifcfg-eth0
修改其中的"HWADDR=xx:xx:xx:xx:xx:xx"为"MACADDR=xx:xx:xx:xx:xx:xx"
#ifconfig eth0 up
#service network start

问题解决,日志如下:
Bringing up loopback interface:  [  OK  ]
Bringing up interface eth0:  RTNETLINK answers: Device or resource busy
[  OK  ]
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
[root@localhost network-scripts]# ifconfig
eth0      Link encap:Ethernet  HWaddr B6:D7:97:82:7A:26  
          inet addr:10.205.0.70  Bcast:10.205.1.255  Mask:255.255.254.0


  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值