# ospf auto-cost reference-bandwidth

#### Syntax

[ no ] ospf auto-cost reference-bandwidth refBw

#### Release Information

Command introduced before JunosE Release 7.1.0.

#### Description

Controls how OSPF calculates default metrics for the interface. The no version assigns cost based only on the interface type.

#### Options

- refBw—Bandwidth in megabits per second, in the range 1–4294967; default value is 100

#### Mode

Router Configuration