![Cisco Nexus 3548 series Command Reference Manual Download Page 198](http://html.mh-extra.com/html/cisco/nexus-3548-series/nexus-3548-series_command-reference-manual_2609162198.webp)
178
Cisco Nexus 3548 Switch NX-OS Unicast Routing Command Reference
OL-27852-01
Chapter Unicast Routing Commands
ip ospf authentication-key
ip ospf authentication-key
To assign a password for simple password authentication to be used by neighboring Open Shortest Path
First (OSPF) routers, use the
ip ospf authentication-key
command. To remove a previously assigned
OSPF password, use the
no
form of this command.
ip ospf authentication-key
[
0
|
3
|
7
]
password
no ip ospf authentication-key
Syntax Description
Command Default
Unencrypted password
Command Modes
Interface configuration mode
Command History
Usage Guidelines
The password created by this command is used as a key that is inserted directly into the OSPF header
when Cisco NX-OS originates routing protocol packets. You can assign a separate password 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
Cisco NX-OS uses this key when you enable authentication for an interface with the
ip ospf
authentication
interface configuration command or if you configure the area for authentication with the
area authentication
command in router configuration mode.
This command requires the LAN Base Services license.
Examples
This example shows how to configure an unencrypted authentication key with the string yourpass:
switch#
configure terminal
switch(config)#
interface ethernet 1/5
switch(config-if)#
no switchport
switch(config-if)#
ip ospf authentication-key yourpass
switch(config-if)#
0
(Optional) Configures an unencrypted password.
3
(Optional) Configures a 3DES encrypted password string.
7
(Optional) Configures a Cisco type 7 encrypted password string.
password
Any continuous string of characters that can be entered from the
keyboard up to 8 bytes.
Release
Modification
5.0(3)A1(1)
This command was introduced.