Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510
Chapter 3 OSPF Configuration Commands
Huawei Technologies Proprietary
3-9
Parameter
value
: Cost value of the default route transmitted by OSPF to the STUB or NSSA area.
It ranges from 0 to 16,777,214 and defaults to 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 default cost of the default route
transmitted by OSPF to the STUB or NSSA area.
This command only applies to an ABR in a STUB area or NSSA area.
To configure a STUB area, you need to use the
stub
and
default-cost
commands.
You must use the
stub
command on all the routers connected to a STUB area to
configure the area with the STUB attribute.
Use the
default-cost
command to configure the cost of the default route transmitted by
an ABR to the STUB area or NSSA area.
Related command:
stub
,
nssa
.
Example
# Set area 1 as the STUB area and the cost of the default route transmitted to this
STUB area to 60.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] ospf 1
[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.11 default-route-advertise
Syntax
default-route-advertise
[
always
|
cost
value
|
type type-value
|
route-policy
route-policy-name
]*
undo default-route-advertise
[
always
|
cost
|
type
|
route-policy
]*
View
OSPF view