Command Reference Guide
3Com Router 3000 Ethernet Family
Command Reference Guide
Chapter 3 OSPF Configuration Commands
3Com Corporation
3-9
Example
# Specify the default type as type 1 when OSPF redistributes an external route.
[3Com -ospf-1] default type 1
3.1.11 default-cost
Syntax
default-cost value
undo default-cost
View
OSPF area view
Parameter
value: Specifies the cost value of the default route transmitted by OSPF to the STUB or
NSSA area, ranging from 0 to 16777214. The default value is 1.
Description
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.
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 command: stub and nssa.
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
3.1.12 default-route-advertise










