Deployment Guide
Open Shortest Path First (OSPFv2 and OSPFv3) | 1045
ip ospf authentication-key
c e s
Enable authentication and set an authentication key on OSPF traffic on an interface.
Syntax
ip ospf authentication-key [encryption-type] key
To delete an authentication key, enter no ip ospf authentication-key.
Parameters
Defaults
Not configured.
Command Modes
INTERFACE
Command
History
Usage
Information
All neighboring routers in the same network must use the same password to exchange OSPF
information.
ip ospf cost
c e s
Change the cost associated with the OSPF traffic on an interface.
Syntax
ip ospf cost cost
To return to default value, enter no ip ospf cost.
Parameters
Defaults
The default cost is based on the reference bandwidth.
Command Modes
INTERFACE
Command
History
Usage
Information
If this command is not configured, cost is based on the auto-cost command.
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
Commands
encryption-type
(OPTIONAL) Enter 7 to encrypt the key.
key
Enter an 8 character string. Strings longer than 8 characters are truncated.
Version 7.6.1.0 Introduced on S-Series
Version 7.5.1.0 Introduced on C-Series
pre-Version 6.1.1.1 Introduced on E-Series
cost
Enter a number as the cost.
Range: 1 to 65535.
Version 7.6.1.0 Introduced on S-Series
Version 7.5.1.0 Introduced on C-Series
pre-Version 6.1.1.1 Introduced on E-Series
auto-cost Control how the OSPF interface cost is calculated.










