Fortinet white logo
Fortinet white logo

tcpdump

tcpdump

Examine the route taken to another network host.

Syntax

tcpdump [-c count| -i interface |expression]

Option

Description

-c count

The count for capturing packets.

-i interface

The interface name, (for example port1).

expression

Selects which packets will be dumped. If no expression is provided, all packets on the net will be dumped. Otherwise, only packets for which expression is true will be dumped.
Example:

tcpdump -c 3 -i port1

tcpdump

tcpdump

Examine the route taken to another network host.

Syntax

tcpdump [-c count| -i interface |expression]

Option

Description

-c count

The count for capturing packets.

-i interface

The interface name, (for example port1).

expression

Selects which packets will be dumped. If no expression is provided, all packets on the net will be dumped. Otherwise, only packets for which expression is true will be dumped.
Example:

tcpdump -c 3 -i port1