OcNOS-SP : Layer 3 Guide : Open Shortest Path First Command Reference : OSPFv2 Commands : default-metric
default-metric
Use this command to set a default metric for OSPF.
A default metric facilitates redistributing routes with incompatible metrics. If the metrics do not convert, the default metric provides an alternative. Use this command to use the same metric value for all redistributed routes. Use this command in conjunction with the redistribute command.
Use the no parameter with this command to return to the default state.
Command Syntax
default-metric <1-16777214>
no default-metric
Parameters
<1-16777214>
Default metric value.
Default
Built-in, automatic metric translations, as appropriate for each routing protocol.
Command Mode
Router mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#router ospf 100
(config-router)#default-metric 100
Last modified date: 10/16/2023