DGS-6604
mm
default-metric (OSPF)
CLI Reference Guide
151
default-metric (OSPF)
To set default metric values for OSPF, use the
default-metric
command. Use the
no form of the command to remove the default-metric setting.
default-metric
METRIC-VALUE
no default-metric
Default
1
Command Mode
Router configuration
Usage Guideline
The
default-metric
command is used in conjunction with the
redistribute
router
command (redistribute command on page 517) to cause the current routing
protocol to use the same metric value for all redistributed routes.
A default metric helps solve the problem of redistributing routes with an
incompatible metric. Whenever a metric does not convert, using a default metric
provides a reasonable substitute and enables the redistribution to proceed.
The setting precedence that determines the metric is:
metric in redistributed command > default-metric setting.
Example
The following example shows a router redistributing RIP-derived routes into the
OSPF domain and all redistributed routes are advertised with an OSPF metric of
10.
Syntax Description
METRIC-VALUE
Default metric value appropriate for the specified routing protocol.
Switch(config)# router ospf
Switch(config-router)# default-metric 1
Switch(config-router)# redistribute rip
Switch(config-router)# end
Switch#