Skip to main content
AEK
SuperUser
SuperUser
November 11, 2025
Solved

FortiNAC doesn't see new VLANs on FortiLink

  • November 11, 2025
  • 4 replies
  • 1269 views

Hi FNAC admins

  • FortiNAC 7.2.9
  • FortiOS 7.4.9 with managed switches

Integration is fine and all works great so far except when I add a new VLANs in my FortiLink it is not detected by FortiNAC, while all pre-existing VLANs are all detected.

Performed Read VLANs, Resync Interfaces, Validate Credentials, L2/L3 poll, but new VLANs still not detected.

I mean don't see the new VLANs when try Model Config, and don't see then when I try Test Device Mapping.

Even when I assign the new VLAN manually to to a port on my FGT, the FNAC doesn't want to reflect this change (it keeps only known VLANs).

Opened a ticket but no fix so far.

Any idea about this issue?

Best answer by ebilcari

Based on the documentation, the VLAN information should be extracted with REST API.
I didn't found any reported issue related to this behavior. I tried to emulate it in a lab (FOS 7.2.11) and the API call used for it should be: 

https://10.0.10.1:443/api/v2/cmdb/system/interface?filter=type==vlan&access_token=*****&format=name|vdom|vlanid|interface&vdom=* 
the output should list all the VLANs like:

{
"name":"ISOL-F",
"q_origin_key":"ISOL-F",
"vdom":"root",
"interface":"port5",
"vlanid":2501
}

 

You can check from FNAC logs by enabling this debugs:

$ device -ip <IP> -setAttr -name DEBUG -value "TelnetServer ForwardingInterface"

 

or from an external API system and check the response of the FGT when asked to provide the VLAN information.

 

With debugs enabled you can also try to run:
# exe enter
$ updatevlans -ip 10.0.10.1

4 replies

ebilcari
Staff
Staff
November 11, 2025

There is a reported issue affecting integrations with later version of FGT #1203457 due to changes in token naming. The workaround is to use token based API access, the fix will be included in 7.6.5.

Emirjon
AEK
SuperUser
AEKAuthor
SuperUser
November 11, 2025

Thanks for your feedback Emirjon.

I see this issue is reported in FortiOS 7.6.4. Is it the same case for my 7.2.9?

Also we are already using token based API since the beginning and I confirm the API access it working fine.

AEK
ebilcari
Staff
Staff
November 11, 2025

FortiOS 7.6.4 refers to the FGT firmware. I'm not sure if the same change was also applied in the latest release of FortiOS 7.4.9. In any case, if token-based API access is configured for this integration, this integration should not be affected by it.

How many VDOMs does this FGT have and does it have a large number of VLANs configured?

Emirjon
ByteHaven
Explorer III
November 12, 2025

Hello AEK,

I'm no expert and I don't know if this helps in your scenario, but I came across this article and thought about your issue...

https://community.fortinet.com/t5/FortiNAC/Technical-Tip-Best-practice-for-manually-changing-VLANs-on/ta-p/191473

 

BR,

AEK
SuperUser
AEKAuthor
SuperUser
November 12, 2025

Hi BH

Thanks for sharing.

It doesn't provide the solution but indeed this tech tip helps to understand more.

Also the link at the bottom of the tech tip explains when VLAN info is updated during L2 poll. It gives some ideas for troubleshooting my issue.

AEK
AEK
SuperUser
AEKAuthor
SuperUser
November 13, 2025

I tried the API call and I found that the new VLAN is included in the response with the other VLANs, and its output is well formatted just like other VLANs.

That means FGT is responding to the API call with the right response.

In FGT API call logs I also see trace of previous API "/api/v2/cmdb/system/interface" from FortiNAC, with status code 200. That also mean FortiNAC is performing the API call and getting a correct response.

 

I also tried snmpwalk from FNAC to FGT and I could see the new VLAN interface.

 

Tried to run updatevlans command and I can see the new VLAN in the output. Also after running this command I could see the new VLAN on FNAC GUI. So it seems the manual run of updatevlans has fixed the issue. Knowing that Read VLANs, Re-sync Interfaces, L2/L3 poll, Validate Credentials, all have been run several times without getting the new VLANs.

This is at least a very good workaround, and thanks for that.

In case you have any extra idea to get it updated from the GUI it will be welcome.

AEK
ebilcari
Staff
Staff
November 13, 2025

Good to know the issue is fixed. The Read VLANs button is a bit hard to find on FGT devices, did you use this one?

ReadVlan.PNG

Emirjon
AEK
SuperUser
AEKAuthor
SuperUser
November 13, 2025

Yes it is that one.

AEK
AEK
SuperUser
AEKAuthor
SuperUser
November 13, 2025

Hi Emirjon

Now the new VLANs are added without entering the updatevlans command.

It seems the first time I entered it has fixed the issue for good.

Thanks again for the solution.

AEK