| Description | This article explains how to fix a phase1 issue about 'error constructing ID payload'. |
| Scope | FortiGate. |
| Solution |
When establishing IPsec VPN site-to-site with a peer device using IKEv2, the following error may be seen in IKE debugs during the authentication process by using following commands:
diagnose debug console timestamp enable diagnose vpn ike log filter dst-addr4 /rem-addr4 x.x.x.x <----- Remote gateway IP address. diagnose debug application ike -1 diagnose debug enable
2024-09-20 18:20:22.440112 ike V=root:0:FGT-VPN:13258: initiator preparing AUTH msg
After making sure proposals, key lifetime and other phase1 parameters match and are compatible with the VPN peers, check the VPN phase1 config with the next command: 'show vpn ipsec phase1-interface'. If noticing the 'localid-type' is set under the tunnel name with the issue as below: config vpn ipsec phase1-interface
config vpn ipsec phase1-interface
After making the changes, the tunnel should come up without ID type mismatch and the error in question. |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.