DGS-6604
m
area range
CLI Reference Guide
43
area range
Use this command to summarize and consolidate routes at an area boundary.
Use the
no area range
command to disable this function.
area
AREA
-
ID
range
PREFIX
/
PREFIX
-
LENGTH
[advertise | not-advertise] [cost
COST
]
no area
AREA
-
ID
range [
PREFIX
/
PREFIX
-
LENGTH
]
Default
Disabled
The default is advertise.
If cost is not specified, the cost of this route is found from the cost sets of
component subnets and the maximum cost of those is chosen. (based on
RFC2328).
Command Mode
Router configuration
Usage Guideline
Use this command with ABRs to summarize the intra-area routes. This command
is used to specify the summarized route for area 0 or for a non-zero area.
Multiple area router configuration commands specifying the range option can be
configured. Thus, OSPF can summarize addresses for many different sets of
address ranges.
For the same area, this command can also be specified multiple times.
Example
This example shows how to set one summary route to be advertised by the ABR
to other areas for all subnets on network 192.168.0.0:
Verify the settings by entering the
show ip ospf
command.
Syntax Description
AREA-ID
Specifies the identifier of the area for which routes are summarized. The
identifier can be specified as either an IP address or a decimal value.
PREFIX/PREFIX-
LENGTH
The prefix and length of prefix for the area range.
advertise
(Optional) Sets the status to advertise and generate a Type 3 summary link-state
advertisement (LSA) for the specified address range.
not-advertise
(Optional) Sets the status to DoNotAdvertise for the specified address range.
Type 3 summary LSA is suppressed, the component networks remain hidden.
COST
Cost for speicified summary route. The valid setting is 0 to 16777215.
Switch# configure terminal
Switch(config)# router ospf
Switch(config-router)# area 1 range 192.168.0.0/16