How to do a packet capture (tcpdump)

Sample Command on how to use TCP Dump

Linux: tcpdump -w {filename}.pcap  -c 200 {limit number of packets}

tcpdump -s 2000 -w dump.pcap

Then you can email the file to any one using command

mail -s "dump.pcap" email@gmail.com < dump.pcap

You can then open with file w/ Wireshark

 

http://www.thegeekstuff.com/2010/08/tcpdump-command-examples/
Posted by: Natural Networks NOC - June 6, 2012. This article has been viewed 4636 times.
Online URL: https://kb.naturalnetworks.com/article.php?id=27

Powered by PHPKB (Knowledge Base Software)