虚拟化容器,大数据,DBA,中间件,监控。

Centos6 Linux修改网卡MAC/different MAC address than expected, ignoring

07 05月
作者:admin|分类:系统运维
Centos6.6 64位服务器修改MAC地址

/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,修改对应值后重启网络即可。
浏览1991 评论0
返回
目录
返回
首页
阿里云Linux系统安装routeos/ros Ubuntu14配置apache/mysql/php/phpmyadmin/vsftp/ioncube环境