Switch User Manual

OSPF Commands 1123
Syntax Description
Default Configuration
The default metric is none and the default type is 2.
Command Mode
Router OSPF Configuration mode.
User Guidelines
This command has no user guidelines.
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
Parameter Description
always Always advertise default routes.
metric-value The metric (or preference) value of the default route. (Range:
1–16777214)
type-value
1
External type-1 route.
2
External type-2 route.
2CSPC4.XCT-SWUM2XX1.book Page 1123 Monday, October 3, 2011 11:05 AM