Linux: 网卡eth0名称变成__tmp1286910964解决办法
测 试 九月 9th, 2009系统版本
# 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)
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
……
__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=
参考信息
Bug 224662 – e100 ethernet device has __tmp name instead of ethX
0002791: eth0 device on PowerEdge 1950 is ‘unavailable’ after successful probe
最近评论