66
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
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
routing policy is matched, regardless of whether a default route exists in the routing table, and the routing
policy modifies some values in the Type-5 LSA.
type
type
: Specifies a type for the Type-5 LSA: 1 or 2. If no
type
is specified, the default type for the
Type-5 LSA specified by the
default type
command applies.
summary
: Advertises the specified default route in a Type-3 LSA. This keyword is available only for VPNs.
Usage guidelines
This command redistributes a default route in a Type-5 LSA, which cannot be redistributed with the
import-route
command. If the local routing table has no default route, you must provide the
always
keyword for the command.
The
default-route-advertise
summary cost
command is applicable only to VPNs. It enables a PE router
to redistribute a default external route in a Type-3 LSA to CE routers.
Examples
# Generate a default route into the OSPF routing domain, regardless of whether the default route exists
in the local routing table.
<Sysname> system-view
[Sysname] ospf 100
[Sysname-ospf-100] default-route-advertise always
Related commands
•
default
•
import-route
description (OSPF/OSPF area view)
Use
description
to configure a description for an OSPF process or area.
Use
undo description
to restore the default.
Syntax
description
description
undo
description
Default
No description is configured for an OSPF process or area.
Views
OSPF view, OSPF area view
Predefined user roles
network-admin