ip ospf authentication
Use the ip ospf authentication command in the Interface Configuration
mode to set the OSPF Authentication Type and Key for the specified
interface. Use the no form of the command to return the authentication type
to the default value.
Syntax
ip ospf authentication {none | {simple
no ip ospf authentication
•
encrypt — MD5 encrypted authentication key.
key — Authentication key for the specified interface. (Range: 8 bytes or
•
less if the authentication type is simple and 16 bytes or less if the type is
encrypt.)
key-id — Authentication key identifier for the authentication type
•
encrypt. (Range: 0–25)
Default Configuration
This command has no default configuration.
Command Mode
Interface Configuration (VLAN) mode.
User Guidelines
Unauthenticated interfaces do not need an authentication key or
authentication key ID.
Example
The following example sets the OSPF Authentication Type and Key for VLAN
15.
console(config-if-vlan15)#ip ospf authentication
encrypt test123 100
1098
OSPF Commands
key
key key-id
} | {encrypt
}}