reference-bandwidth

Syntax

reference-bandwidth <bandwidth-value>

no reference-bandwidth

Description

Sets the reference bandwidth for OSPFv2. If the OSPFv2 interface cost is not explicitly set. then the cost of all the OSPFv2 interfaces is recalculated based on the reference bandwidth and link speed of the interface.

For VLAN interfaces the link speed value is taken as 1 Gbps (if the OSPFv2 interface cost is not explicitly set).

The no form of this command sets the reference bandwidth for OSPF to the default of 100000 Mbps.

Command context

config-ospf-<instance>

Parameters

<bandwidth-value>

Specifies the reference bandwidth used to calculate the cost of an interface in Mbps. Range: 1-4000000 Mbps. Default: 100000 Mbps.

Authority

Administrators or local user group members with execution rights for this command.

Examples

Setting the reference bandwidth:

switch(config)# router ospf 1
switch(config-ospf-1)# reference-bandwidth 40000

Setting the reference bandwidth to the default value:

switch(config)# router ospf 1
switch(config-ospf-1)# no reference-bandwidth