Command Manual – Routing Protocol
Quidway S8500 Series Routing Switches Chapter 3 OSPF Configuration Commands
Huawei Technologies Proprietary
3-9
Example
# Specify the default type as type 1 when OSPF imports an external route.
[Quidway-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 16,777,214. 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 only applies to the border routers connected to the Stub or NSSA areas.
To configure a Stub area, you need to use two commands: stub and default-cost. The
stub command is used to configure the Stub attribute for this area.
Related command: stub, nssa.
Example
# Set the area 1 as the Stub area and the cost of the default route transmitted to this
Stub area to 60.
[Quidway-ospf-1] area 1
[Quidway-ospf-1-area-0.0.0.1] network 20.0.0.0 0.255.255.255
[Quidway-ospf-1-area-0.0.0.1] stub
[Quidway-ospf-1-area-0.0.0.1] default-cost 60
3.1.12 default-route-advertise
Syntax
default-route-advertise [ always | cost value | type type-value | route-policy
route-policy-name ]*