Troubleshooting Tip: FortiSwitch Controller NAC rule fails to match
| Description | This article describes the logs to gather when the Switch Controller NAC on FortiGate fails to match the device |
| Scope | FortiGate Managing FortiSwitch version 7.4.x and above |
| Solution | Refer to the link below to configure FortiGate Switch Controller NAC solution: FortiSwitch network access control
If the device match fails, collect the logs below and raise a TAC ticket: Support.
Sample output:
FortiGate# diagnose debug application flpold -1
2026-03-25 09:21:19 569s:532ms:16us flpol_check_mac_exists_in_mac_cache[894]:nac-reg: ret=1 vfid=0 sw=access3 mac=74:78:a6:64:73:b8 port=port1 last_seen=0x0
FortiGate# diagnose debug application fcnacd -1 <-- In case NAC is configured for EMS ZTNA tag. FortiGate# diagnose debug console timestamp enable FortiGate# diagnose debug enable
Once the NAC match fails, stop the debug and mention the client MAC address, FortiSwitch name, and FortiSwitch port number.
diagnose debug enable diagnose debug reset
FortiGate# diagnose switch-controller mac-device cache FortiGate# diagnose debug crashlog read FortiGate# execute switch-controller get-conn-status
Sample output:
FortiGate# diagnose switch-controller mac-device cache
FortiGate# diagnose switch-controller mac-device nac known
FortiGate# diagnose switch-controller mac-cache show managed-switch: access3 vfid: 0
FortiGate # diagnose user-device-store device memory list interface_info
FortiGate# diagnose user device list vd root/0 74:78:a6:64:73:b8 gen 198 scan off
FortiSwitch# diagnose debug report FortiSwitch# show full-config FortiSwitch# diagnose debug crashlog read
Tip: If the device has both Wireless and Wired NIC enabled and if the requirement is to move the devices between NAC-enabled ports, enable the following configuration option under NAC policy:
FortiGate# config user nac-policy FortiGate# set match-remove link-down -> Available from FortiGate v7.6.3. FortiGate# set match-type override -> Available from FortiGate v7.4.4. FortiGate# end
|