Default-Route-Advertise - H3C S9500 Series Command Manual

Routing switches
Hide thumbs Also See for S9500 Series:
Table of Contents

Advertisement

Command Manual – OSPF
H3C S9500 Series Routing Switches

1.1.12 default-route-advertise

Syntax
default-route-advertise [ always | cost value | type type-value | route-policy
route-policy-name ]*
undo default-route-advertise [ always | cost | type | route-policy ]*
View
OSPF view
Parameters
always: The parameter will generate an ASE LSA which describes the default route
and will advertise it if the local router is not configured with the default route. If this
parameter is not set, the local router cannot redistribute the ASE LSA, which generates
the default route only when it is configured with the default route.
cost value: The cost value of this ASE LSA. The metric-value ranges from 0 to
16777214. If the parameter is not configured, the default value is 1.
type type-value: Cost type of this ASE LSA. It ranges from 1 to 2. If the parameter is not
configured, the default value is 2.
route-policy route-policy-name: If the default route match the route-policy specified by
route-policy-name, route-policy will affect the value in ASE LSA. The length of
route-policy-name argument is a character string of 1 to 19 characters.
Description
Use the default-route-advertise command to redistribute default route to OSPF route
area. Use the undo default-route-advertise command to cancel the redistribution of
default route.
By default, OSPF does not redistribute default route.
The import-route command cannot redistribute the default route. To redistribute the
default route to the route area, this command must be used. When local router is not
configured with default route, the keyword always should be used by ASE LSA to
generate default route.
Related commands: import-route.
Examples
# If local route has no default route, the ASE LSA of default route will be generated.
Otherwise, it will not be generated.
[H3C-ospf-1] default-route-advertise
# The ASE LSA of default route will be generated and advertised to OSPF route area
even the local router has no default route.
Chapter 1 OSPF Configuration Commands
1-10

Advertisement

Table of Contents
loading

Table of Contents