The local-id command specifies the local ID for IKE negotiation.
The undo local-id command deletes the local ID for IKE negotiation.
By default, the local ID is not configured for IKE negotiation.
| Parameter | Description | Value |
|---|---|---|
| id | Specifies the local ID used in IKE negotiation | The value is a string of 1 to 255 case-sensitive characters. It cannot contain question marks. |
Usage Scenario
If the ID type of the IKE peer is IP, FQDN, or USER-FQDN, you can configure the local end identity in the system view or IKE peer view.
The local-id command sets an ID, indicating that the IKE peer uses this ID for authentication. If the ID type is FQDN or User-FQDN, the ike local-name command sets an ID, indicating that all peers on the device use this ID for authentication. The ID specified by the local-id command has a higher priority than the one specified by the ike local-name command.
Precautions
The IPSec-enabled device cannot automatically obtain the device host name sysname as the ID for identity authentication. You must run the ike local-name or local-id command to specify the local ID used in IKE negotiation.