Skip to main content
yabhishek
Staff
Staff
Jan 17, 2025 12:52 PM UTC

Troubleshooting Tip: Port not learning mac-address

Description This article describes how to troubleshoot the issue when mac-address is not getting learned on the port.
Scope FortiSwitch.
Solution
In some scenarios, while moving a client from one port to another, the switch does not learn the mac-address on another port. 
 
Below are some steps which can be performed to troubleshoot the issue:
 
  • Run the cable diagnostic on the port and check if the output is correct:
 
diagnose switch physical-ports cable-diag <port_number>
 
  • Check the linerate on the port to verify if there are any Rx packets or not:
 
diagnose switch physical-port linerate <port_name>
 
  • Check if the mac-address is already available in the MAC table of the switch:
 
diagnose switch mac-address list | grep <mac-address>
 
If the mac-address is already present on any port, then check if that port has sticky-mac enabled on it:
 
config switch interface
    edit <port_name>
        config switch interface
            edit "port2"
                set trust-ip-dscp-map ''
                set default-cos 0
                set qos-policy "default"
                set ptp-policy "default"
                   set ptp-status enable
                   set sticky-mac disable ----------------> This must be disabled.
                   set log-mac-event disable
                   set nac disable
    next
end 
    Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024