You can divide your OSPF routing domain into OSPF
areas. Dividing into areas provides the following benefits:
Reduces resource demands placed on routers and links
Reduces the router CPU usage by the OSPF routing calculation
Reduces the amount of memory used for link-state databases
Hides subnets within areas from the rest of the routing
domain
Increases routing security within the area
You must attach each area in your routing domain
to an area called the backbone area (0.0.0.0).
Disadvantages of using OSPF areas include the following:
Areas hide information, which can result in less-than-optimal
data paths.
Creating areas complicates the task of configuring OSPF
routing domains.
You can optionally define an area to be a stub
area, totally stubby area, or a not-so-stubby area. You can configure
virtual links for areas that are not directly connected to a backbone
area.
area default-cost
Use to configure the cost for the default summary route
sent into a stub area.
Cost is a metric value in the range 1–65535; the
default value is 1.
Use only on an ABR attached to a stub area.
Provides the metric for the summary default route that
the ABR generates into the stub area.
Example
host1(config-router)#area 47.0.0.0 default-cost
1
Use the no version to remove
the configured default route cost.
You must configure each router in a stub area as belonging
to the stub area.
An NSSA is like a stub area, but it can also import external
AS routes in a limited way.
To cause NSSA border routers to generate a type 7 default
LSA in the OSPF database if there is a default route in the routing
table, you must specify the default-information-originate option.
You can specify a metric cost, metric type, or a route
map to be applied to the generated type 7 default LSAs.
Use the no-summary keyword
to create a “totally stubby area” and restrict type 3
summary LSAs from flowing into the area. However, type 3 default-route
LSAs can continue to flow into the area and a type 3 default-route
LSA is advertised into the NSSA.
Note:
We recommend that you do not use the default-information-originate keyword with the no-summary keyword for
an NSSA.
Example
host1(config-router)#area 35.0.0.0 nssa
Use the no version to remove
the NSSA designation from the area, to stop the generation of type
7 default LSAs, to reinitiate type 3 summary LSAs into the area (with
the no-summary keyword), or to stop the
application of the specified metric cost, metric type, or a route
map to the type 7 default LSAs.
Use
to configure a stub area. Stub areas do not get flooded with external
LSAs but do carry a default route, intra-area routes, and interarea
routes. The lack of flooding in stub areas reduces the size of the
OSPF database for the area and decreases memory usage for external
routers in the stub area.
You must configure each router in a stub area as belonging
to the stub area.
You cannot configure virtual links across a stub area.
Stub areas cannot contain AS boundary routers.
Use the no-summary keyword
to create a “totally stubby area” and restrict type 3
summary LSAs from entering the stub area. However, type 3 default-route
LSAs can continue to flow into the area.
Use to enable an automatic virtual link configuration.
If this feature is enabled, then backbone connectivity
is ensured by the automatic creation of a virtual link between this
backbone router that has an interface to a common nonbackbone area
and other backbone routers that have interfaces to a common nonbackbone
area.
Example
host1(config-router)#automatic-virtual-link
Use the no version to disable
an automatic virtual link.