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.
sjoshi
Staff
Staff
Article Id 336199
Description

 

This article describes the 'Invalid Number' error that may occur during BGP setup on FortiGate devices. It provides detailed troubleshooting steps to identify the root cause and successfully configure BGP without errors

 

Scope

 

FortiOS.

 

Solution

 

During BGP configuration, the 'Invalid number' error may appear on the GUI as shown below.

 

bg.PNG

 

 

When running CLI 8 debug on FortiGate, it shows something with respect to the local AS setting:
 

chameleon-kvm99 # diagnose debug cli 8
Debug messages will be on for 30 minutes.

chameleon-kvm99 # diagnose debug enable

chameleon-kvm99 # 0: config router bgp
0: end
0: config router bgp
0: config neighbor
0: edit "10.10.10.2"
0: unset local-as
0: set local-as 65000
-89: end

 
Even on the FortiGate Support tool output, there is the following information:
 
Capture.PNG

 

So from the above output, it can be concluded that the error exists under BGP neighbor settings for local AS.

 

Executing the same configuration from the CLI results in the following error.

 

Local-as must be different from remote-as.
object set operator error, -89 discard the setting
Command fail. Return code -89 

 

Since in an iBGP setup, setting the local AS value under the neighbor setting is unnecessary, only the remote AS value needs to be configured. Once the local AS is unset in the neighbor setting, the configuration can be saved successfully.