key (keychain)

Configures a unique key ID in a key chain and enters key configuration mode.

Syntax

key key-id
no key key-id

Command Default

By default, a key ID is not configured.

Parameters

key-id
Specifies a unique key ID. Valid values range from 1 to 65535.

Modes

Global configuration mode

Usage Guidelines

Use the no form of the command to remove the specified key and all associated configuration.

You can configure no more than 8 keys per key chain.

Examples

The following example configures a key with an ID of 10 in key chain 1.

device# configure terminal
device(config)# keychain keychain1
device(config-keychain1)# key 10
device(config-keychain1-key10)#