> For the complete documentation index, see [llms.txt](https://davidtancredi.gitbook.io/pentesting-notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://davidtancredi.gitbook.io/pentesting-notes/r3dcl1ff/tools/tcpdump.md).

# TCPDump

**#Assorted Commands**

<pre><code>tcpdump -D #Listing possible network interfaces on the system

$ tcpdump -D
1.eth0
2.eth1
3.eth2

tcpdump -c N 
<strong>tcpdump -i eth1 -c 10     #Capture only N number of packets
</strong>
tcpdump -i eth0           #Capture everything on a given interface

tcpdump host 10.10.10.10    #Target a specific IP

tcpdump src 11.11.11.11   #filter by source
tcpdump dst 11.10.10.11    #filter by destination

</code></pre>
