default-metric

Syntax

default-metric <METRIC-VALUE>

no default-metric 

Description

Sets the default metric for redistributed routes in the OSPF.

The no form of this command sets the default metric to be used for redistributed routes into OSPF to the default of 25.

Command context

config-ospf

Parameters

<METRIC-VALUE>

Specifies the default metric value to use for redistributed routes. Default: 25. Range: 0-1677214.

Authority

Administrators

Examples

Setting default metric for redistributed routes:

switch(config)# router ospf 1
switch(config-ospf-1)# default-metric 37

Setting default metric for redistributed routes to the default:

switch(config)# router ospf 1
switch(config-ospf-1)# no default-metric