422
apply clause
IPv6 PBR supports the following types of
apply
clauses, as shown in
Table 19
. You can specify multiple
apply
clauses for a node, but some of them might not be executed. The
apply
clauses that determine the
packet forwarding paths are
apply access-vpn vpn-instance
,
apply next-hop
,
apply output-interface
,
apply default-next-hop
, and
apply default-output-interface
in a descending priority order.
Table 19
Priorities and meanings of apply clauses
Clause Meaning
Priority
apply precedence
Sets an IP precedence.
This clause is always executed.
apply loadshare
{
next-hop |
output-interface
|
default-next-hop
|
default-output-interface
}
Enables load sharing
among multiple next
hops, output interfaces,
default next hops, and
default output interfaces.
Multiple next hops, output interfaces, default
next hops, or default output interfaces operate in
either primary/backup or load sharing mode:
•
Primary/backup mode
—The first configured
next hop or output interface is used. When
the primary next hop or output interface fails,
the first configured backup next hop or output
interface takes over.
•
Load sharing mode
—Multiple next hops or
output interfaces load share traffic on a per
packet basis in turn according to the
configuration order.
By default, the primary/backup mode applies.
apply access-vpn vpn-instance
Sets VPN instances.
If a packet matches a forwarding entry of a
specified VPN instance, it is forwarded in the
VPN instance.
apply next-hop
and
apply
output-interface
Sets the next hop and sets
the output interface.
Only the
apply next-hop
clause is executed
when both are configured.
apply default-next-hop
and
apply default-output-interface
Sets the default next hop
and sets the default output
interface.
Only the
apply default-next-hop
clause is
executed when both are configured.
They take effect only when no next hop or output
interface is set or the next hop and output
interface are invalid, and the IPv6 packet does
not match any route in the routing table.
apply continue
Matches packets against
the next node upon
failure on the current
node.
The
apply continue
clause applies when the
apply access-vpn vpn-instance
,
apply next-hop
,
apply output-interface
,
apply default-next-hop
,
and
apply default-output-interface
clauses are
not configured or become invalid. For example,
the specified next hop is unreachable, the
specified output interface is down, or the
packets cannot be forwarded in the specified
VPN instance.