OSPF Commands 1225
should also have a static default route configured with an upstream ISP router
as the destination. The always keyword will cause the router to advertise a
default route to its neighbors, even if no valid default route is known.
Example
The following example always advertises default routes.
console(config-router)#default-information originate
always metric 100 metric-type 1
default-metric
Use the default-metric command in Router OSPF Configuration mode to set
a default for the metric of distributed routes. Use the no form of the
command to remove the metric from the distributed routes. If the area has
not been previously created, it is created by this command. If the area already
exists, the default-metric information is added or modified.
Syntax
default-metric
metric-value
no default-metric
•
metric-value
— The metric (or preference) value of the default route.
(Range: 1–16777214)
Default Configuration
This command has no default configuration.
Command Mode
Router OSPF Configuration mode.
User Guidelines
This command has no user guidelines.
Example
The following example sets a value of 50 for the default metric.
console(config-router)#default-metric 50
2CSPC4.X8100-SWUM102.book Page 1225 Friday, March 15, 2013 8:56 AM