ip ospf authentication-key




ip ospf authentication-key password

no ip ospf authentication-key

Syntax Description:


Any continuous string of characters that can be entered from the keyboard up to 8 bytes in length.

Command Description:

To assign a password to be used by neighboring routers that are using OSPF's simple password authentication, use the ip ospf authentication-key interface configuration command. To remove a previously assigned OSPF password, use the no form of this command.

The password created by this command is used as a "key" that is inserted directly into the OSPF header when the Cisco IOS software originates routing protocol packets. A separate password can be assigned to each network on a per-interface basis. All neighboring routers on the same network must have the same password to be able to exchange OSPF information.


The following example enables the authentication key with the string yourpass:

Router(config-if)#ip ospf authentication-key yourpass


The Cisco IOS software will use this key only when authentication is enabled for an area with the area authentication router configuration command.

Related Commands:

� Cisco Systems, Inc. 2001, 2002, 2003
World Wide Education

Converted from CHM to HTML with chm2web Pro 2.85 (unicode)