兩條 ADSL 旳問題
Filed in: 公告, 網路服務 Add comments
今天移機完成,把兩條 ADSL 同時接在同一台 Server 上,因為實在是不想再去把另一台 Server 弄起來,浪費空間也浪費電
基本上,default gateway 只能設其中一個,也就是我把 default gateway 設成 SeedNet 的,那麼從外面 ping 的到 SeedNet 的 IP,但另一條 So-Net ADSL 的 IP 就 ping 不到連不上了,因此,得做一些 routing 上的修改:
1./etc/iproute2/rt_tables
200 seednet
201 sonet
2./etc/rc.local
ip route flush table sonet
ip rule add from (sonet ip) table sonet
ip route add default via (sonet gw) dev eth1 table sonet