® cost— The cost of the advertised external default route metric. The range of values is 0 to 16,777,214. The default value is 1.
Purpose: To set the external cost of the default route advertised into the OSPF domain. The first form of the command will advertise the default route only if the route exists in the local IP routing table. The second form will unconditionally advertise the default route. If more than one OSPF router is advertising a default route, the metric can be used to select the preferred default route. The default route with the lowest metric is considered the best route.
Initial Cisco IOS Software Release: 10.0
Was this article helpful?