R3303-HP HSR6800 Routers Layer 3 - IP Routing Command Reference
70
default-route-advertise (OSPF view)
Use default-route-advertise to generate a default external route into the OSPF routing domain.
Use undo default-route-advertise to disable OSPF from distributing a default external route.
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 distributed.
Views
OSPF view
Default command 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. With this keyword specified, the router does not calculate
default routes from other routers.
permit-calculate-other: Generates a default route in a Type-5 LSA into the OSPF routing domain if there
is an active default route that does not belong to the current OSPF process in the IP routing table. With
this keyword specified, the router calculates default routes from other routers.
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
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 type is not 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.
Usage guidelines
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.
Using the import-route command cannot redistribute a default route. To redistribute a default route, use
the default-route-advertise command.
If neither the always nor permit-calculate-other keyword is 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. The router then does not calculate default routes
from other routers.