SolutionPlease see below the debugging commands you can use to check the pim status.
The steps to debug PIM in
Huawei OLT:
1. After connecting the ONT, the service-port should be up and learn the MAC address.
huawei(diagnose)%%display service-port
huawei(diagnose)%%display mac-address service-port
2. After the STB or ONT send the IGMP report, the igmp user should be online.
huawei(diagnose)%%display igmp user service-port
If it’s not online, you can check the debugging and packet statistics, or capture the packets:
• debugging to monitor the packet between user and OLT:
huawei(diagnose)%%debugging igmp service-port 65535
huawei(diagnose)%%terminal monitor
huawei(diagnose)%%terminal debugging
• IGMP packet statistics:
huawei(diagnose)%%display igmp statistic service-port
huawei(diagnose)%%display igmp statistic vlan
• clear statistic huawei(diagnose)%%config
huawei(config)#igmp statistic reset service-port
huawei(config)#igmp statistic reset vlan
• Trace user packets:
huawei(diagnose)%%trace-counter ingress packet-type 35 [source ] [destination ] time 1000 //packet-type 35 is igmp
huawei(diagnose)%%display trace-counter
• Mirror the user-port to uplink-capture-port:
huawei(config)#acl 4000
huawei(config-acl-link-4000)#rule permit
huawei(config-acl-link-4000)#quit
huawei(config)#traffic-mirror inbound link-group 4000 port to port
huawei(config)#traffic-mirror outbound link-group 4000 port to port //delete mirror
huawei(config)#undo traffic-mirror inbound link-group 4000 port
huawei(config)#undo traffic-mirror outbound link-group 4000 port
huawei(config)#undo acl 4000
3. After the IGMP user is online, if the OLT has the route to the source ip, the OLT will send the join packet to the PIM neighbor. huawei(diagnose)%%display ip routing-table
huawei(diagnose)%%display pim neighbor
huawei(diagnose)%%display pim routing-table
huawei(diagnose)%%display pim control-message counters
//pim hello packet debug
huawei(diagnose)%%debugging pim neighbor
huawei(diagnose)%%terminal monitor
huawei(diagnose)%%terminal debugging
//pim join packet debug
huawei(diagnose)%%debugging pim join-prune
huawei(diagnose)%%terminal monitor
huawei(diagnose)%%terminal debugging
Mirror the uplink-port to uplink-capture-port:
huawei(config)#mirror port src-port dst-port all
// delete mirror
huawei(config)#undo mirror port
4. If the PIM neighbor and Router has received the pim join packet from
MA5600T MA5800 OLT, they should send the traffic to OLT.
• Query uplink-port program traffic:
huawei(diagnose)%%display multicast flow-statistic vlan ip
huawei(diagnose)%%display multicast flow-statistic vlan ip sourceip
• Query user-port program traffic:
huawei(config)#start statistics multicast port vlan ip
huawei(config)#display statistics multicast port
huawei(config)#stop statistics multicast port
5. If the OLT receives the correct traffic from uplink with PIM vlan, the OLT will forward the traffic to the ONT by the multicast forward table, which is generated after igmp user online and change the traffic vlan to mvlan.
• Multicast forward table:
huawei(diagnose)%%display multicast forwarding-table path vlan ip ont
• Query user-port program traffic:
huawei(config)#start statistics multicast port vlan ip
huawei(config)#display statistics multicast port //stop statistics
huawei(config)#stop statistics multicast port