Network administrators can use sniffers to discover network issues and to monitor the network traffic. This information can be used to identify packets that are having errors, thereby getting to the root of problems and solving it to have an efficient network.
A packet sniffer captures all the data that is being transmitted through a network interface. Let's use tcpdump, which is a command-line tool for network sniffing.
tcpdump command can be used to capture packets from a particular interface. The following command will help us capture the packets on the
sudo tcpdump –i eth0
I initiated a ping from this machine (
192.168.1.100) to another machine (
192.168.1.8) in the same ...