identity
To configure the identity for the IKE protocol, use the identity command in IKE configuration submode. To delete the identity, use the no form of the command.
identity {address | hostname}
no identity {address | hostname}
Syntax Description
address |
Sets the IKE identity to be the IPv4 address of the switch. |
hostname |
Sets the IKE identity to be the host name of the switch. |
Command Default
None.
Command Modes
IKE configuration submode.
Command History
Release |
Modification |
---|---|
3.0(1) |
This command was introduced. |
Usage Guidelines
To use this command, the IKE protocol must be enabled using the crypto ike enable command.
Before configuring a certificate for the switch, configure the host name and domain name, and set the identity to be the host name. This allows the certificate to be used for authentication.
Note |
The host name is the fully qualified domain name (FQDN) of the switch. To use the switch FQDN for the IKE identity, you must first configure both the switch name and the domain name. The FQDN is required for using RSA signatures for authentication. By default address is identified. |
Examples
The following example shows how to set the IKE identity to the IP address of the switch:
switch# config terminal
switch(config)# crypto ike domain ipsec
switch(config-ike-ipsec)# identity address
The following example shows how to delete the IKE identity:
switch(config-ike-ipsec)# no identity address
The following example shows how to set the IKE identity to the host name:
switch(config-ike-ipsec)# identity hostname
The following example shows how to delete the IKE identity:
switch(config-ike-ipsec)# no identity hostname