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
FortiOS.
During BGP configuration, the 'Invalid number' error may appear on the GUI as shown below.
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
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.
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 2024 Fortinet, Inc. All Rights Reserved.