Using multiple gateways
Could I have two gateways for my PC? Here is an example setup:
NIC - rl0 - IP 192.168.0.50
GW1 - IP 192.168.0.1
GW2 - IP 10.10.10.1
All of these is connected via simple switches and cables into one network.
In order to reach the second GW, should I put an alias for rl0 with IP in 10.10.10.0/24 network, or just add a static route to that network via rl0?
More - I want to be able to use both gateways to access Internet. Every of the two shapes its clients to a X Mbit speed, so I want to have total of 2*X Mbit connection.
I know about adding static routes, and I could set one of the GWs to be used for accessing specific addresses or networks, but I want to dynamically change routes on round-robin basis. This is how I think of it in a timeline:
- GET page from www.host1.com - GW1 is used
- GET page from www.host2.com - GW2 is used
- connect to ICQ - GW1 is used
- ssh to server1.com - GW2 is used
and so on...
Is there a pf based solution for this? I think I've seen something like 'probability match' somewhere in the manual - can I use it?
Oh, and why I can't find anything on 'freebsd load balancing' in Google? Is there a reason for this, or just I'm misunderstanding the terms?
|Thread||Thread Starter||Forum||Replies||Last Post|
|dhcpd and multiple subnets||vdubjunkie||OpenBSD General||5||11th March 2009 11:02 PM|
|Obtaining multiple IPs from ISP via DHCP||dextro||General software and network||15||9th January 2009 02:36 AM|
|Multiple VPN||rondynames||OpenBSD General||5||24th July 2008 12:51 PM|
|Multiple instances of Opera||ebzzry||FreeBSD General||7||24th July 2008 04:53 AM|
|Problems with multiple ISP connections||ebzzry||FreeBSD General||2||2nd July 2008 12:32 AM|