If multiple OSPFv3 processes are available, use of this command takes effect for the current process
only.
Examples
# Specify the default cost for redistributed routes as 10.
<Sysname> system-view
[Sysname] ospfv3 1
[Sysname-ospfv3-1] default cost 10
default-cost (OSPFv3 area view)
Syntax
default-cost value
undo default-cost
View
OSPFv3 area view
Default Level
2: System level
Parameters
value: Specifies a cost for the default route advertised to the stub area, in the range of 0 to 65535. The
default is 1.
Description
Use the default-cost command to specify the cost of the default route to be advertised to the stub area.
Use the undo-default-cost command to restore the default value.
Use of this command is only available on the ABR that is connected to a stub area.
You have two commands to configure a stub area: stub, defaulted-cost. You need to use the stub
command on routers connected to a stub area to configure the area as stub.
If multiple OSPFv3 processes are running, use of this command takes effect only for the current
process.
Related commands: stub.
Examples
# Configure Area1 as a stub area, and specify the cost of the default route advertised to the stub area as
60.
<Sysname> system-view
[Sysname] ospfv3
[Sysname-ospfv3-1] area 1
[Sysname-ospfv3-1-area-0.0.0.1] stub
[Sysname-ospfv3-1-area-0.0.0.1] default-cost 60
1-4