area default cost

Use this command to set the cost value for the default route that is sent into a stub area by an Area Border Router (ABR).

Syntax

area area-id default-cost cost
no area area-id default-cost

Parameters

area-id Specifies the stub area. Valid values are decimal values or IP addresses.
cost Specifies a cost value for the summary route that is sent into a stub area by default. Valid values: 0 to 65535.

Defaults

None.

Mode

OSPF router configuration.

Usage

The use of this command is restricted to ABRs attached to stub areas.

The “no” form of this command removes the cost value from the summary route that is sent into the stub area.

Example

This example shows how to set the cost value for stub area 10 to 99:

System(rw-config)->router ospf 1
System(rw-config-ospf-1)->area 10 default-cost 99