标签:style color strong 文件 sp on ad c file
移植DM9000后,执行ifconfig 和 route后,会出现:
~ # ifconfig
ifconfig: /proc/net/dev: No such file or directory
~ # ifconfig eth0 up
dm9000 dm9000 eth0: link down
~ # ifconfigdm9000 dm9000 eth0: link up, 100Mbps, full-duplex, lpa 0x4DE1
/proc # ifconfig lo up
/proc # ifconfig
ifconfig: /proc/net/dev: No such file or directory
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
/proc # ifconfig eth0 up
/proc # ifconfig
ifconfig: /proc/net/dev: No such file or directory
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
/proc # ifconfig eth0 192.168.5.188 netmask 255.255.255.0
/proc # route
route: can‘t open ‘/proc/net/route‘: No such file or directory
/proc # ifconfig
ifconfig: /proc/net/dev: No such file or directory
解决方法:/proc文件系统没挂载,手动执行:
mount -t proc proc /proc
mount -t proc proc /proc没挂载导致各种/proc下文件打不开
标签:style color strong 文件 sp on ad c file
原文地址:http://blog.csdn.net/xiangpingli/article/details/38946673