Created on
09-21-2025
11:51 PM
Edited on
09-23-2025
10:02 PM
By
Anthony_E
Description |
This article describes how to change WAN IP references using a batch config update. |
Scope | FortiGate. |
Solution |
In certain scenarios, the FortiGate interface IP address must be reconfigured. Typical cases include:
When changing the interface IP address without console access, be aware that any active SSH/GUI session may be automatically disconnected. In addition, the static route configuration must be updated to reflect the new default gateway to ensure proper network connectivity.
Enter the command execute batch start This command will open the batch process context, and will allow to execute a series of CLI commands in batch mode. Once entered all the desired commands, end the batch mode with the command: execute batch end.
Here are the steps on how to use batch config to change the IP address and update the default route simultaneously:
Configuration:
execute batch start
Sample config:
execute batch start
Here is the initial IP address before running the batch configuration change: Network -> Interfaces.
Network -> Static Routes:
The output after loading the batch config:
Results: The WAN IP, subnet mask, and default route have all been changed.
Related articles: |
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.