default-cost (OSPFv3 Area View)
Function
The default-cost command specifies the cost of the default route that is sent to the stub area by OSPFv3.
The undo default-cost command restores the cost to the default value.
By default, the cost of the Type 3 default route transmitted to the stub area is 1.
Parameters
Parameter | Description | Value |
---|---|---|
cost | Specifies the cost of the default route that is sent to the stub area by OSPFv3. | The value ranges from 0 to 16777214. By default, it is 1. |
Usage Guidelines
This command is applicable only to the ABR that is connected to the stub area.
Before setting the cost of the default route that is transmitted to the stub area by OSPFv3, you need to configure the local area as a stub area by using the stub command. You can use the default-cost command to specify the cost of the default route that is transmitted to the stub area by the ABR.
If multiple OSPFv3s are enabled, the command takes effect only on this process.