l
The
rip metricin
command is used to add an additional metric to an incoming route. After
this route is added to the routing table, its metric in the routing table changes.Running this
command affects route selection on the local device and other devices on the network.
l
The
rip metricout
command is used to add an additional metric to an outgoing route. When
this route is advertised, an additional metric is added to this route, but the metric of the
route in the routing table does not change. Running this command does not affect route
selection on the local device or other devices on the network.
Perform the following steps on the RIP router:
Procedure
Step 1
Run:
system-view
The system view is displayed.
Step 2
Run:
interface
interface-type
interface-number
The interface view is displayed.
Step 3
Run any of the following commands as required:
l
Based on the basic ACL:
1.
Run
rip metricin
{
value
| {
acl-number
|
acl-name
acl-name
}
value1
}, the metric
added to an incoming route is set.
2.
Run
quit
, return to the system view.
3.
Run
acl
{ [
number
]
acl-number1
|
name
acl-name
basic
[
number
acl-number2
] }
[
match-order
{
auto
|
config
} ], the basic ACL view is displayed.
4.
Run
rule
[
rule-id
] {
deny
|
permit
} [
fragment-type
fragment-type-name
|
source
{
source-ip-address source-wildcard
|
any
} |
time-range
time-name
|
vpn-instance
vpn-instance-name
]
*
, a rule is configured for the basic ACL.
l
Based on the named advanced ACL:
1.
Run
rip metricin
{
value
|
acl-name
acl-name
value1
}, the metric added to an incoming
route is set.
2.
Run
quit
, return to the system view.
3.
Run
acl
name
acl-name
advance
[
number
acl-number2
] [
match-order
{
auto
|
config
} ], the basic ACL view is displayed.
4.
Run
rule
[
rule-id
] {
deny
|
permit
}
protocol
[
source
{
source-ip-address source-
wildcard
|
any
} |
time-range
time-name
]
*
, a rule is configured for the basic ACL.
l
Based on the IP prefix:
rip metricin
{
value
|
ip-prefix
ip-prefix-name
value1
}
NOTE
You can specify the value of the metricin to be added to the RIP route that passes the filtering policy by
specifying
value1
through an ACL or an IP prefix list. If a RIP route does not pass the filtering, its metric
is not incremented.
Step 4
Run any of the following commands as required:
l
Based on the basic ACL:
HUAWEI NetEngine80E/40E Router
Configuration Guide - IP Routing
3 RIP Configuration
Issue 02 (2014-09-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
165