Multiple gateway network help needed

saabmp3

Junior Member
Jul 7, 2003
4
0
0
Hello all,

I am currently planning out and setting up a network in my new house (I'm a college student, moving into a new place with 3 friends). The house is very close to campus and I can pick up a wireless connection from the WAP's on campus. Using a wireless bridge and linksys router I am going to make a gateway out of the router which can be used to access the campus network. The other incoming connection is a DSL line which is going to come from a different router set up as a gateway so that the rest of the internet can be accessed from this connection.

Now my problem is that I have two gateways but no way to tell the user computer which gateway to use. I would prefer to do this on the 'server' side, not on the end user side (aka the actual client machines) because I want friends to be able to come over and use my wireless connection.

So here I am with two gateways, lets call them A and B. I want IP range (example of course) 145.145.x.x to go to gateway A and the rest of external avaible IP's to go to gateway B. What kind of hardware do I need to do this kind of operation. I have heard that some of the new linksys routers support IP tables (the ones that i have don't, I don't mind buy some new hardware if it means that it's going to get it working but I don't want to spend a fortune). Another option that I thought of was a managed switch which supports IPtables, but so far all I have found is the ability to create VLAN's and port blocking, basically nothing that would help me in my current situation. Does anybody have any ideas on how to do this? I know I'm not the first to do it. I guess the last solution that I had thought of was to build a FreeBSD box with three NIC's. NIC C would be the internal side, hooking up to a switch, A would go to gateway A and B would go to gateway B then set up IPtables on the server to route appropriate traffic to the correct gateway. I honnestly don't know how to set up a box like this, but I think it's possible. Please don't tell me to do it this way, I really don't want to :p.

Thanks for any help.

BEN
 

Soybomb

Diamond Member
Jun 30, 2000
9,506
2
81
Read up on the static routes page of the manual for your linksys and you can set where the traffic goes quite easily. If you cant get it let me know and I'll try to give you a little more help on it.