I have dual dynamic WAN setup with failover and PCC load balancing. I have pretty identical DHCP Client scripts to establish routes, however, with one script it duplicates the entries 3x and I’m not sure why. There is no problem working right now. I am on 7.15.1. Here are my scripts for WAN1 and WAN2. WAN1 creates each entry duplicated 3x in Routes, WAN2 has individual Route entries as expected. Has anyone had this problem with scripted route entries being duplicated? Is it a bug or scripting error? Thanks!
HMMM.
Since with the changes the script is (should be) deleting the entries every time it is run, it is a logical impossibility:
all entries with “WAN1” are deleted
three new entries are created
you can run the script 1, 2, 3 or 42 times, the result should always be the three new entries (and only three).
So, not only the script (for whatever reasons) is run three times, but the deletion of the routes is not effective, so there must be something wrong also in:
/ip route remove [/ip route find comment=“WAN1”]
maybe:
/ip route remove [find comment=“WAN1”]