1

I have one server running on Ubuntu 14.04. It is used to host a web application.

I also have two routers from two different internet providers with two different static IP addresses. I want to allow traffic through both internet providers to access the same web application.

Each Internet Provider has limited upload bandwidth. When several users log to the system, clients complain slowness. So I want to increase the upload bandwidth. Say one ISP is SLT and other is DT. I though of giving my SLT provided static IP to those who use SLT connections and provide DT static IP to those who use DT connections.

It that ever possible ?

(I currently have one ethernet port and one wifi port in the server, but I can install an additional ethernet network card if necessary.)

7
  • What precisely are you trying to achive? Load balancing or redundant links?
    – Journeyman Geek
    Nov 20, 2014 at 14:43
  • Each Internet Provider has limited upload bandwidth. When several users log to the system, clients complain slowness. So I want to increase the upload bandwidth. Nov 20, 2014 at 14:46
  • You want to add that to your question
    – Journeyman Geek
    Nov 20, 2014 at 14:46
  • added details to answer. Nov 20, 2014 at 14:49
  • 1
    If you have 2 IP address, 2 routers and one server behind those routers, make a simple port forwarding on them. I don't get what is the problem tbh... Server needs to have 2 local IP addreses so 2 NICs are required. You can have virtual IPs/NICs on Linux but that does not resolve the problem of 2 wired/wireless connections. So 2 IPs + 2 NICs + 2 port forwardings.
    – mnmnc
    Nov 20, 2014 at 15:08

1 Answer 1

0

You want to add a second Ethernet card if you can. Configure both. Then in the DNS for your website, create two A records for the domain name.

mycomain.com  A 111.111.111.111
mydomain.com  A 222.222.222.222

When you do a dns lookup it should list both IP addresses.

nslookup mydomain.com
111.111.111.111
222.222.222.222

This should provide rudimentary load balancing. The server should send outgoing packets out the same interface they were received on.

However, if you choose to use only one card, and put two IP on that card, then Linux will send outgoing packets on the primary interface only. Which is not what you want.

3
  • DNS part and load balancing is not the issue. when I configure wifi card and the Ethernet card an Ubuntu, it is not possible to access the server from both connections at once. Nov 20, 2014 at 15:01
  • Hi, then maybe you could explain your situation better.
    – AngelaS
    Nov 21, 2014 at 1:29
  • Now we have move to cloud servers and this issue does not exists. Thank you for your help. Oct 1, 2019 at 7:24

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .