Hello, everyone!
Capture DHCP packets and collect debug info
1. Login ONT Web GUI by usingadmin account, and open lan-side telnet to access ONT.
2. Open Remote Mirror
Such as NT LAN-SideIP Address 192.168.100.1, and your PC's IP Address was 192.168.100.2, then setSource IP Address 192.168.100.1, set Destination IP Address as 192.168.100.2.
3. Telnet on ONT by SecureCRT or other tools, Open mirror function, let the customer’s PC collect with ONT’S LAN1 port.
WAP>set ethportmirror sourceport 10destport 1 mirrordate 2 enable 1
Notice:
dest port 1 means LAN1 collect PC, or dest port 2 means LAN2 collect PC.
Source port 6 means ONT’s pon port, but If your ONT version was more than R16C00, source port 10 means ONT’s pon port.
#Open the DHCP debug switch, such as DHCP WAN was the first wan
WAP>diagnose
Diagnose>debugging DHCP client packet interface wan1
4. Open capture software “Wireshark” and start to capture DHCP packets.
If this issue happened, then save all print information and captured files.
Close debug and mirror switch
WAP>set ethportmirror sourceport 10destport 1 mirrordate 2 enable 0
Notice: dest port 1 means LAN1 collect PC, or dest port 2 means LAN2 collect PC.
WAP>su
success!
SU_WAP>diagnose
success!
Diagnose>undo debugging DHCP client packet interface wan1
And Stop Packet Capture by Mirroring.

Collect Basic Infomation
1. Collect Fault Info from WEB GUI,and download the collected information to a local directory.
2. Download the ONT configuration file and save it to a local directory.

Example: WAN obtain the IP address
1. Open the DHCP debug switch, such as the first wan
Diagnose>debugging DHCP client packet interface wan1
If the debugging info shows no response of DHCP DISCOVER, the path to DHCP server may be blocked, or DHCP server doesn't respond, or their packet loss somewhere, etc.
WAP>
[2018-06-23 08:08][DHCPC_DEBUG]:[wan1] send discoverpacket with request ip[0.0.0.0] to 255.255.255.255, xid[5b75fa3c] pad[0]
[2018-06-23 08:08][DHCPC_DEBUG]:[wan1] received dhcpoffer packet from 171.2.20.254, xid[5b75fa3c]
[2018-06-23 08:08][DHCPC_DEBUG]:[wan1] send requestpacket with request ip[171.2.20.179] to 255.255.255.255, xid[5b75fa3c]I
[2018-06-23 08:08][DHCPC_DEBUG]:[wan1] received dhcp ackpacket from 171.2.20.254, xid[5b75fa3c]
[2018-06-23 08:08][DHCPC_DEBUG]:check_server_id:0x0, server_addr:0xfe1402ab
[2018-06-23 08:08][DHCPC_DEBUG]:[wan1] received ack,ip[171.2.20.179] submask[255.255.255.0] lease(lease time[0 days, 00:10:00] r
enew time[0 days, 00:05:00] rebind time[0 days, 00:08:45])xid[5b75fa3c]
2. Close the DHCP debug switch
Diagnose>undo debugging DHCP client packet interface wan1
Thanks.

