R3166-R3206-HP High-End Firewalls Network Management Command Reference-6PW101

Table Of Contents
226
Description
Use the default-cost command to configure a cost for the default route advertised to the stub or NSSA
area.
Use the undo default-cost command 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 | 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 an ASE LSA into the OSPF routing domain regardless of whether a
default route exists in the routing table. Without this keyword used, the command can distribute a default
route in a Type-5 LSA into the OSPF routing domain only when a default route exists in the routing table.
cost cost: Specifies a cost for the default route, in the range 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 route policy name, a string of 1 to 19 characters. If the default
route matches the specified route policy, the route policy modifies some values in the ASE LSA.
type type: Specifies a type for the ASE LSA: 1 or 2. If type is not specified, the default type for the ASE
LSA specified by the default type command applies.
summary: Advertises the Type-3 summary LSA of the specified default route.
Description
Use the default-route-advertise command to generate a default route into the OSPF routing domain.
Use the undo default-route-advertise command to disable OSPF from distributing a default external
route.