Cisco Cisco ASR 5000

Page of 9109
OSPF Configuration Mode Commands   
▀  default-metric 
 
 
▄  Command Line Interface Reference, StarOS Release 18 
7568 
   
default-metric 
Configures the default metric value for the OSPF routing protocol. All OSPF interfaces have a cost, which is a routing 
metric that is used in the link-state calculation. Routes with lower total path metrics are preferred over those with higher 
path metrics. When several equal-cost routes to a destination exist, traffic is distributed equally among them. The 
default metric is a global parameter that specifies the cost applied to all OSPF routes by default. 
Product
 
PDSN 
HA 
GGSN 
Privilege
 
Security Administrator, Administrator 
Mode
 
Exec > Global Configuration > Context Configuration > OSPF Configuration 
configure > context context_name > router ospf
 
Entering the above command sequence results in the following prompt: 
[local]host_name(config-ospf)# 
Syntax
 
default-metric metric_value 
no default-metric 
metric-value
 
Sets the metric value expressed as an integer from 1 through 16777214. Default: 26385. 
no
 
Enables or disables the default metric value for OSPF. 
Usage 
Use this command to set the default metric for routes. 
Example
 
The following command sets the default metric to 
235
default-metric 235