Hello, friend!
Packet capture methods for the following versions:
1.In V100R006C00 and earlier versions, run the following command to enable local mirroring.
For example, to mirror LAN1 to LAN2, run the following command:
WAP>set port config portid 1 mirroren 1 dstportid 2 mirrortype 2
In this command, portid 1 indicates the source port LAN1; dstportid 2 indicates the destination port LAN2. If mirroren is 1, mirroring is enabled; if mirroren is 0, mirroring is disabled. If mirrortype is 0, packets are captured on the outbound interface; If mirrortype is 1, packets are captured on the inbound interface; If mirrortype is 2, packets are captured on both the inbound and outbound interfaces.
2.In V300R012C00, run the following command to enable local mirroring.
For example, to mirror LAN1 to LAN2, run the following command:
WAP>set ethportmirror sourceport 1 destport 2 mirrordate 1 enable 1
In this command, the sourceport numbers are as follows: 1-4: Ethernet interface; 5: CPU; 6: pon port. The destport numbers range from 1 to 4. The mirrordate numbers are as follows: 0 indicates out; 1 indicates in; 2 indicates all; enable indicates whether the function is enabled; 0 indicates that the function is disabled; 1 indicates that the function is enabled.
I hope it helps.
Thank you!