The default-cost command specifies a cost for the default route that is sent to the stub area by OSPFv3.
The undo default-cost command restores the default cost of the default route.
By default, the cost of the Type 3 default route transmitted to the stub area is 1.
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, the value is 1. |
The default-cost command applies 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, run the stub command to configure the local area as a stub area.
If multiple OSPFv3 processes are enabled, the default-cost command takes effect only on the present process.