Technical Tip: IPsec VPN client with DHCP-relay for external DHCP service use loopback IP address
| Description | This article provides an option to use a loopback IP for the DHCP-relay source IP. |
| Scope | FortiGate. |
| Solution | FortiGate allows an external DHCP server to assign IP addresses to the IPsec VPN clients. This is typically found in enterprises where all DHCP leases must be managed centrally.
yoda-kvm20 (P1) # show set dpd-retryinterval 10
yoda-kvm20 (P2) # show
On the interface facing the DHCP server, DHCP relay is enabled. It also needs a source IP address to identify the IP address range to be assigned from the DHCP server:
edit "lo-FC-RA-P1"
edit "FC-RA-P1"
The 'dhcp-relay-source-ip' can be a loopback interface if the tunnel interface is not available.
The DHCP server, for example, the Windows DHCP server, will reply from the IP pool, according to the loopback IP address range. |

