Hello,
I want to ask you, how can I make the router work only on WAN and if the network stops, switch to 4G for backup. I want to add that the router is connected via VPN to another router.
I have added the following code in startup
while true; do
if ! ping -c1 -w5 8.8.8.8 >/dev/null; then
/sbin/ifup wwan
sleep 10
fi
sleep 5
done
Thanks,
I think I managed to drive it. Thank you very much
Interface status:
interface wan is online 00h:04m:02s, uptime 00h:15m:07s and tracking is active
interface wanb is online 00h:05m:12s, uptime 00h:10m:44s and tracking is active
Current ipv4 policies:
load_balanced:
wanb (50%)
wan (50%)
The linked section effectively implements a custom WAN metric with PBR.
netifd by itself can neither perform connectivity check nor automatically change interface status.