3com 5500-ei pwr Guia De Referência
![3com](https://files.manualsbrain.com/attachments/960452ff43b9899cbcffced60c87abf956e7967a/common/fit/150/50/f6ac125d7af2cf40fec58935fa6d4bf71457a57efe50bee91208a434f325/brand_logo.jpeg)
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.
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.
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.
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.
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
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.
route to redistribute an ASE LSA into the OSPF routing domain.