FortiSwitch
FortiSwitch: secure, simple and scalable Ethernet solutions
zendodg
Staff
Staff
Article Id 283549

 

Description

This article discusses config error sync issues due to Fortiswitch access (Fortiswitch on FortiLink mode) 'Rest API login failed with error 28',

Scope FortiSwitch.
Solution

When a Fortiswitch is controlled by a FortiGate, it sends information to FortiSwitch through Rest API.

FortiGate needs to have admin access to FortiSwitch. This access is done by HTTPS.

 

FortiSwitch needs to have at least HTTPS enabled on its internal interface to allow be controlled by FortiGate.

If it is disabled disable, It is possible to get the next error with the command 'get-sync-status'.

 

REStAPi.PNG

 

'Rest API login failed with error 28' means that FortiGate could not log in to FortiSwitch through its rest API.

To fix this,  enable HTTPS on FortiSwitch's internal interface manually either SSH or console interfaces.

 

config system interface

    edit "internal"

        set allowaccess ping https ssh

    next

end

Contributors