web網站用兩個固定IP連入同個網站 - Linux

Sarah avatar
By Sarah
at 2014-12-04T12:36

Table of Contents

目前我手邊有一台WEB Server(apache+tomcat)某些時候人數過多會塞爆他的ISP頻寬,
所以跟ISP要了一條獨立線路,要提供給管理員或後台人員使用。


WEB eth0:210.x.x.22 Public_IP GW 210.x.x.126
WEB eth1:10.x.x.211 Private_IP GW 10.x.x.254
增加了下面這條。
WEB eth3:211.x.x.65 Public_IP GW 211.x.x.70


因為eth0的IP跟default gateway不能變,不然web無法正常被連入

但是碰到了問題,

在WEBServer上開firefox連211.x.x.65可以打開網頁,連的到

用另一台TestServer(210.x.x.23、10.x.x.212但是沒有211.x.x.x),ping的到211.x.x.65
但是網頁無法開啟,用tracert發現上到GW.126就直接連到.65去很怪

用外部的其他網路,ping不到211.x.x.65但是ping的到gateway211.x.x.70
用tracert發現到了Hinet ISP就**沒反應了

有試過用211.x.x.65來上網確認這條網路是通的。

有人可以提供點意見或經驗嗎?
感謝


附上route表
Destination Gateway Genmask Flags MSS Window irtt Iface
211.x.x.64 211.x.x.70 255.255.255.248 UG 0 0 0 eth3
211.x.x.64 * 255.255.255.248 U 0 0 0 eth3
210.x.x.0 * 255.255.255.128 U 0 0 0 eth0
10.x.0.0 * 255.255.0.0 U 0 0 0 eth1
10.0.0.0 10.x.x.254 255.0.0.0 UG 0 0 0 eth1
default 210.x.x.126 0.0.0.0 UG 0 0 0 eth0

--
◢█◣◢█◣ 即使在眼神交會的瞬間 我倆已站在不同的界線 *
██████ 只要這一刻能與你心意相繫相連 *
◥████◤ 即使在星月交輝的起點 我倆已注定 分手說再見
◥██◤ * 我依然深信有一天與你 * *
◥◤ 並肩實現約定的明天
▁▂▄▆██████████████████████████████▆▄▂▁

--
Tags: Linux

All Comments

Skylar Davis avatar
By Skylar Davis
at 2014-12-06T22:36
testserver是因為根據來源ip,變換線路,結果testserver認
為沒發送請求(回復ip不同)
Wallis avatar
By Wallis
at 2014-12-07T11:30
外部無法到211是正常的 因為沒GW可走
Ina avatar
By Ina
at 2014-12-08T17:36
ip add from 211.x.x.65 table web
ip route add dev eth3 table web
Carol avatar
By Carol
at 2014-12-10T02:13
/etc/iproute2/rt_tables 加入一行 10 web

iptables + openVPN 相關應用

Dora avatar
By Dora
at 2014-12-04T09:20
※ 引述《gn00618777 (非常念舊)》之銘言: : ※ 引述《hizuki (ayaka)》之銘言: : --------------- : | ...

iptables + openVPN 相關應用

William avatar
By William
at 2014-12-03T20:24
※ 引述《hizuki (ayaka)》之銘言: : ※ 引述《gn00618777 (非常念舊)》之銘言: : : 板友好,想請教ㄧ個問題 --------------- ...

iptables + openVPN 相關應用

Agatha avatar
By Agatha
at 2014-12-03T03:03
※ 引述《gn00618777 (非常念舊)》之銘言: : 板友好,想請教ㄧ個問題 : --------------- : | | : ...

程式亂碼問題

Tom avatar
By Tom
at 2014-12-03T01:34
os:ubuntu desktop 64bit 有安裝了新細明體等字型進去 並修改/etc/fonts/conf.avail/49-sansserif.conf 將最後的family的string改成WenQuanYi Zen Hei 可是在程式裡就怪怪的... 有時候可以正常顯示中文 有時候又不 ...

iptables + openVPN 相關應用

Enid avatar
By Enid
at 2014-12-02T19:24
只有看到一個vpn server,這是實體上以LAN連線的網路嗎?通常兩個用tun連起來的網路 應該會有兩個vpn閘道吧。 - ...