3-19
<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 routing 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 will be 16.
If a routing 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 the
rip
metricout
command. Note that, the
rip metricout
command does not support the
+
or – keyword
(used to add or reduce a metric) specified in the
apply cost
command. For details about the
apply cost
command, refer to
Routing Policy Commands
in the
IP Routing Volume
.
z
If the
apply cost
command is not configured in the policy, all the advertised routes is added with
the metric specified in the
rip metricout
command.
Related commands:
rip metricout
.
Examples
# Configure VLAN-interface 10 to add a metric of 6 for incoming route 1.0.0.0/8 and to add a metric of
2 for other incoming routes.
<Sysname> system-view
[Sysname] ip ip-prefix 123 permit 1.0.0.0 8
[Sysname] route-policy abc permit node 0
[Sysname-route-policy] if-match ip-prefix 123
Содержание E4510-48G
Страница 109: ...2 18 Sysname interface bridge aggregation 1 Sysname Bridge Aggregation1 shutdown ...
Страница 309: ...6 4 Sysname interface vlan interface 1 Sysname Vlan interface1 ip address dhcp alloc ...
Страница 324: ...8 3 Sysname interface vlan interface 1 Sysname Vlan interface1 ip address bootp alloc ...
Страница 530: ...2 5 Sysname mvlan 100 subvlan 10 to 15 ...
Страница 739: ...8 15 Sysname system view Sysname port security trap addresslearned ...
Страница 819: ...13 11 Sysname system view Sysname public key peer key2 import sshkey key pub ...
Страница 857: ...iii 7 Track Configuration Commands 7 1 Track Configuration Commands 7 1 display track 7 1 track nqa 7 2 ...
Страница 914: ...5 17 Sysname reset oam ...
Страница 1064: ...5 30 Slot 2 Set next configuration file successfully ...
Страница 1325: ...21 13 Examples Redirect to member 2 Sysname irf switch to 2 Sysname Slave 2 ...