R211x-HP Flexfabric 11900 Layer 3 - IP Routing Command Reference
96
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
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










