Assigning a cost
The cost
parameter provides
a way to define a fixed, user-assigned cost of an LSA type 3 summarized
prefix.
Setting a summary cost to an area
This example shows how to set the summary cost to 100 for area 10 with an address range of 10.10.0.0/16.
switch(ospf)# area 10 range 10.10.0.0/16 type summary cost 100
Using a standard summary cost for an area
This example shows how to use the standard method for determining the summarized cost.
switch(ospf)# area 10 range 10.10.0.0/16 type summary
You must execute write mem
to preserve these settings across reboots.
Setting a summary cost to an NSSA area
To set the summary cost for NSSA area 20 address range 10.20.0.0/16 to 100 with a default metric-type of type2, enter the following command.
switch(ospf)# area 20 range 10.20.0.0/16 type nssa cost 100
Setting a summary cost and metric-type to an NSSA area
To set the summary cost and metric-type for NSSA area 20 address range 10.20.0.0/16 to 100, enter the following command.
switch(ospf)# area 10 range 10.10.0.0/16 type nssa cost 100 metric-type type1
Using the RFC standard ethod to determine the summarized cost to an NSSA area
To change the configuration so that the 10.20.0.0/16 range uses the RFC standard method for determining the summarized cost, enter the following command.
switch(ospf)# area 10 range 10.10.0.0/16 type nssa
You must execute write mem
to preserve these settings across reboots.
Output showing settings for summary costs
The show ip ospf
command displays
information about summary costs. An entry of auto
indicates that the cost is calculated by the OSPF standard for summarized
networks.
switch(config)# show ip ospf OSPF Configuration Information : : Currently defined address ranges: Area ID LSA Type IP Network Network Mask Advertise Cost --------------- ---------- --------------- --------------- --------- -------- 0.0.0.10 Summary 10.10.0.0 255.255.0.0 yes auto 0.0.0.20 NSSA 10.20.0.0 255.255.0.0 yes auto 0.0.0.30 Summary 10.30.0.0 255.255.0.0 no 16777215