LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-01-2010, 10:08 AM   #1
leosophy
LQ Newbie
 
Registered: Aug 2010
Location: H.K. SAR
Posts: 11

Rep: Reputation: 0
Unhappy Routing issue (same subnet, 2 wan gateway, 1 webserver)


Hi all, I got the routing problems, please help!!

I have two WAN links.

example
WAN1 :
using xyzel router
wan ip1 : 202.202.202.1
lan ip1 : 192.168.123.254

WAN2 :
using Linux
wan ip2 : 101.101.101.1
wan ip2 : 192.168.123.1

Web server:
using Linux
lan : 192.168.123.21

I want to do the port forward(80) from wan1 and wan2 to internal web server. But my web server default route is using 192.168.123.254. So, Wan1 is no problems. But in WAN1, web server didn't respond as routing issue.

How can I config Web server to achieve it? Thanks!!!
 
Old 09-01-2010, 02:29 PM   #2
nini09
Member
 
Registered: Apr 2009
Posts: 991

Rep: Reputation: 67
You can add a static route in Web server, such as network is 101.101.101.0/24 and gateway is 192.168.123.1. The static route will send 101.101.101.0/24 network response to 192.168.123.1 gateway.
 
Old 09-02-2010, 03:22 AM   #3
leosophy
LQ Newbie
 
Registered: Aug 2010
Location: H.K. SAR
Posts: 11

Original Poster
Rep: Reputation: 0
Unhappy How can I using a route command ?

How can I using a route command ?

Already try a "route add" command. But fail...

Quote:
Originally Posted by nini09 View Post
You can add a static route in Web server, such as network is 101.101.101.0/24 and gateway is 192.168.123.1. The static route will send 101.101.101.0/24 network response to 192.168.123.1 gateway.
 
Old 09-03-2010, 02:15 PM   #4
nini09
Member
 
Registered: Apr 2009
Posts: 991

Rep: Reputation: 67
route add -net 101.101.101.0 netmask 255.255.255.0 gw 192.168.123.1
 
  


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
Gateway to local area network routing issue tungaw2001 Linux - Networking 1 11-10-2008 08:59 AM
Help regarding routing from one subnet to another pauldg123 Linux - Newbie 1 08-07-2008 03:41 PM
two gateway for one subnet bondoq Linux - Networking 12 05-14-2007 09:05 AM
routing from one subnet to another NetAX Linux - Networking 2 06-16-2004 08:10 AM
Help with Subnet Routing xatmes Linux - Networking 6 04-26-2004 11:52 PM


All times are GMT -5. The time now is 06:58 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration