area range
(OSPFv2)
area
{
A.B.C.D
|
decimal
}
range
E.F.G.H
I.J.K.L
area
{
A.B.C.D
|
decimal
}
range
E.F.G.H
I.J.K.L
advertise
[
cost
cost_value
]
area
{
A.B.C.D
|
decimal
}
range
E.F.G.H
I.J.K.L
cost
cost_value
area
{
A.B.C.D
|
decimal
}
range
E.F.G.H
I.J.K.L
not-advertise
[
cost
cost_value
]
no area range
The address range is advertised.
- E.F.G.H I.J.K.L
- Specifies the IP address and mask portion of the range. All network addresses that match this network are summarized in a single route and advertised by the ABR.
- cost cost_value
- Sets the cost value for the area range. This value is used as the generated summary LSA cost. The range for cost_value is 1 to 6777214. If this value is not specified, the cost value is the default range metric calculation for the generated summary LSA cost.
OSPF router configuration mode
OSPF router VRF configuration mode
Use this command only on ABRs to specify route summarization for an existing area. The result is that a single summary route is advertised to other areas by the ABR, in the form of a Type 3 LSA. Routing information is condensed at area boundaries and external to the area, and only a single route is advertised for each address range.
An example of when you might want to use this command is if you have many small networks advertised from area 0 to any other area, or from any non-backbone area into the backbone. This command gives you a summary route instead of many smaller routes. In an area, the OSPF database on each router must be an exact copy of the databases of the other routers. This means that no summarization is allowed within the area.
The
no form of the command disables the specification of range parameters on an ABR.
The following example advertises to Area 3 all the addresses on the network 10.1.1.0 10.255.255.0 in the ABR you are signed into.
device# configure terminal device(config)# router ospf device(config-ospf-router)# area 3 range 10.1.1.0 10.255.255.0 advertise