C
HAPTER
45
| IP Routing Commands
Open Shortest Path First (OSPFv2)
– 1050 –
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 (1063)