O'Reilly logo

Troubleshooting Ubuntu Server by Skanda Bhargav

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Network sniffing with tcpdump

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.

Capturing packets from eth0

The tcpdump command can be used to capture packets from a particular interface. The following command will help us capture the packets on the eth0 interface:

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required