# ip ospf cost

#### Syntax

ip ospf cost intfCost

no ip ospf cost

#### Release Information

Command introduced before JunosE Release 7.1.0.

#### Description

Specifies a cost metric for an interface. Used in the calculation of the SPF routing table. The no version resets the path cost to the default.

#### Options

- intfCost—Link-state metric cost; number in the range 0–65535; default value is 10

#### Mode

Interface Configuration, Subinterface Configuration