< Home

ip-forwarding

Function

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.

Format

ip-forwarding

undo ip-forwarding

Parameters

None

Views

NQA view

Default Level

2: Configuration level

Usage Guidelines

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.

Example

# Configure packets to be forwarded using IP.
<HUAWEI> system-view
[HUAWEI] nqa test-instance user test
[HUAWEI-nqa-user-test] test-type icmp
[HUAWEI-nqa-user-test] ip-forwarding
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >