auto-cost

Configures the reference bandwidth in terms of megabits per second. Specifying the reference bandwidth allows you to control the default metrics for an interface, which is calculated by OSPF.

The formula used to calculate default metrics is: ref-bw divided by the bandwidth.

Use the no → auto-cost → reference-bandwidth command to configure default metrics calculation based on interface type.

Supported in the following platforms:

Syntax

auto-cost reference-bandwidth <1-4294967>

Parameters

auto-cost reference-bandwidth <1-4294967>
reference-bandwidth <1-4294967> Defines the reference bandwidth in Mbps
  • <1-4294967> – Specify the reference bandwidth value from 1 - 4294967.

Examples

nx9500-6C8809(config-profile default-ap8533-router-ospf)#auto-cost reference-bandwidth 1

Ensure that auto-cost reference-bandwidth is configured uniformly on all routers

nx9500-6C8809(config-profile default-ap8533-router-ospf)#
nx9500-6C8809(config-profile default-ap8533-router-ospf)#show context router ospf
  area 0.0.0.4
  auto-cost reference-bandwidth 1
nx9500-6C8809(config-profile default-ap8533-router-ospf)#

Related Commands

no (router-mode-config-command) Removes auto-cost reference bandwidth settings