Chapter 50
| IP Routing Commands
Open Shortest Path First (OSPFv2)
– 1010 –
Example
This example creates a summary address for all area routes in the range of 10.2.x.x.
Console(config-router)#area 10.2.0.0 range 10.2.0.0 255.255.0.0 advertise
Console(config-router)#
auto-cost
reference-bandwidth
Use this command to calculate the default metrics for an interface based on
bandwidth. Use the no form to automatically assign costs based on interface type.
Syntax
auto-cost reference-bandwidth reference-value
no auto-cost reference-bandwidth
reference-value - Bandwidth of interface. (Range: 1-4294967 Mbps)
Command Mode
Router Configuration
Default Setting
1 Mbps
Command Usage
â—† The system calculates the cost for an interface by dividing the reference
bandwidth by the interface bandwidth. By default, the cost is 1 Mbps for all
port types (including 100 Mbps ports, 1 Gigabit ports, and 10 Gigabit ports).
â—† A higher reference bandwidth can be used for aggregate links to indicate
preferred use as a lower cost interface.
â—† The ip ospf cost command overrides the cost calculated by the auto-cost
reference-bandwidth command.
Example
This example sets the reference value to 10000, which generates a cost of 100 for
100 Mbps ports, 10 for 1 Gbps ports and 1 for 10 Gbps ports.
Console(config-router)#auto-cost reference-bandwidth 10000
Console(config-router)#
Related Commands
ip ospf cost (1024)