Network Troubleshooting
Last updated
Last updated
ping www.baidu.comtraceroute -w 1 www.baidu.com
# -w 超时等待时间,此处设置为 1.0 sec (default 5.0 sec)mtr
# mtr比traceroute 显示内容丰富,建议使用mtrtelnet www.baidu.com 80
# 退出使用 control + ] ,然后输入quittcpdump -i any -n port 80
# -i 指定网卡,any 所有网卡
# -n 不显示域名,以ip形式显示
# -w 保持到文件
# host 指定主机
# port 指定端口
# e.g.
# tcpdump -i any -n host x.x.x.x
# tcpdump -i any -n host x.x.x.x and port 80
# tcpdump -i any -n host x.x.x.x and port 80 -w /DIR/FILEnetstat -ntpl
# -n 不显示域名,以ip形式显示
# -t 只显示tcp协议的内容
# -p Show the PID and name of the program to which each socket belongs.
# -l Show only listening sockets.ss -ntpl
# 同 netstat