Command History Release Modification

12.0 This command was introduced.

Usage Guidelines Before using the ip ospf authentication command, configure a password for the interface using the ip ospf authentication-key command. If you use the ip ospf authentication message-digest command, configure the message-digest key for the interface with the ip ospf message-digest-key command.

For backward compatibility, authentication type for an area is still supported. If the authentication type is not specified for an interface, the authentication type for the area will be used (the area default is null authentication).

Examples The following example enables message digest authentication.

ip ospf authentication message-digest

Related Commands Command Description

area authentication

Enables authentication for an OSPF area.

ip ospf

Assigns a password to be used by neighboring routers that are using the

authentication-key

simple password authentication of OSPF.

ip ospf

Enables OSPF MD5 authentication.

message-digest-key

ip ospf authentication-key

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

ip ospf authentication-key password

no ip ospf authentication-key

Syntax Description

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

Defaults

No password is specified.

Command Modes

Interface configuration

Command History

Release Modification

10.0 This command was introduced.

Usage Guidelines

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.

Note

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

Examples

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

ip ospf authentication-key yourpass

Related Commands

Command Description

area authentication Enables authentication for an OSPF area.

Was this article helpful?

0 0

Post a comment