In 2013, I came up with a primitive solution to the problem with the D-Link DGS-3100 switch, which with an average load can often stop passing traffic through itself.
This problem was once massively discussed at the D-Link forum, the solution of which I did not see. Therefore, we replaced the DGS-3100 with a DGS-3120, and put the DGS-3100 on nodes with a low load, and there are no problems with a low load there, even in 2020 I still have three DGS-3100s working.
Create a file with the contents:
snmpset -v2c -c public 192.168.5.5 .126.96.36.199.188.8.131.52.184.108.40.206.2.0 i 7
Let’s make it executable:
chmod +x /home/username/clear_fdb.sh
Write in /etc/crontab:
*/30 * * * * root /home/username/clear_fdb.sh > /dev/null 2>&1
As a result, cron runs a script every 30 minutes from which an OID is sent via SNMP to clear MAC address table on the switch.