3com 5500-ei pwr Guia De Referência

Página de 1314
 
4-7 
cost
 value: Specifies the cost value of the default route. The default route with the lowest cost value is 
preferred. The value of value  ranges from 0 to 16777214. If no cost is specified, the default cost 
specified by the default cost command applies. 
type type-value: 
Specifies the type of the route. If type-value is 2, the cost value of the default route is 
equal to that specified by cost value, and all the routers in the OSPF domain use the same cost. If 
type-value 
is 1, the cost value of the default route is equal to the sum of the cost from the local router to 
the corresponding ASBR and the cost specified by cost value. The value of type-value is 1 or 2. If no 
type-value 
is specified, the default route type specified by the default type command applies. 
route-policy
 route-policy-name: Specifies a route policy. .The route-policy-name argument is a string 
of 1 to 19 characters. 
Description 
Use the default-route-advertise command to generate a default route in the OSPF routing domain.  
Use the undo default-route-advertise command to disable OSPF from redistributing a default route. 
By default, OSPF does not redistribute any default route. 
The import-route command cannot redistribute any default route. To redistribute the default route to 
the route area, the default-route-advertise command must be used. If the local router is not 
configured with a default route, the keyword always must be specified so that a default route can be 
generated in an ASE LSA. 
Related commands: import-route
Examples 
# Generate a default route in an ASE LSA into the OSPF routing domain if a default route is configured 
on the local router. 
<Sysname> system-view 
System View: return to User View with Ctrl+Z.  
[Sysname] ospf 1  
[Sysname-ospf-1] default-route-advertise  
# Generate a default route in an ASE LSA into the OSPF routing domain if no default route is configured 
on the local router. 
[Sysname-ospf-1] default-route-advertise always 
display router id 
Syntax 
display router id 
View 
Any view 
Parameters 
None 
Description 
Use the display router id command to display the router ID.