You are not logged in.

#1 2021-10-18 16:43:26

WaterWastage
Member
Registered: 2019-02-08
Posts: 2

Fallback to LTE when eth loses internet

I have two similar problems.

1. I have two 0.0.0.0 routes (eth0 and wwan0) when eth0 loses internet connectivity (interface is still up), how do I fallback to wwan0? (check and change route metric using a script? doesn't sound nice)

2. Can I have traffic from eth1 go via wwan0 even though eth0 has lower route metric?

Offline

#2 2021-10-18 18:39:35

progandy
Member
Registered: 2012-05-17
Posts: 5,190

Re: Fallback to LTE when eth loses internet

I believe you need a script for failover. This one is the first one a search for multiwan failover returns: https://github.com/lstein/Net-ISP-Balance

There are also some kernel patches: http://ja.ssi.bg/ (found here)

Alpine describes a setup with pingu: https://wiki.alpinelinux.org/wiki/Multi_ISP

For 2. yes, you can set up load balancing, the first script should do it as well. You can even define what proportion of traffic should be sent to the secondary interface.

Last edited by progandy (2021-10-18 18:49:29)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

Board footer

Powered by FluxBB