
pre-shared-key
To configure the pre-shared keys for authentication, use the
pre-shared-key
command in keyring configuration
mode.
pre-shared-key{{ key } { clear cleartext-key } { local local-key } { password encrypted-key }}
Syntax Description
Pre-shared key in clear text for the peer node.
key
Stores the key in clear text.
clear cleartext-key
Stores the key as a type-7 encrypted password.
password encrypted-key
Specifies the pre-shared key for the local node.
local local-key
Command Default
None
Command Modes
Keyring configuration
Command History
Modification
Release
This command is
introduced.
Release
7.0.1
Example
The following is a sample in which a keyring is configured.
RP/0/RP0/CPU0:ios#conf
Thu Mar
7 19:33:14.594 UTC
RP/0/RP0/CPU0:ios(config)#keyring kyr1
RP/0/RP0/CPU0:ios(config-keyring-kyr1)#peer peer1
RP/0/RP0/CPU0:ios(config-keyring-kyr1-peer-peer1)#address 10.0.0.1 255.255.255.0
RP/0/RP0/CPU0:ios(config-keyring-kyr1-peer-peer1)#
pre-shared-key password 14341B180F547B7977
RP/0/RP0/CPU0:ios(config-keyring-kyr1-peer-peer1)#commit
Thu Mar
7 19:54:33.314 UTC
RP/0/RP0/CPU0:ios(config-keyring-kyr1-peer-peer1)#exit
RP/0/RP0/CPU0:ios(config-keyring-kyr1)#exit
RP/0/RP0/CPU0:ios(config)#exit
RP/0/RP0/CPU0:ios#show keyring kyr1
Thu Mar
7 19:58:07.135 UTC
Keyring Name
: kyr1
===============================================================================
Total Peers
: 1
-------------------------------------------------------------------------------
Peer Name
: peer1
IP Address
: 10.0.0.1
Subnet Mask
: 255.255.255.0
Local PSK
: Configured
Remote PSK
: Configured
Command Reference for Cisco NCS 1004
62
Commands
pre-shared-key