CLI Guide

ip ospf authentication-key
Enable authentication and set an authentication key on OSPF trac on an interface.
Syntax
ip ospf authentication-key [encryption-type] key
To delete an authentication key, use the no ip ospf authentication-key command.
Parameters
encryption-type (OPTIONAL) Enter 7 to encrypt the key.
key Enter an eight-character string. Strings longer than eight characters are truncated.
Defaults Not congured.
Command Modes INTERFACE
Supported Modes Full—Switch
Command History
Version Description
9.9(0.0) Introduced on the FN IOM.
8.3.16.1 Introduced on the MXL 10/40GbE Switch IO Module.
Usage Information All neighboring routers in the same network must use the same password to exchange OSPF information.
ip ospf cost
Change the cost associated with the OSPF trac on an interface.
Syntax
ip ospf cost cost
To return to default value, use the no ip ospf cost command.
Parameters
cost Enter a number as the cost. The range is from 1 to 65535.
Defaults The default cost is based on the reference bandwidth.
Command Modes INTERFACE
Supported Modes Full—Switch
Command History
Version Description
9.9(0.0) Introduced on the FN IOM.
8.3.16.1 Introduced on the MXL 10/40GbE Switch IO Module.
Usage Information
If this command is not congured, cost is based on the auto-cost command.
When you congure OSPF over multiple vendors, to ensure that all routers use the same cost, use the ip ospf
cost
command. Otherwise, OSPF routes improperly.
Related Commands auto-cost — controls how the OSPF interface cost is calculated.
Open Shortest Path First (OSPFv2 and OSPFv3) 921