Linux and open source articles and tutorials based on real world projects and deployments

Capturing packets with tcpdump

Tcpdump is a command line tool that is very useful during network troubleshooting. It will capture packets and display them on the screen or save them to a file.
Installing tcpdump is very easy with yum.

#yum install tcpdump

In order to run tcpdump you will need to have root or sudo priviliges.Below are some of the typical commands you will use when capturing with tcpdump.Capture any packet coming from or going to x.x.x.x