2 Providers - problems

Discussion in 'Installation/Configuration' started by K_meleonu, Aug 11, 2009.

  1. K_meleonu

    K_meleonu Member

    I have installed Ubuntu 8.0.4 Server and tried to configure it with 2 network cards and 2 internet providers.
    The problem is that it does NOT want to work whatever i have tried.

    1'st provider config.:
    IP: 86.106.xxx.4
    GW: 86.106.xxx.1
    DNS: 86.106.xxx.1

    2'nd provider:
    IP: 89.34.xxx.91
    GW: 89.34.xxx.1
    DNS: 81.180.xxx.73

    Can you please give me some advices/info's

    Best regards and thank you in advance for your answers
  2. falko

    falko Super Moderator ISPConfig Developer

    Are you using a router?
  3. K_meleonu

    K_meleonu Member

    No i do not have a router.
    I have direct lines. I have managed to put both of the IP's/providers on the same server using Webmin but the problem now is that, the second link (provider 2 (89.34.xxx.91)) is loosing the connection time to time.

    Don't know if that is still a local problem or a provider problem.

    Will try to find and post here.
  4. falko

    falko Super Moderator ISPConfig Developer

    And the other connection is working fine?
  5. K_meleonu

    K_meleonu Member

    The 1'st connection is working without problems.
    I have tested the 2'nd connection (89.34.xxx.91) on a separate PC, single and it work't without problems.
  6. Franz

    Franz Member

    You need to set a LoadBalancer, because you can have only one Default Gateway with default metric.

    Why you have 2 providrs? If you need only some IP range on second provider, you can add static routes.

    But best is to configure router for this.
  7. K_meleonu

    K_meleonu Member

    Thank's for your answer.
    I had the same configuration on a Fedora Core 4 server and it work't whitout problems.
    One provider on 1'st network card and another provider on 2'nd netwotk card.
    Now i have a lot of troubles doing this thing on Ubuntu 8.0.4 server or Fedora 11
    I even tried this configuration on Windows XP and it has NO problems.
    Is it something on the new Linux distro's ?
    I do NOT use any router's.
  8. id10t

    id10t Member

    What are you trying to do with the 2 connections?

    You can only have one default route - that is going to give you problems now.

    If the second line w/ second provider is flaky even when used standalone, then the problem is the provider.

    w/ 2 connections you can either split by local lan (eg, student labs go out one and faculty goes out another), do load balancing (both groups go out randomly based on available bandwidth), or do fail over (if one goes down switch it all to the other connection).

    Of course, if they are from the same provider and go to the same POP then the failover really won't do you any good unless the fault is in the last mile.
  9. K_meleonu

    K_meleonu Member

    I need the both connection alive at the same time.
    One isp is used for some applications and the other isp is used for other applications on the SAME server.

    As i said before, on Fedora Core 4, Ubuntu 6, Windows XP, this configuration work's perfect.
    I will download Ubuntu 9 server and try with it too.

    The applications i am using an referring to are sc_serv (online radio).
  10. K_meleonu

    K_meleonu Member

    Hi to all,
    Solved the problem with ip route add

    Now i have:
    [email protected]:~# route -nNvee
    Kernel IP routing table
    Destination Gateway Genmask Flags Metric Ref Use Iface MSS Window irtt
    86.106.xx.0 U 0 0 0 eth0 0 0 0
    89.34.xx.0 U 0 0 0 eth1 0 0 0 89.34.xx.1 UG 100 0 0 eth1 0 0 0 86.106.xx.1 UG 100 0 0 eth0 0 0 0

    And it is all working just fine.
    I don't know why the linux system does not do the route adding by himself.
    I was having gateway 89.34.xxx.1 defined in the /etc/network/interfaces for eth1 before i added by hand the route with ip route add but no good.

    So, bottom point, if is someone else who tries to do the same thing / configuration like me, just add routes/gateways by the hand.

    Thank you all for your posts

Share This Page