Search This Blog

Showing posts with label tcpdump. Show all posts
Showing posts with label tcpdump. Show all posts

Friday, March 18, 2011

How to Monitor network traffic using TCPDUMP.

There is a very useful utility provided in linux to monitor the network traffic between two hosts.

Example : To monitor network traffic between Machine A and Machine B .
run following command on Machine A.

#tcpdump -npi eth0 host (MACHINEB)HOSTNAME/IP -vvvs0 -w /var/tmp/network_traffic.cap

once the command is executed just use any analysis tool to monitor the logs.