This section describes how to use the CLI to configure 5-tuple packet capture, including setting the interface type and number, queue number, and IP address and port of the target host for receiving the captured packets.
To configure 5-tuple packet capture can affect the device performance to some extent, please be cautious.
After finishing network issue locating, immediately run the undo packet-capture command to stop packet capture and delete the packet capture configuration, run the reset packet-capture queue all command to clear the packet capture queue, and run the reset packet-capture statistic command to clear the packet capture statistics.
Hardware chip-based 5-tuple packet capture does not support global packet capture. To capture packets on all interfaces, use MPU CPU-based 5-tuple packet capture.
The FW supports packet capture in the root and virtual systems. USG6000E root and virtual systems have different packet capture queues and packet clearing mechanisms. Details are as follows:
The differences between the packet capture queues of the root system and virtual system:
In the root system, the packet capture queue is a block in the memory. Each queue can store a maximum of 1000 packets. Excess packets are discarded. To restart packet capture when the queue already stores 1000 packets, select another queue for the interface.In the virtual system, the packet capture queue is a .txt file that stores the captured packet data.Each virtual system has two packet capture queues.
The root system and virtual system have different mechanisms for clearing captured packets:
In the root system, the captured packet data is permanently stored in the memory, unless you run the reset packet-capture queue command to delete the data. In the virtual system, the captured packet data is directly stored in the CF card as a .txt file for only 30 minutes. Afterwards, the data is automatically deleted.
To stop the FW from capturing packets, run the undo packet-capture startup command.
If a packet capture process is stopped and started again, previously captured packets are deleted.