Hello,
first of all I am not sure if this is the correct category about this topic, so excuse me if I am wrong.
I have two rb532 and two modems.I am connecting each modem to a routerboard through ethernet, so i have a connection between the two routerboards like the image below.
rb532 —eth—modem---------------modem—eth—rb532
I would like to find a way to make a wds link when the connection between the two modems is lost or the bandwidth goes low.
The modems have snmp and there is a value that shows the bandwidth between them but i didn’t find any way to make the rb532 read this value.
Can anyone propose a solution using scripts, marking packets,firewalling …whatever?
If I have always active and running the wds connection between the two rb532 how am I going to force the traffic to pass through ethernet to the modems? When the wds is up then the rb532 pass the traffic through wireless.
I tried to make it work by marking packets and give a gateway but probably I am not very good
Can you help to find a way to pass the traffic through ethernet-modems and if that fails then through wireless?
I have already wrote a script that monitors the status of the link of the ethernet and controls (enable/disable) the wireless connection.
But the problem is that there is a possibility the ethernet link to be ok and the connection between the two modems to be down. The only way to find that there is connection between modems is telnet into them and read the status of them. But I think I can’t use telnet into a script.
So I was thinking to have the wireless connection up all the time and give to the routerboard two alternatives routes with priority to the one that goes through the modems and if that route fails automatically uses the route that goes through wireless.
I would be happy to hear any idea and any alternative solution.
Thank you
PS: I am not very good with the routing stuff so probably that is my problem