We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
常用的 ping,tracert,nslookup 一般用来判断主机的网络连通性,其实 Linux 下有一个更好用的网络联通性判断工具,它可以结合ping nslookup tracert 来判断网络的相关特性,这个命令就是 mtr。mtr 全称 my traceroute,是一个把 ping 和 traceroute 合并到一个程序的网络诊断工具。 traceroute默认使用UDP数据包探测,而mtr默认使用ICMP报文探测,ICMP在某些路由节点的优先级要比其他数据包低,所以测试得到的数据可能低于实际情况。
常用的 ping,tracert,nslookup 一般用来判断主机的网络连通性,其实 Linux 下有一个更好用的网络联通性判断工具,它可以结合ping nslookup tracert 来判断网络的相关特性,这个命令就是 mtr。mtr 全称 my traceroute,是一个把 ping 和 traceroute 合并到一个程序的网络诊断工具。
traceroute默认使用UDP数据包探测,而mtr默认使用ICMP报文探测,ICMP在某些路由节点的优先级要比其他数据包低,所以测试得到的数据可能低于实际情况。
参考:
1⃣️ 安装 mtr:
$ sudo apt update $ sudo apt install mtr
2⃣️ 使用 mrt:
$ mrt + ip/domain
mtr google.com
输出参数解释:
Host
Loss
Snt
Last
Avg
Best
Wrst
StDev
1⃣️ $ vim .zshrc
$ vim .zshrc
export PATH="/usr/local/sbin/:${PATH}"
2⃣️ $ source .zshrc # 使配置生效
$ source .zshrc
The text was updated successfully, but these errors were encountered:
No branches or pull requests
参考:
一、Ubuntu 安装和使用 mtr
1⃣️ 安装 mtr:
2⃣️ 使用 mrt:
二、
mtr google.com
效果图(macOS系统)输出参数解释:
Host
IP地址Loss
丢包率Snt
已发送的包数Last
最后一个包的延时Avg
平均延时Best
最低延时Wrst
最差延时StDev
方差(稳定性)三、macOS 配置 mtr
1⃣️
$ vim .zshrc
2⃣️
$ source .zshrc
# 使配置生效The text was updated successfully, but these errors were encountered: