Hello everybody today I will share how to capture packets in ONT by using CLI
For troubleshoot associate degree ONT issue, typically we'll ought to capture packets on its ports for analysis.
Normally we've got Wireshark code the laptop and this can facilitate us to capture the packets, therefore we will ought to set a mirror of traffic within the ports to be analyzed.
Handling Method
1. The mirror of the ONT ports are often set by WAP commands. The ONT's ETH, central processor or PON ports are often reflected to associate degree ETH port of the ONT wherever the laptop is connected.
NOTE:
Destination of the reflected packets should be associate degree ETH port.
2. Apply the subsequent command to modify the port mirror:
set ethportmirror sourceport 10 destport 1 mirrordate 2 change 1
Here is that the which means of each parameter:

NOTE:
The mirror are going to be mechanically disable if the ONT reboots. Please modify mirror before packet capture and disable when packet capture is competed.
3. In Wireshark move to Capture > Options Menu:
Select the specified interface and click in Start-to-Start packet capture.
4. Once finished, ought to stop and save the packet capture within the Wireshark:
5. Disable the port mirror within the ONT with the following command.
set ethportmirror sourceport 10 destport 1 mirrordate 2 change 0




