R0106-HP MSR Router Series Layer 3 - IP Routing Configuration Guide(V7)

356
apply clause
PBR supports the types of apply clauses shown in Table 16. You can specify multiple apply clauses for a
node, but some of them might not be executed. The following apply clauses determine the packet
forwarding paths in a descending order:
apply access-vpn vpn-instance
apply next-hop
apply output-interface
apply default-next-hop
apply default-output-interface
Table 16 Priorities and meanings of apply clauses
Clause Meanin
g
Priorit
y
apply precedence Sets an IP precedence. This clause is always executed.
apply ip-df df-value
Sets the DF (Don't
Fragment) bit in the IP
header.
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 packet does not
match any route in the routing table.