R3721-F3210-F3171-HP High-End Firewalls Network Management Command Reference-6PW101

271
Default level
2: System level
Parameters
None
Description
Use rip input to enable the interface to receive RIP messages.
Use undo rip input to disable the interface from receiving RIP messages.
By default, an interface is enabled to receive RIP messages.
Examples
# Enable GigabitEthernet 0/1 to receive RIP messages.
<Sysname> system-view
[Sysname] interface gigabitethernet 0/1
[Sysname-GigabitEthernet0/1] rip input
rip metricin
Syntax
rip metricin [ route-policy route-policy-name ] value
undo rip metricin
View
Interface view
Default level
2: System level
Parameters
route-policy route-policy-name: Specifies the name of a routing policy used to add an additional metric
for the routes matching it. The name is a string of 1 to 63 case-sensitive characters.
value: Additional metric added to received routes, in the range of 0 to 16.
Description
Use rip metricin to configure the interface to add a metric to the routes it receives.
Use undo rip metricin to restore the default.
By default, the additional metric of a received route is 0.
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 is added with the metric specified in the apply cost command
configured in the policy. Routes not matching it is 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. For more information about the
apply cost command, see "Routing policy configuration commands."