Member-only story
How to use tcpdump to capture ICMP Packets
Tcpdump command on Linux can be used to filter packets. Here are examples to filter ICMP and ICMPv6 packets with tcpdump command on Linux.
What is ICMP?
The Internet Control Message Protocol (ICMP) is a protocol that is used to send control messages between hosts on the network.
ICMP is mainly used to determine whether or not data is reaching its intended destination in a timely manner. ICMP is crucial for error reporting and testing.
The Ping command is a network diagnostic tool that utilizes ICMP messages to test the reachability of a host on the network.
Ping operates by sending ICMP echo request packets to the target host and waiting for an ICMP echo reply.
how to use ping command in Linux?
The ping command is used to test the reachability of a host on the network.The ping command has the following syntax:
ping [OPTION]... HOST
The “HOST” parameter specifies the name of the host that you want to ping.
The ping command can be used to send a single packet to a host or to send a series of packets.
To send a single packet to a host, you can use the following command:
ping -c 1 192.168.1.1
To send a series of packets to a host, use the following command: