Search This Blog

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.

No comments:

Post a Comment