Description | This article describes the reason for the error message 'IP address is illegal' when setting an IP address for the interface. |
Scope | FortiGate. |
Solution |
FortiGate will give an error message 'IP address is illegal' if the network ID is applied as interface IP.
For example: FortiGate interface port4 needs to be configured with an IP address from the 10.10.10.0/24 network, where 10.10.10.0 is the network ID and 10.10.10.255 is the broadcast ID for the network.
If the IP for the interface is pushed as 10.10.10.0/24, FortiGate will give an error 'IP address is illegal' in CLI:
F1 # config system interface F1 (interface) # edit port4 F1 (port4) # set ip 10.10.10.0/24 value parse error before '10.10.10.0/24'
In GUI, FortiGate will give an error with the message 'Invalid IP Netmask':
|
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.