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.
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.