The
metric-type
command specifies whether to include the redistribution cost in the cost metric calculation
for a type-7 default LSA injected into the area.
type1
Calculate external route cost for a type-7 default LSA as the sum of (1) the external route cost assigned by
the ASBR plus (2) the internal cost from the router with traffic for the external route to the ASBR
advertising the route.
type2
Calculate external route cost for a type-7 default LSA as being only the cost from the router with traffic for
the external route to the ASBR advertising the route.
If metric-type is not specified, the default (
type2
) will be used.
Using the
area ospf-area-id nssa 0-16777215
without entering either
no-summary
or
metric-type
resets the routing switch to the state where injection of type-3 summary routes and the type-7 default external
routes is enabled with
metric-type
set to
type2
.
Default: Enabled with
metric-type type2
NOTE:
Different routers in the NSSA can be configured with different
metric-type
values.
Examples
The following examples of configuring a stub area and an NSSA on a routing switch use an (arbitrary) cost of
"10".
Figure 35: Creating stub area and NSSA assignments
Assigning VLANs and/or subnets to each area
After you define an OSPF area (page A-25), you can assign one or more VLANs and/or subnets to it. When a
VLAN is assigned to an area, all currently configured IP addresses in that VLAN are automatically included in the
assignment unless you enter a specific IP address.
NOTE:
All static VLANs configured on a routing switch configured for OSPF must be assigned to one of the
defined areas in the AS.
Chapter 11 Open Shortest Path First Protocol (OSPF)
201