3-23
Default Level
2: System level
Parameters
None
Description
Use the
rip input
command to enable the interface to receive RIP messages.
Use the
undo rip input
command to disable the interface from receiving RIP messages.
By default, an interface is enabled to receive RIP messages.
Related commands:
rip output
.
Examples
# Disable VLAN-interface 10 from receiving RIP messages.
<Sysname> system-view
[Sysname] interface vlan-interface 10
[Sysname-Vlan-interface10] undo 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 route policy used to add an additional
metric for the routes matching it. The name is a string of 1 to 19 characters
value
: Additional metric added to received routes, in the range of 0 to 16.
Description
Use the
rip metricin
command to configure the interface to add a metric to the routes it
receives.
Use the
undo rip metricin
command 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. Therefore, the metric of the route received on the configured interface is
increased. If the sum of the additional metric and the original metric is greater than 16, the
metric of the route is 16.
If a route policy is referenced with the
route-policy
keyword:
z
Routes matching the policy is added with the metric specified in the
apply cost
command
configured in the policy, while routes not matching it is added with the metric specified in