Detailed analysis of route tracking command traceroute (1)

Source: Internet
Author: User
Tags traceroute command traceroute command in linux

Detailed analysis of route tracking command traceroute (1)

The premise for implementing all commands in this article is that you can access the Internet now.

People with a little computer knowledge know the ping command, which is used to check whether their host is connected to the target address, and the packet communication rate between their host and the target address, the so-called communication package is also the TCP/IP and UDP packets. Here we are a little more popular. For example, we can test this IT website csdn to obtain the following results:

However, traceroute is the route tracking command in windows. It is tracert, and you do not know what it is for non-computer networks.

In fact, the route tracking command can better show the details of the communication between the host and the target address.

In Ubuntu12.04, press Ctrl + Alt + T to open the terminal and enter traceroute. If you are prompted that the terminal is not installed, as shown in.

Then, run the following command to install traceroute first. In addition to the necessary things, Linux has nothing to install!

[Plain]View plaincopyprint?
  1. Sudo apt-get install traceroute

As shown in, after the screen is flushed quickly, it is only 51 kb because of this route tracking component. You can officially use the traceroute command in Linux.

Run the following command to test the communication details between Ubuntu12.04 and www.csdn.net,

[Plain]View plaincopyprint?
  1. Traceroute-n www.csdn.net

Here, "-n" indicates that only the IP address is required. Do not display the host name or domain name. That is to say, do not display the URL for me. The following results are displayed:

After the first record is found, there will be a bunch of unaccessibility because my Ubuntu12.04 is in a virtual machine and communicates with my host Windows 7 through bridging, the Network Status of the VM Ubuntu12.04 directly inherits the network of the host Windows 7 and does not know what Windows 7 is doing. Therefore, the same tracert route tracking command can only be used in Windows 7 cmd for this experiment.

First, run cmd, enter tracert, and find the cmd prompt. This is not a program, command, or batch file that can be run, or tracert cannot be found. This is because my Windows 7x64 does not set the content of the windows/system32 folder as the global variable of cmd.

As shown in, right-click "my computer or computer", select "properties or management", and select the "advanced" tab to open "environment variables ", in the "System variables" column, find the Path, edit it, and add a c: \ windows \ system32 \; and then click "OK ".

Then, run cmd and enter tracert. The tracert command instructions are displayed, so you can finally have fun.

Enter the following command, and the requirement is displayed. If the host needs to communicate with www.csdn.net, the entire communication package will flow.

[Plain]View plaincopyprint?
  1. Tracert-d-h 15 www.csdn.net

Only the IP address must be displayed. do not show the website address to me for 15 times.


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.