Programmable Internetworking & Communication Operating System Docs ... Click Spaces -> Space Directory to see docs for all releases ...
Page tree

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.

Run the command set protocols ospf auto-cost reference-bandwidth to set the reference bandwidth for automatic route cost calculation. The reference bandwidth specified here is considered equivalent to OSPF cost of 1. The default bandwidth is 100Mbits/s, that is, a link with bandwidth of 100Mbits/s or higher is considered to have a cost of 1. Cost of links with lower bandwidth will be calculated with reference to this bandwidth value. Optional parameter instance-id can be included to specify the OSPFv2 multi-instance ID. Optional parameter vrf can be used to specify the name of the VRF for the OSPF instance.

Note that this configuration must be consistent within the OSPF domain.


Multiple instances of OSPF are only allowed in the default VRF. A maximum of 8 instance can be configured in the default VRF. In non-default VRFs, only single instance OSPF can be configured.

Run the command delete protocols ospf auto-cost reference-bandwidth to delete this configuration

Command Syntax

set protocols ospf [instance-id <instance-id> | vrf <vrf-name>] auto-cost reference-bandwidth <ref-bandwidth>

delete protocols ospf [instance-id <instance-id> | vrf <vrf-name>] auto-cost reference-bandwidth <ref-bandwidth>




instance-id <instance-id>Optional, specifies the OSPF instance ID. The value is an integer that ranges from 1 to 8.

vrf <vrf-name>

Optional. Specifies the name of the VRF for the OSPF instance.

reference-bandwidth <ref-bandwidth>Specifies the reference bandwidth. The value is an integer that ranges from 1 to 4294967.


  •  Configure the OSPF reference bandwidth to 500000 for the default VRF OSPF instance ID 1.
Code Block
admin@XorPlus# set protocols ospf instance-id 1 auto-cost reference-bandwidth 500000
admin@Xorplus# commit