如何系统地find在Linux中的互联网丢失背后的罪魁祸首?
即要下载文件/访问网页/使用SSH /等,有几个层次的交stream:应用程序,运输,互联网,链接( 维基百科 )
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)
我想把重点放在我的机器上发生的问题,而不是远程或中间服务器的问题
如果有差异
如果可用的免费资源将是首选
预先感谢任何答案和/或参考
testingInternet连接的步骤:
ethtool eth0 ping -c 3 next_hop_ip ping -c 3 8.8.8.8 host www.google.com wget -O - http://www.google.com sudo arping workstation_ip ping workstation_ip : ping workstation_ip 当你失败了一步,试着去找下一个之前发生的事情。