3com 5500-ei pwr Guia De Referência

Página de 1314
 
4-6 
You must use the stub command on all the routers connected to a Stub area to configure the area with 
the stub attribute.  
Use the default-cost command to configure the cost of the default route advertised by an ABR to a 
Stub area or NSSA. 
 
 
OSPF advertises a default route in the following cases: 
z
 
When a (totally) stub area is configured, the ABR of the area automatically generates a default 
route. 
z
 
After the nssa no-summary command is used on the ABR of an NSSA area, the NSSA ABR 
advertises a default route into the area.  
z
 
After the nssa default-route-advertise command is configured on an NSSA ABR, the ABR 
generates a default route into the NSSA regardless of whether the default route is available. If the 
nssa default-route-advertise 
command is configured on an NSSA ASBR, only when a default 
route is available on the ASBR can the router generate the default route into the attached area. 
 
Related commands: stub, nssa
Examples 
# Set area 1 to a Stub area and the cost of the default route advertised to this Stub area to 60. 
<Sysname> system-view 
System View: return to User View with Ctrl+Z.  
[Sysname] ospf 1  
[Sysname-ospf-1] area 1 
[Sysname-ospf-1-area-0.0.0.1] network 20.0.0.0 0.255.255.255 
[Sysname-ospf-1-area-0.0.0.1] stub 
[Sysname-ospf-1-area-0.0.0.1] default-cost 60 
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
: Generates a default external route in an ASE LSA into the OSPF routing domain in the case 
that the router has no default route configured. Without this keyword, you have to configure a default 
route to redistribute an ASE LSA into the OSPF routing domain.