HP MSR2000/3000/4000 Router Series Layer 3 - IP Routing Command Reference
76
Predefined user roles
network-admin
Parameters
route-policy route-policy-name: Uses the specified routing policy to add an additional metric for the
routes matching it. The route-policy-name argument is a case-sensitive string of 1 to 63 characters.
value: Add an additional metric to inbound routes, in the range of 0 to 16.
Usage guidelines
When a valid RIP route is received, the system adds a metric to it and then installs it into the routing table.
The metric of the route received on the configured interface is then increased. If the sum of the additional
metric and the original metric is greater than 16, the metric of the route will be 16.
If a routing policy is referenced with the route-policy keyword, the following operations can be
performed:
• Routes matching the policy are added with the metric specified in the apply cost command
configured in the policy. Routes not matching it are added with the metric specified in the rip
metricout command. The rip metricout command does not support the + or – keyword—used to
add or reduce a metric—specified in the apply cost command.
• If the apply cost command is not configured in the policy, all the inbound routes are added with the
metric specified in the rip metricout command.
Examples
# Configure Ethernet 1/1 to add a metric of 6 to the inbound route 1.0.0.0/8 and to add a metric of 2
to other inbound routes.
<Sysname> system-view
[Sysname] ip prefix-list 123 permit 1.0.0.0 8
[Sysname] route-policy abc permit node 0
[Sysname-route-policy-abc-10] if-match ip address prefix-list 123
[Sysname-route-policy-abc-10] apply cost 6
[Sysname-route-policy-abc-10] quit
[Sysname] interface ethernet 1/1
[Sysname-Ethernet1/1] rip metricin route-policy abc 2
Related commands
apply cost
rip metricout
Use rip metricout to configure an interface to add a metric to outbound routes.
Use undo rip metricout to restore the default.
Syntax
rip metricout [ route-policy route-policy-name ] value
undo rip metricout
Default
The additional metric for outbound routes is 1.