如何系统地找到linux网络丢失背后的罪魁祸首?
为了下载文件/访问网页/使用ssh/等等,有几个层次的通信:应用程序、传输、互联网、链接( 维基百科 )。
application层)如何映射到linux中的程序/组件?有(合理)简单的系统来追踪这个问题。在伪代码中,它看起来类似于
for(component in A..Z) // from hardwarefailure,missing drivers to configuration in /etc/network/interfaces
{
if cmd_to_check(component).output == _OK_
then continue // problem is 100% not here, continue with next item
else break // problem is 100% with current component
}
do_adhoc_reseach_on(item)
fix(item)我想在这里集中讨论发生在我的机器上的问题,而不是远程或中间服务器的问题。
如果有分歧
如果有可用的免费资源将是首选
谢谢您的回答和/或参考。
发布于 2012-01-07 10:29:13
测试因特网连接性的步骤:
ethtool eth0ping -c 3 next_hop_ipping -c 3 8.8.8.8host www.google.comwget -O - http://www.google.comsudo arping workstation_ip。ping workstation_ip当你失败一步时,试着在下一步之前找出正在发生的事情。
https://serverfault.com/questions/347617
复制相似问题