Manual Chapter : Generate a tcpdump

Applies To:

Show Versions Show Versions

F5OS

  • 1.1.1, 1.1.0
Manual Chapter

Generate a tcpdump

You can use the
tcpdump
utility to capture traffic in chassis partitions. You can then save the captured traffic as a file that can be analyzed to help troubleshoot network issues.
  1. Connect using SSH to the partition management IP address.
  2. Generate a tcpdump.
    system diagnostics tcpdump
    These options are available to use with this command:
    Option
    Description
    Example
    -i | interface
    Specifies the interface on which to capture packets. Omit or specify
    "0/0.0"
    to indicate all interfaces.
    This example captures traffic on interface 1.0 on blade number 2:
    system diagnostics tcpdump interface "2/1.0"
    -w | outfile
    Specifies the pcap file to write the captured packets.
    This example combines options to capture only traffic on interface 2.0 on blade 1, where the source IP address is 198.51.100.0 and the destination port is 80, and sends the output to a specified directory.
    system diagnostics tcpdump outfile /var/F5/partition/shared/example_file.pcap
    bpf
    Specifies the Berkeley packet filter expression for tcpdump.
    This example captures traffic where the source IP address is 198.51.100.0 and the destination port is 443:
    system diagnostics tcpdump interface "1/2.0" bpf "src host 198.51.100.0 and dst port 80" outfile /var/F5/partition/shared/example_capture.pcap