OcNOS-SP : Layer 3 Guide : Routing Information Protocol Command Reference : Routing Information Protocol Commands : default-metric
default-metric
Use this command to specify the metrics to be assigned to redistributed routers.
This command is used in conjunction with the redistribute command to make the routing protocol use the specified metric value for all redistributed routes. A default metric is useful in redistributing routes with incompatible metrics. Every protocol has different metrics and can not be compared directly. Default metric provides the standard to compare. All routes that are redistributed will use the default metric.
Use the no parameter with this command to disable this feature.
Command Syntax
default-metric <1-15>
no default-metric
Parameter
<1-15>
Specify the default metric.
Default
By default, the metric value is set to 1.
Command Mode
Router mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
This example assigns the cost of 10 to the OSPF routes which are redistributed into RIP.
#configure terminal
(config)#router rip
(config-router)#redistribute ospf
(config-router)#default-metric 10
 
Last modified date: 08/28/2023