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
In Figure 5-1, Router B is receiving the routes 188.8.131.52/24 and 10.1.1.4/30 ...