# address cost

#### Syntax

[ no ] address { ipAddress | unnumbered interfaceType interfaceSpecifier } cost intfCost

#### Release Information

Command introduced before JunosE Release 7.1.0.

#### Description

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

| Note: You must issue the address area command before issuing this command.

#### Options

- ipAddress—OSPF interface address previously specified with the address command
- unnumbered—Indicates that OSPF is running on an unnumbered interface previously specified with the address command
  - interfaceType—Interface type; see Interface Types and Specifiers
  - interfaceSpecifier—Particular interface; format varies according to interface type; see Interface Types and Specifiers
- intfCost—Link-state metric cost; a number in the range 0–65535; default value is 10

#### Mode

Router Configuration