Situation:

Balance router 2 WAN ports IN (MikroTik RB951G-2HnD), respectively, 2 interfaces are created to work with each provider, while we have 2 static IPs attached essentially to one device.
At the same time, it is necessary to have a constantly raised pppd tunnel to drain VoIP traffic through it in order to ensure work within corporate telephony in different segments of the (geographically) enterprise.

Question-problem-problem:
If the tunnel is routed through one of the providers (for example, 1), then the tunnel will also “fall” during the “fall” of this provider.

Attention question:
Is it possible to automatically force the router itself, or somehow programmatically determine the tunnel / channel drop (through which the tunnel is thrown) and re-create the tunnel through the active (remaining working) Internet channel (provider 2)?

Thank you if you help / tell me what is essentially.

    1 answer 1

    No data as you handle the loss of the channel. If, when one of the external channels falls, you change the main gateway from one provider to another, then the ppp-client will most likely reconnect via the second channel.

    • The device automatically changes the provider to an affordable one, in this and the chip of those from the microtic. The main point is in the tunnel, the Internet in this context is secondary to the importance of solving the problem. - Spouk
    • one
      I checked in the PC bundle (mikrotik os 5.26, 2 isp, pptp-client) => Internet => hAPac (router os 6.34, pptp-srv). On the PC 2 different providers are connected, 2 default routes are registered with different distance. When an active link is disconnected (the distance is less than that), its 0.0.0.0/0 route becomes inactive and automatically all traffic that does not have separately described routes goes through 2 providers along its 0.0.0.0/0 PPTP-client route naturally also goes to the second channel , but since hAP does not wait for traffic from this IP link is terminated. A minute later, the client rises again automatically. - dash1121
    • It is directly interesting, why the recommendation to change the default gateway is not the answer? Here it works fine for me on one of the objects ... - dash1121