tcpdump
Commands
Commands
Prints the
tcpdump
andlibpcap
version strings then exits:
Prints a list of usable network interfaces to capture from:
Utilizes the interface specified to capture on:
Combine Filters Using AND (
&&
)
Combine Filters Using OR (
or
)
Exclude Specific Traffic Using NOT (
not
)
Do Not Resolve
Hostnames
:
Do Not Resolve
Hostnames
orPorts
:
Capture
Ethernet
Headers and Data:
Show Packet Contents in
Hex
andASCII
:
Show
Ethernet
Header + Packet Contents inHex
andASCII
Increase
Verbosity
:
Capture a Specific
Number of Packets
:
Limit the Amount of Data to Capture from Each Packet:
Filter by
Packet Size
:
Show Absolute Sequence Numbers in
TCP
:
Reduce Protocol Information in the Output:
Filter by
Source
orDestination
Host:
Filter by
Network
Runs a capture on the specified interface and writes the output to a file:
Read the output from a specified file:
Write Packets to a File
Only capture traffic originating
from
or destinedto
theIP
address orhostname
specified:
Will filter the capture for anything sourcing
from
or destinedto
port
:
Filter by
Port Range
Will utilize a protocols common name to filter the traffic captured:
Will filter the capture for any protocol traffic matching their code:
Protocol Number List
Protocol Number List
ICMP
(Internet Control Message Protocol) ->1
IGMP
(Internet Group Management Protocol) ->2
TCP
(Transmission Control Protocol) ->6
UDP
(User Datagram Protocol) ->17
OSPF
(Open Shortest Path First) ->89
EIGRP
(Enhanced Interior Gateway Routing Protocol) ->88
AH
(Authentication Header) ->51
ESP
(Encapsulating Security Payload) ->50
GRE
(Generic Routing Encapsulation) ->47
IPv6
(Internet Protocol version 6) ->41
IPv4
(Internet Protocol version 4) ->4
DCCP
(Datagram Congestion Control Protocol) ->33
SCTP
(Stream Control Transmission Protocol) ->132
RARP
(Reverse Address Resolution Protocol) ->3
PPTP
(Point-to-Point Tunneling Protocol) ->115
MPLS
(Multiprotocol Label Switching) ->89
X.25
->93
FDDI
(Fiber Distributed Data Interface) ->97
Last updated