Forum Moderators: open

Message Too Old, No Replies

How to use multiple internet connections

IP Routing and DNS

         

aspdaddy

11:14 am on Nov 21, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Is it possible to route multiple public IP address to the same webserver? I have a block of 8, 5 usable, can I route all 5 into the one webserver using 5 independant connections and 5 network cards in the firewall? so that users can connect to #*$!.xxx.xxx.20, xxx.xxx.xxx.21,xxx.xxx.xxx.22 etc and all get the same app.

If that can be done, Is there any way to configure dns to balance the requests out between the 5 addresses

Thanks

iamlost

6:14 pm on Nov 25, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I have never done this and hoped an authoritative someone else would jump in with detailed help.

However I believe that what you want can be found by searching for [multi-homed server]. There are several "meanings" but one is "single NICs with multiple IP addresses are multihomed".

An interesting idea. If you do follow through perhaps you could post a "how to" thread for reference.

jtara

9:51 am on Dec 9, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Why would you want to do this?

Sure, you CAN. But what are you trying to accomplish? I can't see any possible advantage to this, unless you are doing something very specialize that requires a very minimum of latency connecting to local machines, and you can't even stand the latency of a switch.

You can get reasonably-priced network cards with 2 or 4 connections. You can get more than that on one card for a pretty penny. Either Windows or Linux will configure easily for this out of the box.

What kinda computer do you have there that is going to out-run a Gig-E connection serving-up web pages? Colossus? Guardian?

aspdaddy

10:49 am on Dec 9, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Redundant Internet connections

sja65

8:43 pm on Dec 14, 2005 (gmt 0)

10+ Year Member



Yes you can. I do it with two networks in a several machines, and 3 or 4 in a few machines.

As far as how, it depends on your OS. I use a homegrown linux, so I'm sure the way I do it is different than what you will need to do.

As for why, I have IP addresses from two different ISPs (I am running BGP for redundancy). Each IP block is on its own separate network. My web cluster frontend has a network card on each of these networks so I can serve pages on both IP blocks.

My machines with 3 or 4 cards are just used as gateways on internal subnets.

wheel

4:22 am on Dec 18, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Seems to me the far simpler way to accomplish this is to just get a webhosting company that's multi-honed. Then they're basically looking after this for you, transparently.

Failing that, I'd not be looking at multiple network cards (seems like that complicates matters quite a bit). Instead just assign all the IP's to one port, then connect that port to a router that has your web server on one connection, and your multiple internet connections plugged in there as well. That's almost exactly what I do and it's pretty easy to set up. In fact, assigning multiple IP's to one ethernet port is a whole bunch easier than assinging those same IP's to multiple ports, in linux at least (trust me, been down that road :) ).

As far as the DNS goes, you'll likely need a custom script that should probably go one better than randomly serving different IP's. Instead it should figure out where the request is coming from, and serve it the IP that has the closest route, if that can be figured out. Then you'll want to check if one of the providers is down and if so stop serving that IP.

Ugh. That's all rather ugly unless you're doing some very serious stuff. It's far easier, a ton less expensive, and probably far more robust to just get yourself colo'ed in a decent data center that has all this stuff done for you automatically.

aspdaddy

12:00 pm on Dec 19, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks for the sugegstions.
Wheel, year end I probably will co-lo, but at the moment I just want to add to a 1/2 mb line a couple of cheap wire-only dsls accounts to give it some extra bandwidth.

MattyMoose

6:24 am on Jan 11, 2006 (gmt 0)

10+ Year Member



Additionally, the balancing can be achieved by assigning multiple CNAMES to a record. Example:

server1 IN A 1.1.1.1
server2 IN A 2.2.2.2

www IN CNAME server1.domain.com.
IN CNAME server2.domain.com.

The DNS server will usually go into "round robin" mode with this configuration, and the client should use whichever is the first DNS record that is returned to it (since the DNS server will respond with all records for www)