Hello, I've been experiencing issues with SNMP for a few days now. The branch offices have Fortigate firewalls and Fortiswitches. The logs constantly show that the switches are losing and regaining the connection. When I check, everything seems fine. My second issue is that when a user connects their computer to any port, the port lights up green, but the computer doesn't appear. After doing a few pools, the issue resolves itself.
Hi
Which FNAC version?
Did you try tcpdump on FNAC to if the traps are properly reaching the NAC when cable is plugged?
In such a situation, the device usually obtains an IP address from apipa. I am performing an SNMP test and no problem is apparent. Sometimes it obtains a quarantine IP address and still behaves this way. Version 7.2.4
Why 7.2.4 and not something newer? Also where is the DHCP server located? What is the path between FortiNAC and the remote site?
Version : 7.2.8.0149
There is IPsec between the Fortigate located at the center and the Fortigate located remotely. No configuration has been made within the Fortiswitch. All settings are managed by Fortilink. The DHCP server for quarantine is Fortinac. The Fortigate located remotely is for other VLANs.
If the issue affects only branch office it is probably due to packet loss, bear in mind SNMP is connectionless, so in case one trap is lost then it is not sent again.
There is an IPSec connection between the headquarters and the branches. There doesn't seem to be any loss in the connections. Even if there is, it should come back after 10 minutes when it automatically pools.
When you pool the FortiGate, FortiNAC connects to it and reads FortiSwitch MAC address table. If you have configured SNMP traps correctly on the switch, FortiNAC should receive an snmp traps event which is "Mac Learned".
Can you connect to the FortiSwitch via CLI and check if the "L2MAC" events are enabled?
You need to run these commands;
You should see this output;
Can you connect to the FortiNAC server with CLI and try to run this command to see if "Mac Learned" event is sending from FortiSwitch to FortiNAC?
When I enter this command in Fortiswitch, it doesn't respond.
| User | Count |
|---|---|
| 2677 | |
| 1412 | |
| 810 | |
| 703 | |
| 455 |
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 2025 Fortinet, Inc. All Rights Reserved.