R2511-HP MSR Router Series Layer 3 - IP Routing Command Reference(V5)
302
Usage guidelines
Use a routing policy to filter routing information. A routing policy can contain several nodes and each
node comprises a set of if-match and apply clauses. The if-match clauses define the match criteria of the
node and the apply clauses define the actions to be taken on packets matching the criteria. The relation
between the if-match clauses of a node is logic AND, meaning all the if-match clauses must be satisfied.
The relation between nodes is logic OR, meaning a packet passing a node passes the routing policy.
Examples
# Create node 10 in permit mode for routing policy policy1 and enter routing policy node view.
<Sysname> system-view
[Sysname] route-policy policy1 permit node 10
[Sysname-route-policy]
IPv4 routing policy configuration commands
apply ip-address next-hop
Use apply ip-address next-hop to set a next hop for IPv4 routing information.
Use undo apply ip-address next-hop to remove the clause configuration.
Syntax
apply ip-address next-hop ip-address
undo apply ip-address next-hop
Default
No next hop is set for IPv4 routing information.
Views
Routing policy view
Default command level
2: System level
Parameters
ip-address: IP address of the next hop.
Usage guidelines
This command cannot set a next hop for redistributed routes.
Examples
# Configure node 10 in permit mode of routing policy policy1 to set next hop 193.1.1.8 for routes
matching AS path list 1.
<Sysname> system-view
[Sysname] route-policy policy1 permit node 10
[Sysname-route-policy] if-match as-path 1
[Sysname-route-policy] apply ip-address next-hop 193.1.1.8
display ip ip-prefix
Use display ip ip-prefix to display IPv4 prefix list statistics.










