Command:

default-metric (OSPF)


Mode:

Router(config-router)#


Syntax:

default-metric metric-value
no default-metric metric-value

 

Syntax Description:

metric-value Default metric value appropriate for the specified routing protocol.

 

Command Description:

To set default metric values for the OSPF routing protocol, use the default-metric command in router configuration mode. To return to the default state, use the no form of this command.

The default-metric command is used in conjunction with the redistribute router configuration command 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 incompatible metrics. Whenever metrics do not convert, using a default metric provides a reasonable substitute and enables the redistribution to proceed.


Example:

The following example shows a router in autonomous system 109 using both the Routing Information Protocol (RIP) and the OSPF routing protocols. The example advertises OSPF-derived routes using RIP and assigns the Internal Gateway Routing Protocol (IGRP)-derived routes a RIP metric of 10.

Router(config)#router rip
Router(config-router)#default-metric 10
Router(config-router)#redistribute ospf 109


Misconceptions:

The default metric command does not affect EIGRP-to-EIGRP or IGRP-to-EIGRP distribution. To configure EIGRP-to-EIGRP or IGRP-to-EIGRP distribution, use route maps.


Related Commands:

redistribute

� Cisco Systems, Inc. 2001, 2002, 2003
World Wide Education

Converted from CHM to HTML with chm2web Pro 2.85 (unicode)