1Introduction to Packet Capture
The packet capture function refers to the copying of packet headers from a mirrored port to an observation port for packet header analysis, which is used for troubleshooting and diagnostics.
The device itself does not have packet header analysis capabilities, so it is necessary to connect a PC to the observation port to analyze the captured packet headers using the Wireshark tool.
2Packet Mirroring Configuration
>
As shown in the figure, the packet header in the inbound direction of interface 10GE1/0/1 is mirrored to interface 10GE1/0/2, where it is analyzed on monitoring equipment.
The operation steps are as follows:
1. Configure interface 10GE1/0/2 on SwitchA as the local observation port
[SwitchA] observe-port 1 interface 10ge 1/0/2
2. Configure interface 10GE1/0/1 on SwitchA as the mirroring port to monitor its inbound packet flow
[SwitchA] interface 10ge 1/0/1[SwitchA-10GE1/0/1] port-mirroring observe-port 1 inbound