Configures cost for a specific interface.
Cost value is 1.
Interface subtype configuration mode
Use this command to set or reset the OSPFv2 cost on the interface. If the cost is not configured with this command, OSPFv2 calculates the value from the reference and interface bandwidths.
The no form of the command disables the configured cost.
The following example sets the cost to 520 on a specific Loopback interface.
device# configure terminal device(config)# interface loopback 1 device(config-Loopback-1)# ip ospf cost 520