Skip to main content
yabhishek
Staff
Staff
January 17, 2025

Troubleshooting Tip: Port not learning mac-address

  • January 17, 2025
  • 0 replies
  • 1915 views
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