The ip-forwarding command configures ping packets to be forcibly forwarded through IP on the first node, so that you can check whether the IP network is faulty.
The undo ip-forwarding command restores the default setting.
By default, packets are forwarded using MPLS on an MPLS network.
Usage Scenario
When a fault occurs in 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 through IP on the first node. This can help you fast locate the fault.
Prerequisites
Before using the ip-forwarding command, run the test-type command to specify the type of the test instance as icmp.