IP R
OUTING
C
OMMANDS
-163

ip ospf authentication

Use this command to specify the authentication type used for an interface.
Enter this command without any optional parameters to specify plain text
(or simple password) authentication. Use the no form to restore the
default of no authentication.
Syntax
ip ospf authentication [message-digest | null]
no ip ospf authentication
message-digest - Specifies message-digest (MD5) authentication.
null - Indicates that no authentication is used.
Command Mode
Interface Configuration (VLAN)
Default Setting
No authentication
Command Usage
• Before specifying plain-text password authentication for an interface,
configure a password with the ip ospf authentication-key command.
Before specifying MD5 authentication for an interface, configure the
message-digest key-id and key with the ip ospf message-digest-key
command.
• The plain-text authentication-key, or the MD5 key-id and key, must be
used consistently throughout the autonomous system.
Example
This example enables message-digest authentication for the specified
interface.
Related Commands
ip ospf authentication-key (3-164)
ip ospf message-digest-key (3-165)
Console(config)#interface vlan 1
Console(config-if)#ip ospf authentication message-digest
Console(config-if)#