I have 1 lan host (192.168.0.10) that I want to be able to ping 1 internet host (8.8.8.8) using my backup wan connection. That traffic should never traverse the primary internet connection. My backup WAN connection is 192.168.1.2 with a gateway of 192.168.1.1.
Any help on doing this? I read some stuff and tried a reddit post about doing this, but I could not make it work.
Hi
It can be done via running below commands in SSH.
ip rule add from 192.168.0.10 table 500
ip route add 8.8.8.8 via 192.168.1.2 dev eth1.2 tabl 500
or via configurating the same on Luci - Network - Routing.
On IPv4 Rules tabs:
On Static IPv4 Routes tabs:
1 Like
Thanks! I had the route gateway incorrect. I had entered 192.168.1.1 instead of 192.168.1.2. Everything is working now.