The ip-forwarding command configures packets to be forcibly forwarded using IP on the first node.
The undo ip-forwarding command disables packets from being forcibly forwarded using IP on the first node.
When a fault occurs on the network, you can first run the ping command to check network connectivity. On an MPLS network, if a fault occurs but the control layer fails to detect the fault, the ping operation fails. To fast identify whether the fault occurs on the MPLS network or on the IP network, you can configure IP packets to be forcibly forwarded using IP on the first node. This can help you fast locate the fault.
Only ICMP test instances support this configuration.
If you configure both the ip-forwarding and sendpacket passroute commands, the sendpacket passroute command takes effect. Therefore, the device sends packets without searching the routing table.