Persistent (sticky) MAC addresses
You can make dynamically learned MAC addresses persistent when the status of a FortiSwitch port changes (goes down or up). By default, MAC addresses are not persistent.
NOTE:
- You cannot use persistent MAC addresses with 802.1X authentication.
- If you move a device within your network that has a sticky MAC address entry on the switch, remove the sticky MAC address entry from the interface. If you move the device and do not clear the sticky MAC address from the original port it was learned on, the new port will not learn the MAC address of the device.
Using the GUI:
- Go to Switch > MAC Entries.
- Select Add MAC Entry to create a new item.
- Select an interface and enter a value for MAC Address and VLAN.
- Select Sticky.
- Select Add to create the MAC entry.
To delete the persistent MAC addresses instead of saving them in the FortiSwitch configuration file:
- Go to Switch > Monitor > Forwarding Table.
- In the Unsaved sticky MACs on field, select an interface or select All.
- Select Delete.
Using the CLI:
Use the following command to configure the persistence of MAC addresses on an interface:
config switch interface
edit <port>
set sticky-mac <enable | disable>
next
end
You can also save persistent MAC addresses to the FortiSwitch configuration file so that they are automatically loaded when the FortiSwitch unit is rebooted. By default, persistent entries are lost when a FortiSwitch unit is rebooted. Use the following command to save persistent MAC addresses for a specific interface or all interfaces:
execute sticky-mac save {all | interface <interface_name>}
Use the following command to delete the persistent MAC addresses instead of saving them in the FortiSwitch configuration file:
execute sticky-mac delete-unsaved {all | interface <interface_name>}