Command Reference Guide
44 ● default-cost 3Com Router 5000 Family and Router 6000 Family
Command Reference
default-cost
Purpose Use the default-cost command to configure the cost of the default route
transmitted by OSPF to the STUB or NSSA area.
Use the undo default-cost command to restore the cost of the default route
transmitted by OSPF to the STUB or NSSA area to the default value.
Syntax default-cost value
undo default-cost
Parameters value
Specifies the cost value of the default route
transmitted by OSPF to the STUB or NSSA area. Valid
values are 0 to 16777214.
If no value is specified, the default value is 1.
Example Set the area 1 as the STUB area and the cost of the default route transmitted to this
STUB area to 60.
[3Com -ospf-1] area 1
[3Com -ospf-1-area-0.0.0.1] network 20.0.0.0 0.255.255.255
[3Com -ospf-1-area-0.0.0.1] stub
[3Com -ospf-1-area-0.0.0.1] default-cost 60
View This command can be used in the following views:
■ OSPF Area view
Description This command is applicable for the border routers connected to STUB or NSSA area.
The stub and default-cost commands are necessary in configuring STUB area.
All the routers connected to STUB area must use stub command to configure the
stub attribute to this area. Use the default-cost command to specify the cost of
the default route transmitted by ABR to STUB or NSSA area.
This command is only valid for this process if multiple OSPF processes are enabled.
Related Commands ■ stub
■ nssa