DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   (View Single Post)  
Old 6th November 2008
ivanatora ivanatora is offline
Real Name: Ivan
Fdisk Soldier
 
Join Date: Jul 2008
Location: Bulgaria
Posts: 51
Default Using multiple gateways

Hello,
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?
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
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 11:51 AM
Multiple instances of Opera ebzzry FreeBSD General 7 24th July 2008 03:53 AM
Problems with multiple ISP connections ebzzry FreeBSD General 2 1st July 2008 11:32 PM


All times are GMT. The time now is 04:13 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick