Find the answer to your Linux question:
Results 1 to 2 of 2
I have 2 internet service providers and hence 2 public ip address. I have a server with 2 identical network cards. Its it possible to setup the server in such ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2006
    Posts
    1

    Setting up 2 network cards with 2 gateways


    I have 2 internet service providers and hence 2 public ip address. I have a server with 2 identical network cards. Its it possible to setup the server in such a way:

    SERVER---eth0(192.168.0.6)----gateway1(192.168.0.1)-------------INTERNET
    |------eth1(192.168.0.5)---gateway2(192.168.0.2)------------------|

    I hope the server will be able to serve different request through different gateways such that the server is effectively more responsive. I tried this setup but the server does not work correctly. And only does so when i deactivated one of the cards.

    Can someone shed some light on this issue?

  2. #2
    Super Moderator Roxoff's Avatar
    Join Date
    Aug 2005
    Location
    Nottingham, England
    Posts
    3,847
    Normally you'd keep both network cards on different subnets - i.e. numbers that fall within the subnet mask are different.

    I doubt you'd be able to much to share incoming requests between the IP addresses as they're provided by different ISP's. The best you can do is to set one up as a default gateway, and the other as a gateway to any IP's hosted by the other ISP. Then set apache (or whatever services you're running) to field requests on the appropriate network card.
    Linux user #126863 - see http://linuxcounter.net/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •