Default-Route-Advertise (Ospf View) - HP 6125G Command Reference Manual

Layer 3 - ip routing
Hide thumbs Also See for 6125G:
Table of Contents

Advertisement

Description
Use default-cost to configure a cost for the default route advertised to the stub or NSSA area.
Use undo default-cost to restore the default value.
The cost defaults to 1.
This command is only applicable to the ABR of a stub area or the ABR/ASBR of an NSSA area.
Related commands: stub and nssa.
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

default-route-advertise (OSPF view)

Syntax
default-route-advertise [ [ [ always | permit-calculate-other ] | cost cost | route-policy
route-policy-name | type type ] * | summary cost cost ]
undo default-route-advertise
View
OSPF view
Default level
2: System level
Parameters
always: Generates a default route in a Type-5 LSA into the OSPF routing domain regardless of whether
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: Calculates default routes from other routers with this keyword specified or does
not calculate default routes from other routers without this keyword specified when the router generates
a default route in a Type-5 LSA into the OSPF routing domain. If the router generates no 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 name, a string of 1 to 63 case-sensitive
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
policy modifies some values in the Type-5 LSA. If the always keyword is specified at the same time, the
command can distribute a default route in a Type-5 LSA into the OSPF routing domain when the specified
63

Advertisement

Table of Contents
loading

This manual is also suitable for:

6125 blade switch series

Table of Contents