area <AREA-ID> default-metric
Syntax
area <AERA-ID> default-metric <COST>
no area <AREA-ID> default-metric
Description
Sets the cost of the default route announced to NSSA or stub areas.
The
no
form of this command resets the cost of the default route announced to NSSA or stub areas, to the default value of 1.
Command context
config-ospf
Parameters
<AREA-ID>
- Specifies area ID in one of the following formats.
OSPF area identifier in IPv4 address format. Format: A.B.C.D
OSPF area identifier in decimal format. Range: 0-4294967295.
default-metric <COST>
Sets the cost of default-summary LSAs announced to NSSA or stub areas, to the specified value. Default cost: 1. Range: 0-16777215.
Authority
Administrators
Examples
Setting cost for default LSA summary:
switch# configure terminal switch(config)# router ospf 1 switch(config-ospf-1)# area 1 default-metric 2 switch(config-ospf-1)# area 0.0.0.1 default-metric 2
Setting cost for default LSA summary to default:
switch# configure terminal switch(config)# router ospf 1 switch(config-ospf-1)# no area 1 default-metric switch(config-ospf-1)# no area 0.0.0.1 default-metric