102 CHAPTER 5: IP ROUTING PROTOCOL OPERATION
The if-match clauses for a node in the route policy require that the route satisfy all
the clauses to match the node before the actions specified by the apply clauses
can be executed.
If no if-match clauses are specified, all the routes pass the filtering on the node.
Defining Apply Clauses for a Route Policy
The apply clauses specify actions, which are the configuration commands
executed after a route satisfies the filtering conditions that are specified in the
if-match clauses. In this way, some attributes of the route can be modified.
Perform the following configurations in Route policy view.
By default, no apply clauses are defined.
If the routing information meets the match conditions specified in the route policy,
then this value is regarded as the MED value of the IGP route.
Importing Routing Information Discovered by Other Routing Protocols
A routing protocol can import the routes that are discovered by other routing
protocols to enrich its route information. The route policy can filter route
information to implement the redistribution. If the destination routing protocol
that imports the routes cannot directly reference the route costs of the source
routing protocol, you should satisfy the requirement of the destination protocol by
specifying a route cost for the imported route.
Perform the following configuration in routing protocol view.
By default, the routes discovered by other protocols are not imported.
In different routing protocol views, the parameter options are different. For
details, refer to the description of the import-route command for each protocol .
Tabl e 102 Defining Apply Clauses
Operation Command
Set the next-hop address of the routing
information
apply ip next-hop { ip-address [
ip-address ] | acl acl-number }
Cancel the next-hop address of the routing
information
undo apply ip next-hop
Set the tag domain of the routing information apply tag value
Cancel the tag domain of the routing
information
undo apply tag
Tabl e 103 Configuring Importing Routes of Other Protocols
Operation Command
Import routes of other protocols import-route protocol [ med med |
cost cost ] [ tag value ] [ type
1 | 2 ] [ route-policy
route-policy-name ]
Do not import routes of other protocols undo import-route protocol