Centos6 Linux修改网卡MAC/different MAC address than expected, ignoring
/etc/sysconfig/network-scripts/ifcfg-eth0
HWADDR=00:24:E8:63:7A:05
修改为:
HWADDR=00:24:E8:63:7A:08
这里重启网络,会有如下提示,实际修改未成功:
[root@ns1 ~]# /etc/init.d/network restart
Shutting down interface eth0: Device eth0 has MAC address 00:24:E8:63:7A:05, instead of configured address 00:24:E8:63:7A:08. Ignoring.
[FAILED]
Shutting down loopback interface: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface eth0: Device eth0 has different MAC address than expected, ignoring.
解决方法:
HWADDR=00:24:E8:63:7A:05
修改为:
MACADDR=00:24:E8:63:7A:08
原因:
HWADDR和MACADDR的不同之处,前者是用来根据HWADDR绑定ethX名称的,后者才是真正用来修改MAC地址的
注:32位服务器,
/etc/sysconfig/network-scripts/ifcfg-eth0 中已经是MACADDR,修改对应值后重启网络即可。
目录 返回
首页