CentOS5: Device eth0 has different MAC address than expected

Centos/linux重启出现错误信息:
Device eth0 has different MAC address than expected

应该是dmesg 和 eth0 配置文件之间的冲突。

[root@banyue.net ~]# dmesg | grep eth0
divert: allocating divert_blk for eth0
eth0: RTL-8139C+ at 0xd0842000, 40:61:86:ED:25:E7, IRQ 11

[root@banyue.net ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
HWADDR=40:61:86:ED:35:17
ONBOOT=yes
TYPE=Ethernet
IPADDR=192.168.122.101
NETMASK=255.255.255.0
GATEWAY=192.168.122.1
DNS1=192.168.122.1

改正很简单,HWADDR=40:61:86:ED:35:17  改成正确的40:61:86:ED:25:E7  就OK了
HWADDR=40:61:86:ED:25:E7

One thought on “CentOS5: Device eth0 has different MAC address than expected

发表评论

电子邮件地址不会被公开。 必填项已用 * 标注

*

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>