apply fail-action-drop next-hop
Use apply fail-action-drop next-hop to set the action that drops matching packets when all next hops on a policy node are invalid.
Use undo apply fail-action-drop next-hop to restore the default.
Syntax
apply fail-action-drop next-hop
undo apply fail-action-drop next-hop
Default
The drop action is not configured. The matching packets are forwarded based on the typical packet forwarding process if all next hops on the policy node are invalid.
Views
Policy node view
Predefined user roles
network-admin
Usage guidelines
By default, the device uses the typical packet forwarding process to route matching packets when all next hops on the policy node are unavailable. To drop the matching packets when all next hops on the policy node are unavailable, use this command. This command is typically used in scenarios that require strict routing paths.
If no next hops are specified on the policy node, this command drops all packets that match the node.
This command does not apply to software-forwarded packets.
Examples
# Set next hop 1.1.1.1 on policy node 10 and configure the policy node to drop matching packets when the next hop is invalid.
<Sysname> system-view [Sysname] policy-based-route policy1 permit node 10 [Sysname-pbr-policy1-10] apply next-hop 1.1.1.1 [Sysname-pbr-policy1-10] apply fail-action-drop next-hop