国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

Table of Contents
Check basic connectivity with ping
Use traceroute to view the route path
Using ping and traceroute is more effective
Home System Tutorial LINUX How to test network connectivity with ping and traceroute?

How to test network connectivity with ping and traceroute?

Jun 18, 2025 am 12:27 AM
Network connectivity

Use ping and traceroute to troubleshoot network connectivity issues. 1. Use ping to check basic connectivity. If you return "64 bytes from..." to indicate network access, it may be disconnected if "Request timed out" is displayed; 2. Use traceroute to view the routing path. A certain hop is an asterisk, which may be a node failure or a firewall blocking; 3. First, the public network IP is tested and then the domain name is tested to determine whether the DNS is normal; 4. Use the two to analyze the overall connectivity and specific failure points; 5. Note that it is normal for some nodes to not respond to ICMP, and you need to try several times to avoid misjudgment.

How to test network connectivity with ping and traceroute?

When testing network connectivity, ping and traceroute are the two most commonly used and basic command line tools. They can help you quickly determine whether the network is smooth and where something goes wrong.


Check basic connectivity with ping

The purpose of ping is to send an ICMP request packet to the target host and wait for a response. It can be used to determine whether the network between the local and the target is connected.

How to use:

Enter:

 ping example.com

Or ping the IP address directly:

 ping 8.8.8.8

How do you see the results?

  • If you return information like "64 bytes from...", it means that the network is connected.
  • If "Request timed out" or "Destination Host Unreachable" is always displayed, it may be that a link in the middle is broken.
  • Pay attention to the packet loss rate and delay time. These two indicators can help you initially judge network quality.

Small suggestions:

  • Start ping from the public network address (such as 8.8.8.8) and confirm that there is no problem with the local exit;
  • Try ping the domain name again to see if DNS resolves normally;
  • If the domain name can be resolved but does not work, it means that DNS is fine, but there may be a problem with the network.

Use traceroute to view the route path

The purpose of traceroute is to show every hop that the data packet passes from your computer to the target server. It can help you locate the specific node where network failure occurs.

How to use:

Enter:

 traceroute example.com

Windows users use tracert :

 tracert example.com

How do you see the results?

  • Each row represents an intermediate node and usually displays three rounds of test results.
  • If a row is full of asterisks ( *), indicating that the node is not responding or is blocked by a firewall.
  • If all the subsequent nodes timed out and the previous one was normal, it is very likely that something was wrong with that node.

Common phenomena:

  • The 5th jump starts to time out, and then all do not work → The problem may be on the 5th jump device.
  • A hop delay suddenly becomes much larger in the middle → There may be network congestion or link instability.

Using ping and traceroute is more effective

You can know whether it can be done by using ping alone, but you don’t know where it can’t be done; you can see the path using traceroute alone, but you don’t necessarily know where it is stuck. Only by combining the two can we locate the problem more accurately.

The troubleshooting process can be as follows:

  • First use ping to determine whether the whole is successful;
  • If it doesn't work, use traceroute to see which jump is stuck;
  • After finding the exception node, further contact the ISP or service provider to confirm the situation.

Note:

  • Some nodes do not respond to ICMP requests by default, so it does not mean they are really broken;
  • Sometimes the paths taken by different routes may vary;
  • Try a few more times to avoid occasional problems interfering with judgment.

Basically these are the operations. Although it seems simple, it is very practical when troubleshooting network problems. As long as you master the basic usage and analysis ideas of these two tools, most common network connection problems can be quickly located.

The above is the detailed content of How to test network connectivity with ping and traceroute?. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undress AI Tool

Undress AI Tool

Undress images for free

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to create a new, empty file from the command line? How to create a new, empty file from the command line? Jun 14, 2025 am 12:18 AM

There are three ways to create empty files in the command line: First, the simplest and safest use of the touch command, which is suitable for debugging scripts or placeholder files; Second, it is quickly created through > redirection but will clear existing content, which is suitable for initializing log files; Third, use echo"> file name to create a file with an empty string, or use echo-n""> file name to avoid line breaks. These three methods have their own applicable scenarios, and choosing the right method can help you complete the task more efficiently.

5 Best Open Source Mathematical Equation Editors for Linux 5 Best Open Source Mathematical Equation Editors for Linux Jun 18, 2025 am 09:28 AM

Are you looking for good software to write mathematical equations? If so, this article provides the top 5 equation editors that you can easily install on your favorite Linux distribution.In addition to being compatible with different types of mathema

SCP Linux Command – Securely Transfer Files in Linux SCP Linux Command – Securely Transfer Files in Linux Jun 20, 2025 am 09:16 AM

Linux administrators should be familiar with the command-line environment. Since GUI (Graphical User Interface) mode in Linux servers is not commonly installed.SSH may be the most popular protocol to enable Linux administrators to manage the servers

How to Install Eclipse IDE in Debian, Ubuntu, and Linux Mint How to Install Eclipse IDE in Debian, Ubuntu, and Linux Mint Jun 14, 2025 am 10:40 AM

Eclipse is a free integrated development environment (IDE) that programmers around the world use to write software, primarily in Java, but also in other major programming languages using Eclipse plugins.The latest release of Eclipse IDE 2023?06 does

24 Hilarious Linux Commands That Will Make You Laugh 24 Hilarious Linux Commands That Will Make You Laugh Jun 14, 2025 am 10:13 AM

Linux has a rich collection of commands, and while many of them are powerful and useful for various tasks, there are also some funny and whimsical commands that you can try out for amusement. 1. sl Command (Steam Locomotive) You might be aware of the

What is a PPA and how do I add one to Ubuntu? What is a PPA and how do I add one to Ubuntu? Jun 18, 2025 am 12:21 AM

PPA is an important tool for Ubuntu users to expand their software sources. 1. When searching for PPA, you should visit Launchpad.net, confirm the official PPA in the project official website or document, and read the description and user comments to ensure its security and maintenance status; 2. Add PPA to use the terminal command sudoadd-apt-repositoryppa:/, and then run sudoaptupdate to update the package list; 3. Manage PPAs to view the added list through the grep command, use the --remove parameter to remove or manually delete the .list file to avoid problems caused by incompatibility or stopping updates; 4. Use PPA to weigh the necessity and prioritize the situations that the official does not provide or require a new version of the software.

Install LXC (Linux Containers) in RHEL, Rocky & AlmaLinux Install LXC (Linux Containers) in RHEL, Rocky & AlmaLinux Jul 05, 2025 am 09:25 AM

LXD is described as the next-generation container and virtual machine manager that offers an immersive for Linux systems running inside containers or as virtual machines. It provides images for an inordinate number of Linux distributions with support

Gogo - Create Shortcuts to Directory Paths in Linux Gogo - Create Shortcuts to Directory Paths in Linux Jun 19, 2025 am 10:41 AM

Gogo is a remarkable tool to bookmark directories inside your Linux shell. It helps you create shortcuts for long and complex paths in Linux. This way, you no longer need to type or memorize lengthy paths on Linux.For example, if there's a directory

See all articles