| Description |
This article describes why it is not possible to change the interface IP address when 'Error: IP address x.x.x.x is configured as source-ip for syslog or other servers' is seen. |
| Scope | FortiGate. |
| Solution |
As shown in the screenshot below, it is not possible to change the IP address on the interface even though there are no references.
It is possible to check where that IP is being used by running the following command (where x.x.x.x is the current IP):
In the below screenshot, the IP address of the interface is referenced in the syslogd server configuration
After confirming all references are gone, it is possible to change the interface IP address to the 0.0.0.0/0.0.0.0 default address (or any other IP).
Once the address is changed, it is possible to use the same address on a different interface and update all existing firewall policies, static routes, etc. If there is a FortiManager, it will be possible to push all changes from FortiManager once the interface address is updated on FortiManager. If there is no FortiManager, it will be necessary to manually change everything.
Also, when trying to change an interface IP address, such as assigning 192.168.1.3/24 to an interface, the FortiGate may generate an error like the following:
This indicates that the current IP address (192.168.1.1) is being used in the SNMP configuration, and FortiGate prevents changing it until it is removed from the configuration.
To fix this, unset the source-ip from the SNMP configuration by running following command:
config system snmp community After unsetting the source-ip, it will be possible to change the interface IP address successfully. |
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.