R3721-F3210-F3171-HP High-End Firewalls Network Management Command Reference-6PW101
728
By default, no default route is redistributed.
Using the import-route command cannot redistribute a default route. To do so, you need to use the
default-route-advertise command. If no default route exists in the router's routing table, use the
default-route-advertise always command to generate a default route in a Type-5 LSA.
You can reference a routing policy to set the cost and type of the default route:
• The router advertises the default route only when it passes the routing policy.
• The default route passing the routing policy uses the cost set by the apply cost clause, and the type
set by the apply cost-type clause in the routing policy.
• The default route cost's priority from high to low is: the cost set by the apply cost clause in the routing
policy, the one set by the default-route-advertise command and the one set by the default cost
command.
• The default route type's priority from high to low is: the type set by the apply cost-type clause in the
routing policy, and the one set by the default-route-advertise command.
• If the always keyword is included, the default route is advertised regardless of whether it passes the
routing policy and uses the cost and type specified by the apply cost, apply cost-type clauses in the
first node of the routing policy.
Related commands: import-route.
Examples
# Generate a default route into the OSPFv3 routing domain.
<Sysname> system-view
[Sysname] ospfv3 1
[Sysname-ospfv3-1] default-route-advertise always
display ospfv3
Syntax
display ospfv3 [ process-id ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
process-id: Specifies the ID of an OSPFv3 process, ranging from 1 to 65535.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Getting Started Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.