protocols ospf default-information originate
Sets the characteristics of an external default route that is originated into an OSPF routing domain.
By default, the system does not generate an external default route into the OSPF routing domain. When enabled to do so, the default route depends on the type of area into which the default route is being advertised.
- In stub areas, a Type 3 link-state advertisement is generated with a metric of 1 and the metric type is ignored.
- In not-so-stubby areas (NSSAs) that are configured to import summary advertisements, a Type 7 LSA with a metric of 1 and a metric type of 2 is generated.
- In NSSAs that are configured not to import summary advertisements, a Type 3 LSA with metric of 1 and the metric type is ignored.
- In a totally stub area, only a default route is advertised and allowed into the area. Summary and external routes are not advertised in the area.
- process pid
- Specifies the PID of an IPv4 OSPF process.
- Always advertises the default route.
- metric metric
- Specifies the metric to apply to the default route. The metric ranges from 0 through 16777214.
- metric-type type
- The metric type of an external route, which specifies how cost is calculated, to associate with the Type 5 default link-state advertisement (LSA). The metric type is either of the following:
1: Adds internal cost to external cost. (E1 routes use the redistributed cost plus the cost to the ASBR.)
2: Uses only external cost. (E2 routes use only the redistributed cost.) In case of two ASBRs advertising the same E2 cost, the internal cost to ASBR is used to break the tie.
The default type is 2.
- The default route is generated if the specified route map is satisfied.
Use this command to redistribute the default route (0.0.0.0) into an OSPF routing domain.
If routes are redistributed in this way, the router automatically becomes an Autonomous System Boundary Router (ASBR). The router must have a default route configured before it can generate one, unless the always keyword is specified.
Use the set form of this command to enable generation of an external default route into the OSPF routing domain.
Use the delete form of this command to disable generation of an external default route into the OSPF routing domain or to restore default parameter values.
Use the show form of this command to display default route distribution configuration. Use this command to redistribute the default route (0.0.0.0) into an OSPF routing domain.