天天看點

CentOS5: Device eth0 has different MAC address than expected

http://sys.firnow.com/linux/x8002010n08m/27s90182462.html

Centos/linux重新開機出現錯誤資訊:

Device eth0 has different MAC address than expected

應該是dmesg 和 eth0 配置檔案之間的沖突。

[[email protected] ~]# 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

[ro[email protected] ~]# 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條碼檢測儀 www.webscaninc.com.cn]

改正很簡單,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中改就可以了。

文章出處:飛諾網(www.firnow.com):http://sys.firnow.com/linux/x8002010n08m/27s90182462.html

繼續閱讀