linux-centos6.6 64位服务器修改MAC地址

上一篇 / 下一篇  2016-02-15 16:43:08 / 个人分类:linux

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,修改对应值后重启网络即可。

TAG: CentOS centos 修改 Linux Mac mac 服务器 linux 64 MAC 地址

 

评分:0

我来说两句

显示全部

:loveliness: :handshake :victory: :funk: :time: :kiss: :call: :hug: :lol :'( :Q :L ;P :$ :P :o :@ :D :( :)

Open Toolbar