area stub
(OSPFv2)
Creates or deletes a stub area or modifies its parameters.
Syntax
area
{
ip-addr
|
decimal
}
stub
metric
[
no-summary
]
Command Default
No areas are created.
Parameters
-
A.B.C.D
- Area address in IP address format.
-
decimal
- Area address In decimal format.
-
metric
- Additional cost for using a route to or from this area. Valid values range from 1 through 6777215.
-
no-summary
- When configured on the ABR, this parameter prevents any Type 3 and Type 4 summary LSAs from being injected into the area. The only exception is that a default route is injected into the stub/totally stubby area by the ABR as a Type 3 LSA. Enabling this parameter makes the area a so-called totally stubby area, which can only have Types 1 and 2. This parameter is disabled by default.
Modes
OSPF router configuration mode
OSPF router VRF configuration mode
Usage Guidelines
Once created, the type of the area cannot be changed. The only exception to this rule is that a NSSA or stub area can be changed to a totally NSSA or a totally stub area, respectively.
The
no
form of the command deletes a stub area.
Examples
The following example sets an additional cost of 5 on a stub area called 2.
device# configure terminal
device(config)# router ospf
device(config-router-ospf-vrf-default-vrf)# area 2 stub 5