HP MSR2000/3000/4000 Router Series Layer 3 - IP Routing Command Reference

92
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
Parameters
always: Generates a default route in a Type-5 LSA into the OSPF routing domain regardless of whether
or not there is a default route in the routing table. If this keyword is not specified, the router generates a
default route in a Type-5 LSA into the OSPF routing domain only when an active default route that does
not belong to the current OSPF process exists in the IP routing table.
permit-calculate-other: Enables OSPF to calculate default routes received from other routers. Without this
keyword, OSPF does not calculate default routes from other routers. If the router does not generate any
default route in a Type-5 LSA into the OSPF routing domain, the router calculates default routes from other
routers regardless of whether this keyword is specified.
cost cost: Specifies a cost for the default route, in the range of 0 to 16777214. If no cost is specified, the
default cost specified by the default cost command applies.
route-policy route-policy-name: Specifies a routing policy by its name, a case-sensitive string of 1 to 63
characters. When a default route exists in the routing table and the specified routing policy is matched,
the command distributes a default route in a Type-5 LSA into the OSPF routing domain, and the routing