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
plumlee.cublog.cn
[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
[AD:TruCheck USB条码检测仪 ]
改正很简单,HWADDR=40:61:86:ED:35:17 改成正确的40:61:86:ED:25:E7 就OK了
HWADDR=40:61:86:ED:25:E7
如果你用dmesg | grep eth0这个命令看不到MAC地址的话,可以用ifconfig eth0这个命令来看。看到就记录下来,在ifcfg-eth0中改就可以了。
阅读(1684) | 评论(1) | 转发(0) |