Reference v4.1.0 Instruction Manual
Network OS Command Reference 375
53-1003115-01
ip ospf cost
2
ip ospf cost
Configures cost for a specific interface.
Synopsis ip ospf cost value
no ip ospf cost
Operands value Cost value. Valid values range from 1 through 65535.
Defaults Cost value is 1.
Command Modes Interface subtype configuration mode
Description Use this command to set or reset the OSPF cost on the interface. If the cost is not configured with
this command, OSPF calculates the value from the reference and interface bandwidths. For more
information, refer to the auto-cost reference-bandwidth (OSPF) command.
Usage Guidelines Enter no ip ospf cost to disable this configuration.
Examples To set the cost to 600 on a specific OSPF 10-gigabit Ethernet interface:
switch(config)# interface tengigabitethernet 190/0/49
switch(conf-if-te-190/0/49)# ip ospf cost 600
To set the cost to 520 on a specific OSPF virtual Ethernet (VE) interface:
switch(config)# rbridge-id 178
switch(config-rbridge-id-178)# interface ve 12
switch(config-ve-12)# ip ospf cost 520
See Also interface, interface ve, ip ospf area, ip ospf auth-change-wait-time, ip ospf authentication-key,
ip ospf database-filter, ip ospf dead-interval, ip ospf hello-interval, ip ospf md5-authentication,
ip ospf mtu-ignore, ip ospf network, ip ospf passive, ip ospf priority, ip ospf retransmit-interval,
ip ospf transmit-delay, auto-cost reference-bandwidth (OSPF)