Configuring the local ID for the IKEv2 profile
Restrictions and guidelines
For digital signature authentication, the device can use an ID of any type. If the local ID is an IP address that is different from the IP address in the local certificate, the device uses the FQDN as the local ID. The FQDN is the device name configured by using the sysname command.
For pre-shared key authentication, the device can use an ID of any type other than the DN.
Procedure
Enter system view.
system-view
Enter IKEv2 profile view.
ikev2 profile profile-name
Configure the local ID.
identity local { address { ipv4-address | ipv6 ipv6-address } | dn | email email-string | fqdn fqdn-name | key-id key-id-string }
By default, no local ID is configured, and the device uses the IP address of the interface where the IPsec policy applies as the local ID.