Packet Captures: Difference between revisions

m
Line 279:
|Capture packets with proper readable timestamp || tcpdump -n -tttt -i eth0
|-
|Read packets only longer or smaller than N bytes || tcpdump -w capture.pcap greater 1024<br />tcpdump -w capture.pcap less 1024
|-
| ||tcpdump -w capture.pcap less 1024
|-
|Receive only the packets of a specific protocol type || tcpdump -i eth0 arp
Line 291 ⟶ 289:
|Capture TCP communication packets between two hosts || tcpdump -w comm.pcap -i eth0 udp and \(host 172.20.68.176 and host 172.24.173.9\)
|-
|Filter Packets – Capture all the packets other than arp and rarp || tcpdump -i eth0 not arp and not rarp<br />'and' 'or' and 'not' condition are used to filter the packets
|-
| || “and”, “or” and “not” condition are used to filter the packets
|}
<br />