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-value | route-policy route-policy-name | tag tag | 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. If you do not specify 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. If you do not specify 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-value: 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:

The routing policy modifies values in the AS-external-LSA.

tag tag: Specifies a tag for the default route, in the range of 0 to 4294967295. If you do not specify this option, the tag specified by the default tag command applies.

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

Related commands

import-route (OSPFv3 view)