-164

ip ospf authentication-key

Use this command to assign a simple password to be used by neighboring
routers. Use the no form to remove the password.
Syntax
ip ospf authentication-key key
no ip ospf authentication-key
key - Sets a plain text password. (Range: 1-8 characters)
Command Mode
Interface Configuration (VLAN)
Default Setting
No password
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.
• A differ ent password can be assigned to each network interface b asis,
but the password must be used consistently on all neighboring routers
throughout a network (i.e., autonomous system).
Example
This example sets a password for the specified interface.
Related Commands
ip ospf authentication (3-163)
Console(config)#interface vlan 1
Console(config-if)#ip ospf authentication-key badboy
Console(config-if)#