ip ospf cost

This command sets the link cost for the specified interface.

Syntax

ip ospf cost number [a.b.c.d]
no ip ospf cost <cost> [a.b.c.d]  

Command

Description

number

Defines the cost in the range of 1 – 65535.

a.b.c.d

Address of the interface.

Default

NA

Command Mode

Privileged User

Example

This example sets the link cost for the specified interface and address.

(config-data)# interface vlan1 
(conf-if-VLAN 1)# ip ospf cost 1000 10.10.10.1