Modifying the default metric for redistribution

Optional: The default metric is a global parameter that specifies the cost applied to all OSPF routes by default.


router ospf default-metric 0-16777215

Globally assigns the cost metric to apply to all external routes redistributed by the ASBR. By using different cost metrics for different ASBRs, you can prioritize the ASBRs in your AS.

Default: 10


To assign a default metric of 4 to all routes imported into OSPF on an ASBR, enter the following commands:

switch(config)# router ospf default-metric 4