< Home

ip forwarding disable

Function

The ip forwarding disable command disables IPv4 Layer 3 unicast forwarding on a switch.

The undo ip forwarding disable command enables IPv4 Layer 3 unicast forwarding on a switch.

By default, IPv4 Layer 3 unicast forwarding is enabled on a switch.

Format

ip forwarding disable

undo ip forwarding disable

Parameters

None

Views

System view

Default Level

2: Configuration level

Usage Guidelines

You can run this command to disable IPv4 Layer 3 unicast forwarding on a switch.

After IPv4 Layer 3 unicast forwarding is disabled on a switch, the IPv4 routing function becomes ineffective on the switch, and the switch cannot forward Layer 3 packets based on the IPv4 routing table and FIB table.

Example

# Disable IPv4 Layer 3 unicast forwarding on the switch.

<HUAWEI> system-view
[HUAWEI] ip forwarding disable
Warning: This operation will close IPv4 forwarding function and affect IPv4 traffic forwarding. Continue? [Y/N]:y
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >