LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Routing issue (same subnet, 2 wan gateway, 1 webserver) (https://www.linuxquestions.org/questions/linux-networking-3/routing-issue-same-subnet-2-wan-gateway-1-webserver-829749/)

leosophy 09-01-2010 10:08 AM

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!!!

nini09 09-01-2010 02:29 PM

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.

leosophy 09-02-2010 03:22 AM

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 (Post 4085204)
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.


nini09 09-03-2010 02:15 PM

route add -net 101.101.101.0 netmask 255.255.255.0 gw 192.168.123.1


All times are GMT -5. The time now is 12:22 AM.