系统版本

# uname -a
Linux 2.6.18-53.el5 #1 SMP Mon Nov 12 02:22:48 EST 2007 i686 i686 i386 GNU/Linux
# cat /etc/redhat-release
CentOS release 5 (Final)

问题描述
前几天eth0还是好好的,今天发现网络不通了,ifconfig结果很奇怪。

# ifconfig -a
__tmp1286910964 Link encap:Ethernet HWaddr 00:30:48:81:54:87
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:602 errors:0 dropped:0 overruns:0 frame:0
TX packets:560 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:53441 (52.1 KiB) TX bytes:83164 (81.2 KiB)
Base address:0xb400 Memory:f2000000-f2020000
……

解决办法

在“/etc/sysconfig/network-scripts/ifcfg-eth0”文件加上“HWADDR=”相应行,然后ifdown eth0再ifup eth0,恢复正常。

参考信息

Bug 224662 – e100 ethernet device has __tmp name instead of ethX
0002791: eth0 device on PowerEdge 1950 is ‘unavailable’ after successful probe