6-6
z The if-match clauses of a route policy node are in logic AND relationship, namely, routing
information has to satisfy all its if-match clauses before being executed with its apply clauses.
z You can specify no or multiple if-match clauses for a route policy node. If no if-match clause is
specified, and the route policy node is in permit mode, all routing information can pass the node.
If it is in deny mode, no routing information can pass it.
z The if-match commands for matching IPv4 destination, next hop and source address are different
from those for matching IPv6 ones.
Defining apply Clauses
Follow these steps to define apply clauses for a route policy:
To do… Use the command… Remarks
Enter system view system-view —
Enter route policy node view
route-policy
route-policy-name { permit
| deny } node node-number
Required
Not created by default.
for IPv4 routes
apply ip-address
next-hop ip-address
Optional
Not set by default.
The setting does not apply to
redistributed routing information.
Set the next
hop
for IPv6 routes
apply ipv6 next-hop
ipv6-address
Optional
Not set by default.
The setting does not apply to
redistributed routing information.
Set the preference for the
routing protocol
apply preference
preference
Optional
Not set by default.
Set a tag value for RIP routing
information
apply tag value
Optional
Not set by default.
z The difference between IPv4 and IPv6 apply clauses is the command for setting the next hop for
routing information.
z The apply ip-address next-hop and apply ipv6 next-hop commands do not apply to
redistributed IPv4 and IPv6 routes respectively.