R2511-HP MSR Router Series Layer 3 - IP Routing Configuration Guide(V5)

261
Table 9 Priorities and meanings of apply clauses
Clause Meanin
g
Priorit
y
apply ip-df zero
Sets the DF (Don't Fragment)
bit in the IP header to 0,
which means the packet can
be fragmented.
This clause is always executed.
apply access-vpn
vpn-instance
Sets VPN instances.
If this clause is configured, other apply clauses, except
the apply ip-df zero clause, are not executed.
If a packet matches a forwarding entry of a specified
VPN instance, it is forwarded in the VPN instance. If it
does not match any entry in all VPN instances
specified, it is discarded.
apply ip-precedence Sets an IP precedence.
If configured for public network forwarding, that is, the
apply access-vpn vpn-instance clause is not
configured, this clause is always executed.
apply
output-interface and
apply ip-address
next-hop
Sets the output interface and
sets the next hop.
The apply ip-address next-hop clause takes
precedence over the apply output-interface clause.
Only the apply ip-address next-hop clause is executed
when both are configured.
apply
output-interface
ip-address next-hop
dhcpc
Sets the output interface and
next hop (the next hop
address is the gateway
address learned through
DHCP).
For a point to point (P2P) link, the next hop address is
the peer address, so you only need to specify the output
interface by using the apply output-interface
command.
For a non-P2P link, specify both the output interface and
the next hop. If the output interface obtains an IP
address through DHCP, you can use the apply
output-interface ip-address next-hop dhcpc command
to specify the gateway address learned through DHCP
as the next hop.
apply default
output-interface and
apply ip-address
default next-hop
Sets the default output
interface and sets the default
next hop.
The apply ip-address default next-hop clause takes
precedence over the apply default output-interface
clause. Only the apply ip-address default next-hop
clause is executed when both are configured.
They take effect only in the following situations:
No output interface or next hop is set.
The output interface and next hop are invalid.
The packet does not match any route, except for the
default route, in the routing table.
Relationship between the match mode and clauses on a node
Does a packet match all the
if-match clauses on the
node?
Match mode
permit deny
Yes
PBR executes the apply clause on the
node.
The packet is forwarded according
to the routing table.
No
PBR matches the packet against the
next node.
PBR matches the packet against the
next node.