3com 8807 Guia De Referência

Página de 1099
OSPF Configuration Commands
421
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
Parameter
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 import 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 
16,777,214. 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 import 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 import default route.
The import-route command cannot import the default route. To import 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 command: import-route.
Example
# If local route has no default route, the ASE LSA of default route will be 
generated. Otherwise, it will not be generated.
[3Com-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.
[3Com-ospf-1] default-route-advertise always 
display debugging ospf
Syntax
display debugging ospf