I have 2 isp's at home, sometimes I need to be on call, so I can't afford to have my internet access down if I'm on call.
So in order to 2 the isp's, accessible from my computer it is possible to tell linux to balance the outbound traffic accross the 2 ISP's
Since this is a route based balancing, most often used routes will be routed thru the same isp.
Let's suppose our internal router #1 is 192.168.1.254 and the other one is 192.168.3.1, so the way to do the load balancing would be:
#/sbin/ip route add default scope global nexthop via 192.168.3.1 dev wlan0 weight 1 nexthop via 192.168.1.254 dev br0 weight 1
As you can see I'm using my wired interface and the wireless one to balance the outbound traffic accross thru both ISP's
The above command means one packet should be routed via 192.168.3.1 and the other one via 192.168.1.254
No hay comentarios:
Publicar un comentario