Command Manual - Routing Protocol
Quidway S3500 Series Ethernet Switches
Chapter 3 OSPF Configuration Commands
Huawei Technologies Proprietary
3-8
Description
Using
default-cost
command, you can configure the cost of the default route
transmitted by OSPF to the STUB or NSSA area. Using
undo default-cost
command,
you can restore the cost of the default route transmitted by OSPF to the STUB or NSSA
area to the default value.
For the related commands, see
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] area 1
[Quidway-ospf-area-0.0.0.1] network 20.0.0.0 0.255.255.255
[Quidway-ospf-area-0.0.0.1] stub
[Quidway-ospf-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
Parameter
always
: The parameter will generate an ase lsa which describes the default route and
advertise it if the local router is not configured with the default route. If this parameter is
not set, the local router cannot import the ase lsa, which generates the default route
only when it is configured with the default route.
cost
value
: the cost value of this ase lsa. The metric-value ranges from 0 to 16777214.
If the parameter is not configured, the default value is 1.
type value:
cost type of this ase lsa. It ranges from 1 to 2. If the parameter is not
configured, the default value is 2.
route-policy
route-policy-name:
if the default route match the route-policy specified by
route-policy-name
, route-policy will affect the value in ase lsa. The length of
route-policy-name
parameter ranges from 1 to 16 character string.