R0106-HP MSR Router Series Layer 3 - IP Routing Command Reference(V7)
497
default-route-advertise (OSPFv3 view)
Use default-route-advertise to redistribute a default route into the OSPFv3 routing domain.
Use undo default-route-advertise to restore the default.
Syntax
default-route-advertise [ [ always | permit-calculate-other ] | cost cost | route-policy route-policy-name
| type type ] *
undo default-route-advertise
Default
No default route is redistributed into the OSPFv3 routing domain.
Views
OSPFv3 view
Predefined user roles
network-admin
Parameters
always: Redistributes a default route in an AS-external-LSA into the OSPFv3 routing domain regardless of
whether a default route exists in the routing table. Without this keyword, the router redistributes a default
route in an AS-external-LSA into the OSPFv3 routing domain only when the default route exists in the
routing table.
permit-calculate-other: Enables OSPFv3 to calculate default routes received from other routers. Without
this keyword, OSPFv3 does not calculate default routes from other routers. If the router does not
redistribute any default route in an AS-external-LSA into the OSPFv3 routing domain, the router calculates
default routes from other routers. It calculates these routes regardless of whether this keyword is specified.
cost cost: Specifies a cost for the default route, in the range of 0 to 16777214. The default is 1.
route-policy route-policy-name: Specifies a routing policy by its name, a case-sensitive string of 1 to 63
characters. When the routing policy is matched and one of the following conditions is met, the command
redistributes a default route in an AS-external-LSA into the OSPFv3 routing domain:
• A default route exists in the routing table.
• The always keyword is specified.
The routing policy modifies values in the AS-external-LSA.
type type: Specifies a type for the AS-external-LSA, 1 or 2. The default is 2.
Usage guidelines
This command redistributes a default route in an AS-external-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.
Examples
# Redistribute a default route into the OSPFv3 routing domain. (The default route does not exist in the
local router.)
<Sysname> system-view
[Sysname] ospfv3 1
[Sysname-ospfv3-1] default-route-advertise always