FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
nithincs
Staff
Staff
Article Id 377993
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
ip address is illegal

value parse error before '10.10.10.0/24'
Command fail. Return code -8

 

In GUI, FortiGate will give an error with the message 'Invalid IP Netmask':

 

invalid ip.JPG

Contributors