area default-cost
Use this command to specify the cost for default summary route sent into a stub or a NSSA area. If an area is configured as a stub, the OSPFv3 router originates one type-3 inter-area-prefix-LSA into the stub area. This command changes the metric for this LSA.
Use the no parameter with this command to remove the assigned default 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.
<0-16777215>
The advertised cost for the default summary route used for a stub or NSSA area.
Default
By default, advertised cost for the default summary route is 1.
Command Mode
Router mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#router ipv6 ospf
(config-router)#area 1 default-cost 10
Last modified date: 08/28/2023