R211x-HP Flexfabric 11900 Layer 3 - IP Routing Command Reference

95
Default
The cost is 1.
Views
OSPF area view
Predefined user roles
network-admin
mdc-admin
Parameters
cost: Specifies a cost for the default route advertised to the Stub or NSSA area, in the range of 0 to
167 77214.
Usage guidelines
This command takes effect only on the ABR of a stub area or the ABR/ASBR of an NSSA area.
Examples
# Configure Area 1 as a stub area, and specify the cost of the default route advertised to the stub area
as 20.
<Sysname> system-view
[Sysname] ospf 100
[Sysname-ospf-100] area 1
[Sysname-ospf-100-area-0.0.0.1] stub
[Sysname-ospf-100-area-0.0.0.1] default-cost 20
Related commands
nssa
stub
default-route-advertise (OSPF view)
Use default-route-advertise to redistribute a default route into the OSPF routing domain.
Use undo default-route-advertise to restore the default.
Syntax
default-route-advertise [ [ [ always | permit-calculate-other ] | cost cost | route-policy
route-policy-name | type type ] * | summary cost cost ]
undo default-route-advertise
Default
No default route is redistributed into the OSPF routing domain.
Views
OSPF view
Predefined user roles
network-admin
mdc-admin