Chapter 5. Setting the Default Metric for Redistributed Protocols
cost—. External cost assigned to routes redistributed into OSPF. The range of values is 1 to 4,294,967,295. The default metric for redistributed BGP routes is 1. The default metric for all other redistributed protocols is 20.
Purpose: Used to assign a cost to routes redistributed into OSPF that have not been assigned a metric by the redistribute command. Using the default-metric command will not affect routes that have been assigned a metric by the redistribute command.
Initial Cisco IOS Software Release: 10.0
Configuration Example: Setting the Default Cost for Redistributed Routes
In Figure 5-1, Router B is receiving the routes 126.96.36.199/24 and 10.1.1.4/30 ...