pre-Version
6.1.1.1
Usage
All neighboring routers in the same network must use the same password to exchange OSPF
Information
information.
ip ospf cost
Change the cost associated with the OSPF traffic on an interface.
C-Series, E-Series, S-Series, Z-Series, S4810
Syntax
ip ospf cost cost
To return to default value, use the no ip ospf cost command.
Parameters
cost
Defaults
The default cost is based on the reference bandwidth.
Command Modes
INTERFACE
Command History
Version 8.3.11.1
Version 8.3.7.0
Version 7.6.1.0
Version 7.5.1.0
pre-Version
6.1.1.1
Usage
If this command is not configured, cost is based on the auto-cost command.
Information
When you configure OSPF over multiple vendors, use the ip ospf cost command to
ensure that all routers use the same cost. Otherwise, OSPF routes improperly.
Related
auto-cost
Commands
Introduced on the E-Series.
Enter a number as the cost. The range is 1 to 65535.
Introduced on the Z9000.
Introduced on the S4810.
Introduced on the S-Series.
Introduced on the C-Series.
Introduced on the E-Series.
– controls how the OSPF interface cost is calculated.
1163