The documentation set for this product strives to use bias-free language. For the purposes of this documentation set, bias-free is defined as language that does not imply discrimination based on age, disability, gender, racial identity, ethnic identity, sexual orientation, socioeconomic status, and intersectionality. Exceptions may be present in the documentation due to language that is hardcoded in the user interfaces of the product software, language used based on RFP documentation, or language that is used by a referenced third-party product. Learn more about how Cisco is using Inclusive Language.
To specify the hostname for the peer in the Internet Key Exchange Version 2 (IKEv2) keyring, use the hostname command IKEv2 keyring peer configuration mode. To remove the hostname, use the no form of this command.
hostname name
no hostname
name |
Name for the peer. |
The hostname is not specified.
IKEv2 keyring peer configuration (config-ikev2-keyring-peer)
Release |
Modification |
---|---|
15.1(1)T |
This command was introduced. |
Cisco IOS XE Release 3.3S |
This command was integrated into Cisco IOS XE Release 3.3S. |
15.2(4)S |
This command was integrated into Cisco IOS Release 15.2(4)S. |
When configuring the IKEv2 keyring, use this command to identify the peer using hostname, which is:
The following example shows how to configure the hostname for a peer when configuring an IKEv2 keyring:
Router(config)# crypto ikev2 keyring keyring-1 Router(config-ikev2-keyring)# peer peer1 Router(config-ikev2-keyring-peer)# description peer1 Router(config-ikev2-keyring-peer)# hostname peer1.example.com
Command |
Description |
---|---|
address (ikev2 keyring) |
Specifies the IPv4 address or the range of the peers in IKEv2 key. |
crypto ikev2 keyring |
Defines an IKEv2 keyring. |
description (ikev2 keyring) |
Describes an IKEv2 peer or a peer group for the IKEv2 keyring. |
identity (ikev2 keyring) |
Identifies the peer with IKEv2 types of identity. |
peer |
Defines a peer or a peer group for the keyring. |
pre-shared-key (ikev2 keyring) |
Defines a preshared key for the IKEv2 peer. |