LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-06-2005, 02:22 AM   #1
idsdown
LQ Newbie
 
Registered: Nov 2005
Location: HK
Posts: 10

Rep: Reputation: 0
Web server two gateways..


my company have a linux box with one network card running a web server, company subscribed two broadband from different isp with two separate network, 192.168.0 and 192.168.1, now i want two links can connect to the web server from outside network, i set it as following but found only one link can connect each time.

eth0:
IP:192.168.0.50
Netmask: 255.255.255.0
gw:192.168.0.1

eth0:1
IP: 192.168.1.50
Netmask: 255.255.255.0
gw:192.168.1.1

How to make it work, thanks.
 
Old 12-07-2005, 02:18 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,230
Blog Entries: 1

Rep: Reputation: 2085Reputation: 2085Reputation: 2085Reputation: 2085Reputation: 2085Reputation: 2085Reputation: 2085Reputation: 2085Reputation: 2085Reputation: 2085Reputation: 2085
Use the VirtualHosts with something like that:
Code:
<VirtualHost 192.168.0.50>
    ServerName www.domain.com
    ...
    ...
</VirtualHost>
<VirtualHost 192.168.1.50>
    ServerName www.domain.com
    ...
    ...
</VirtualHost>
More info here
 
Old 12-07-2005, 03:01 AM   #3
idsdown
LQ Newbie
 
Registered: Nov 2005
Location: HK
Posts: 10

Original Poster
Rep: Reputation: 0
sorry, it maybe i said the question not clear (bad english)..

i have a linux box running as web server, there are two links for outgoing, i want the incoming traffic can reach the web server via both two links, the two links with different nat address pool, one is 192.168.0.0 and the other is 192.168.1.0, and i have map two address 192.168.0.5 and 192.168.1.5 to my linux box, but i found there is only one link can work each time. so i want to know how to setup the linux box work with two gateway, outside can connect the web at the same time. Thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Two NICS one web server and Two Gateways walk into a bar... dr_rockstar66 Linux - Networking 2 02-23-2005 04:23 PM
can we configure a Linux server with mail server,file server and web server kumarx Linux - Newbie 5 09-09-2004 06:21 AM
setting up password protected web forms on an apache web server AZDAVE Linux - Security 3 07-07-2004 12:03 PM
Question about server access and gateways maverick106 Mandriva 0 04-26-2004 01:25 PM
Debian proxy server: can't access shares across gateways Mr. Phukkitt Linux - Networking 0 01-21-2004 01:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration