Linux MTR 命令使用解释

1、Mtr介绍: 一个不错的网络连通性判断工具

2、安装: yum install mtr -y 或者 dnf install mtr -y

3、基本使用: mtr 96.45.189.193

使用界面

4、名词解释

Host:主机ip地址
Lost:每个对应IP的丢包率
Snt: 设置发送的ping次数, 默认值是10 可以通过参数 -c 来指定
Last: 最近一次的返回延时
Avg:是平均值 发送ping包的平均延时
Best: 最短的延时
Wrst: 最长的延时
StDev: 标准偏差

5、常规用法

mtr -n 96.45.189.193   不显示host名称

mtr -c 5 96.45.189.193 设置发送5次之后自动停止
mtr -s 256 96.45.189.193 设置每次发送的数据包大小为 256

6、MTR的参数

简写全称详细描述
-F,–filename FILEread hostname(s) from a file
-4use IPv4 only
-6use IPv6 only
-u,–udpuse UDP instead of ICMP echo
-T,–tcpuse TCP instead of ICMP echo
-a,–address ADDRESSbind the outgoing socket to ADDRESS
-f,–first-ttl NUMBERset what TTL to start
-m,–max-ttl NUMBERmaximum number of hops
-U,–max-unknown NUMBERmaximum unknown host
-P,–port PORTtarget port number for TCP, SCTP, or UDP
-L,–localport LOCALPORTsource port number for UDP
-s,–psize PACKETSIZEset the packet size used for probing 用来指定ping数据包的大小 (常用)
-B,–bitpattern NUMBERset bit pattern to use in payload
-i,–interval SECONDSICMP echo request interval
-G,–gracetime SECONDSnumber of seconds to wait for responses
-Q,–tos NUMBERtype of service field in IP header
-e,–mplsdisplay information from ICMP extensions
-Z,–timeout SECONDSseconds to keep probe sockets open
-M,–mark MARKmark each sent packet
-r,–reportoutput using report mode
-w,–report-wideoutput wide report
-c,–report-cycles COUNTset the number of pings sent
-j,–jsonoutput json
-x,–xmloutput xml
-C,–csvoutput comma separated values 设置发送的ping次数,通常到达次数后会自动退出 (常用)
-l,–rawoutput raw format
-p,–splitsplit output
-t,–cursesuse curses terminal interface
–displaymode MODEselect initial display mode
-n,–no-dnsdo not resove host names 不对IP地址做域名解析 (常用)
-b,–show-ipsshow IP numbers and host names
-o,–order FIELDSselect output fields
-y,–ipinfo NUMBERselect IP information in output
-z,–aslookupdisplay AS number
-h,–helpdisplay this help and exit
-v,–versionoutput version information and exit
  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值