Linux system routing Tracking MTR Command usage Example

Source: Internet
Author: User


Use Help

zhangnq@vm-199:~$ mtr-h
usage:mtr [-hvrwctglspniu46] [--help] [--version] [--report]
[--report-wide] [--report-cycles=count] [--curses] [--GTK]
[--raw] [--split] [--no-dns] [--address Interface]
[--psize=bytes/-s bytes]
[--interval=seconds] HOSTNAME [PacketSize]

MTR-H provides help commands

MTR-V display version information for MTR

Mtr-r reported mode display

Mtr-c set the number of packets sent per second

Mtr-s to specify the size of the ping packet

Mtr-n No-dns does not do domain name resolution on IP address

Mtr-a to set the IP address of the sending packet this is useful for a host by multiple IP addresses

Mtr-i Use this parameter to set the request between ICMP returns the default is 1 seconds

Mtr-4 IPv4

Mtr-6 IPV6

Use examples

1, reported form shows route tracking results

zhangnq@vm-199:~$ Mtr-r www.baidu.com
host:vm-199 loss% Snt last AVG best Wrst StDev
1.192.168.0.1 0% 10 0.7 0.8 0.6 1.0 0.1
2.??? 100.0 10 0.0 0.0 0.0 0.0 0.0
3.192.168.178.1 0% 10 1.1 1.2 1.0 1.8 0.2
4.122.227.239.133 0% 10 7.7 615.6 3.5 1344. 576.7
5.53.8.175.61.dial.nb.zj.dynam 0% 10 3.0 3.0 2.0 4.0 0.6
6.93.2.175.61.dial.nb.zj.dynam 60% 10 3.4 4.7 3.4 5.7 1.0
7.115.233.66.234 0% 10 10.7 6.9 4.6 10.7 2.2
8.115.233.66.233 30% 10 3.6 8.7 3.3 28.5 9.2
9.197.4.175.61.dial.nb.zj.dyna 0% 10 8.5 7.4 5.2 8.7 1.2
10.202.97.68.229 0% 10 12.5 11.6 9.8 14.2 1.6
11.202.102.69.18 0% 10 11.3 11.5 9.8 13.6 1.1
??? 100.0 10 0.0 0.0 0.0 0.0 0.0
13.180.97.32.6 0% 10 12.3 13.5 11.9 17.4 2.1
??? 100.0 10 0.0 0.0 0.0 0.0 0.0
??? 100.0 10 0.0 0.0 0.0 0.0 0.0
16.180.97.33.108 10% 10 11.4 12.7 10.9 18.0 2.1
The first column: Displays the IP address and the native domain name, this is similar with the tracert.

The second column loss%: is the packet loss rate for each corresponding IP displayed.

The third column snt:snt equals 10, sets the number of packets sent per second, and the default value of 10 can be specified by parameter-C.

Fourth column last: The most recent return delay shown.

Fifth avg: mean, this should be the average delay for sending ping packets.

Best of the Sixth column: the time with the shortest delay.

The Seventh column Wrst: The worst or longest time delay.

The eighth column StDev: standard deviation.

2, set the number of packets sent per second 30

zhangnq@vm-199:~$ Mtr-r-C www.baidu.com
host:vm-199 loss% Snt last AVG best Wrst StDev
1.192.168.0.1 0% 30 0.7 0.8 0.5 3.6 0.5
2.??? 100.0 30 0.0 0.0 0.0 0.0 0.0
3.192.168.178.1 0% 30 1.3 1.2 0.9 1.6 0.2
4.122.227.239.133 3.3% 30 1105. 94.1 3.0 1249. 301.0
5.9.8.175.61.dial.nb.zj.dynami 0% 30 3.5 3.1 2.0 6.9 1.1
6.115.233.65.85 26.7% 30 4.8 14.0 2.7 77.7 19.3
7.1.2.175.61.dial.nb.zj.dynami 66.7% 30 27.3 6.3 2.9 27.3 7.4
8.115.233.66.234 0% 30 4.6 8.5 3.9 46.0 8.6
9.115.233.66.233 76.7% 30 9.6 4.7 3.2 9.6 2.2
141.4.175.61.dial.nb.zj.dyna 0% 30 8.7 9.0 4.8 31.9 5.0
11.202.97.68.229 0% 30 12.3 12.2 9.5 17.9 1.5
12.202.102.69.10 0% 30 19.2 19.2 16.0 22.8 1.9
??? 100.0 30 0.0 0.0 0.0 0.0 0.0
14.180.97.32.14 0% 30 13.6 17.3 11.8 56.6 10.2
??? 100.0 30 0.0 0.0 0.0 0.0 0.0
??? 100.0 30 0.0 0.0 0.0 0.0 0.0
17.180.97.33.107 0% 30 13.4 13.5 12.1 18.8 1.4
3, set ping packet size of 1024 bytes.

zhangnq@vm-199:~$ Mtr-r-C 30-s 1024 www.baidu.com
host:vm-199 loss% Snt last AVG best Wrst StDev
1.192.168.0.1 0% 30 0.9 1.1 0.8 1.9 0.2
2.??? 100.0 30 0.0 0.0 0.0 0.0 0.0
3.192.168.178.1 0% 30 2.0 2.3 1.9 4.6 0.6
4.122.227.239.133 3.3% 30 1508. 647.1 3.7 1774. 783.9
5.53.8.175.61.dial.nb.zj.dynam 0% 30 4.0 4.7 2.9 26.3 4.6
6.93.2.175.61.dial.nb.zj.dynam 40% 30 3.5 5.5 3.5 15.0 2.9
7.115.233.66.234 0% 30 6.1 9.0 5.1 48.2 8.1
8.115.233.66.233 50% 30 4.8 5.7 3.5 13.1 2.5
9.197.4.175.61.dial.nb.zj.dyna 0% 30 8.0 8.6 6.2 11.0 1.3
10.202.97.68.229 0% 30 11.7 12.6 9.7 17.7 1.9
11.202.102.69.18 0% 30 16.0 13.7 11.2 23.0 2.2
??? 100.0 30 0.0 0.0 0.0 0.0 0.0
13.180.97.32.6 3.3% 30 12.3 13.7 10.7 21.7 2.2
??? 100.0 30 0.0 0.0 0.0 0.0 0.0
??? 100.0 30 0.0 0.0 0.0 0.0 0.0
 16. 180.97.33.108 0% 30 14.4 13.3 11.6 16.2 1.0

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.