t**********g 发帖数: 3388 | 1 【 以下文字转载自 Linux 讨论区 】
发信人: thanksgiving (~灯红酒绿的上海~), 信区: Linux
标 题: 常用的调试网络的命令,除了ping和traceroute,还有什么?
发信站: BBS 未名空间站 (Mon Mar 17 00:02:43 2008)
除了ping和traceroute,还有什么常用的调试网络的命令? |
t**********g 发帖数: 3388 | 2 谢谢楼上几位。我的问题是,假设你有一个TCP connection,从A机器到B机器。这个
TCP connection不通,你怎么diagnose?
我会先ping B以确定B是不是alive。
还有什么可能原因导致这个TCP connection failure呢? |
s*******d 发帖数: 59 | |
g*****e 发帖数: 87 | 4 Lots of firewalls blocks ICMP which means ping might not work at all.
Try to telenet destIPaddress port to see if you can open the port or not.
Install wireshark/ethereal or tcpdump to see if you can start the TCP three
way handshaking process or not. You might be able to see if your nearest
gateway stop you or destination rejects you or something in between. |
f**y 发帖数: 138 | 5 ifconfig - check your interface
iptables - check your firewall rules
nmap - scan the remote machine
netstat - check listening ports, active connections, routing table, etc.
ip - check your another kind of routing policy |