3com S7906E Guide De Référence

Page de 2327
 
1-5 
default-route-advertise 
Syntax 
default-route-advertise [ always | cost cost type type | route-policy  
route-policy-name ] *  
undo default-route-advertise 
View 
OSPFv3 view 
Default Level 
2: System level 
Parameters 
always: Generates a default route in an ASE LSA into the OSPF routing domain regardless of whether 
the default route exists in the  routing table. Without this keyword, the command can distribute a default 
route in a Type-5 LSA into the OSPF routing domain only when the default route exists in the routing 
table. 
cost cost: Specifies a cost for the default route, in the range 0 to 16777214. The default is 1. 
type type: Specifies a type for the ASE LSA: 1 or 2. The default is 2. 
route-policy route-policy-name: Specifies a route policy name, a string of 1 to 19 characters.  
Description 
Use the default-route-advertise command to generate a default route into the OSPF routing domain. 
Use the undo default-route-advertise command to disable OSPF from redistributing a default route. 
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 costapply 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.