OcNOS-RON-6.3.1 : Layer 3 Guide : Open Shortest Path First Command Reference : OSPFv2 Commands : area default-cost
area default-cost
Use this command to specify a cost for the default summary route sent into a stub or NSSA area. This command provides the metric for the summary default route, generated by the area border router, into the NSSA or stub area. Use this option only on an area border router that is attached to the NSSA or stub area. Refer to the RFC 3101 for information on NSSA.
Use the no form of this command to remove the assigned default-route cost.
Command Syntax
area (A.B.C.D|<0-4294967295>) default-cost <0-16777215>
no area (A.B.C.D|<0-4294967295>) default-cost
Parameters
A.B.C.D
OSPF Area ID in IPv4 address format.
<0-4294967295>
OSPF Area ID as a decimal value.
default-cost
Indicates the cost for the default summary route used for a stub or NSSA area.
<0-16777215>
Stub's advertised default summary cost. The default is 1.
Default
By default, route cost is 1
Command Mode
Router mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
This example sets the default-cost to 10 for area 1.
#configure terminal
(config)#router ospf 100
(config-router)#area 1 default-cost 10
 
(config)#router ospf 100
(config-router)#no area 1 default-cost
Last modified date: 07-13-2023