Hello,
i've setup my GL-B3000 as Multi-WAN router. I've connected ISP1 on eth1 and ISP2 on eth2. Because my ISP2 connection is very slow (10Mbit/s) I configured a fail-over Multi-WAN. I have two questions:
Load balancing makes not much sense, because of the slow ISP2 connection, right? If I'm watching a 4k video and my client is pinned to eth2/ISP2 then I'll have issues. Or does the router then switch my client to eth1/ISP1?
Can I pin some clients to eth2, either by IP or VLAN or something else? Can I do it only in loadbalance mode or can is still use fail-over mode. I have some IoT devices which does not need much bandwidth. They can use eth2, while the bandwidth heavy clients (gaming, streaming, work) use eth1. That would be my favorite configuration
A workaround would be a second router for ISP2 only with a seperate network, which i could still connect as failover wan to my GL-B3000. But i would prefer above configuration.
Yes, right. Load balancing does not make much sense in your scenario.
The session will be randomly assigned to either ISP1 or ISP2 until disconnected.
This can be achieved using ip rule in failover mode.
Please SSH into the router and run the following commands:
# 192.168.8.201/32 is the address/subnet for devices using ETH2
# Traffic originating from this address/subnet should be matched using route table 100 with priority 10.
ip rule add from 192.168.8.201 table 100 prio 10
# Add a default route to routing table 100
# Please modify 192.168.2.1 according to your network settings.
ip route add default via 192.168.2.1 dev eth2 table 100
# If you want these devices to also have failover:
ip route add default via 192.168.2.1 dev eth2 table 100 metric 1
ip route add default via 192.168.1.1 dev eth1 table 100 metric 2
# Add local route
ip route add 192.168.8.0/24 dev br-lan scope link src 192.168.8.1 table 100
If this setup works as expected, you can copy these commands into /etc/rc.local to make them persistent after reboot.
For a cleaner setup, you might also consider writing a small script to automatically retrieve IP addresses and interfaces.
Perfect answer. Exactly what I was looking for. I just need to setup the ip routes and only change the ip rules according to the IPs of the clients. Works nicely Thank you very much