Defaultinformation originate always metrictype type
Syntax Description:
® type— The type can be set to 1 or 2. The cost of a type 1 route includes both the external cost of the redistributed route and the OSPF cost. The cost of a type 2 route only includes the external cost. The default is type 2.
Purpose: When a route is redistributed into OSPF, the route is assigned a metric that represents the cost of reaching that route from the ASBR. In Figure 4-4. the external cost of the default route is 1. This is the value the ASBR would assign to the default route (selections 4-3 and 4-4). If the default route is advertised as a type 2 route (the default case), then the cost of the default route should be 1 on every router in the OSPF domain. If the default route is advertised as a type 1 route, then the cost of the default route would include the internal cost of reaching the ASBR and the external cost of the route that was set by the ASBR. If multiple paths exist to reach the ASBR across the OSPF domain, all routes would have an equal cost if advertised as type 2 routes. If the default route is advertised as a type 1 route, then OSPF can determine the best path to the ASBR.
Figure 4-4. When OSPF Advertises a Default Route the Advertising Router Becomes an ASBR. A Type 1 Route Includes Both the Internal and External Cost of Reaching the Route. A Type 2 Route
Only Includes the External Cost
Figure 4-4. When OSPF Advertises a Default Route the Advertising Router Becomes an ASBR. A Type 1 Route Includes Both the Internal and External Cost of Reaching the Route. A Type 2 Route
Only Includes the External Cost

- Initial Cisco IOS Software Release: 10.0
Continue reading here: Configuration Example Setting the OSPF Metric Type for a Default Route
Was this article helpful?