crypto isakmp suggest-key

Last Updated : Nov 06, 2012 |
Generates a random string which you can use as a pre-shared key for IKE. Use the same key on both peers.
Prolog information

Syntax

crypto isakmp suggest-key [key-length] [key-type {alphanumeric | hexadecimal}]

Parameters

Parameter
Description
Possible Values
Default Value
key-length
The length of the key to be generated
8-127 alphanumerical characters
8-64 bytes in hexadecimal notation
32 characters
key-type
Keyword indicating the type of key to be generated
alphanumeric or hexadecimal
alphanumeric

User level

read-write

Context

general

Examples

To generate a random string of any length:
Gxxx-001# crypto isakmp suggest-key
The suggest key: GNpi1odGNBrB5z4GJLz156jDmRWAGFES
To generate a random string of 8 characters:
Gxxx-001# crypto isakmp suggest-key 8
The suggest key: iEvKoQ1e