Quick way check of network connectivity using Ping (ICMP)
Posted: (EET/GMT+2)
In TCP/IP networks, you can use the ICMP protocol () to verify network connectivity using the "ping" feature. A ping is an ICMP network packet that can be used to check if a destination hostname or IP address exists on the network. It's an easy way verify network connectivity.
Ping sends ICMP Echo Request messages to a remote host and waits for replies. If replies are received, it confirms that the host is reachable and responding. Here are two examples:
ping server01 ping 192.168.0.1
A successful response looks like this:
Reply from 192.168.0.1: bytes=32 time<10ms TTL=128
If the host is not reachable, you may see:
Request timed out.
By default, ping sends four requests. You can change this with the -n parameter:
ping -n 10 server01
This command sends ten ICMP Echo Request packets instead of four.
Ping is very handy for quick checks when troubleshooting name resolution or basic network connectivity.