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 an IPv6 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 IPv6 policy node are invalid.

Views

IPv6 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 IPv6 policy node are unavailable. To drop all matching packets when all next hops on the IPv6 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 IPv6 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 on IPv6 policy node 10 and configure the IPv6 policy node to drop matching packets when the next hop is invalid.

<Sysname> system-view
[Sysname] ipv6 policy-based-route policy1 permit node 10
[Sysname-pbr6-policy1-1] apply next-hop 1::1
[Sysname-pbr6-policy1-1] apply fail-action-drop next-hop