当前位置:Linux教程 - Linux文化 - 服务器双网卡双IP设置问题?

服务器双网卡双IP设置问题?


>>> 此贴的回复 >> 通常我是这么做:

在服务器上安装双网卡,分别设置教育网和chinanet的IP,但是,只设置chinanet的网关作为缺省网关。 然后将教育网的地址添加路由,通过教育网的网关访问。

在我的网关上: ip route show dev eth0 (eth0是我的教育网网卡,172.16.1.1是与教育网相连的路由器上的IP,列出的是教育网的地址段)

202.107.104.0/24 via 172.16.1.1 dev eth0 202.38.140.0/23 via 172.16.1.1 dev eth0 202.38.184.0/21 via 172.16.1.1 dev eth0 202.127.216.0/21 via 172.16.1.1 dev eth0 210.47.160.0/20 via 172.16.1.1 dev eth0 202.38.96.0/19 via 172.16.1.1 dev eth0 202.38.64.0/19 via 172.16.1.1 dev eth0 59.66.32.0/19 via 172.16.1.1 dev eth0 59.66.0.0/19 via 172.16.1.1 dev eth0 202.127.224.0/19 via 172.16.1.1 dev eth0 202.4.128.0/19 via 172.16.1.1 dev eth0 210.47.128.0/19 via 172.16.1.1 dev eth0 210.25.128.0/18 via 172.16.1.1 dev eth0 202.112.0.0/18 via 172.16.1.1 dev eth0 202.112.64.0/18 via 172.16.1.1 dev eth0 202.38.192.0/18 via 172.16.1.1 dev eth0 59.66.64.0/18 via 172.16.1.1 dev eth0 219.243.192.0/18 via 172.16.1.1 dev eth0 219.243.128.0/18 via 172.16.1.1 dev eth0 210.47.192.0/18 via 172.16.1.1 dev eth0 202.112.128.0/17 via 172.16.1.1 dev eth0 210.47.0.0/17 via 172.16.1.1 dev eth0 219.243.0.0/17 via 172.16.1.1 dev eth0 210.25.0.0/17 via 172.16.1.1 dev eth0 59.66.128.0/17 via 172.16.1.1 dev eth0 222.22.0.0/16 via 172.16.1.1 dev eth0 218.193.0.0/16 via 172.16.1.1 dev eth0 222.23.0.0/16 via 172.16.1.1 dev eth0 202.113.0.0/16 via 172.16.1.1 dev eth0 218.192.0.0/16 via 172.16.1.1 dev eth0 202.114.0.0/16 via 172.16.1.1 dev eth0 218.195.0.0/16 via 172.16.1.1 dev eth0 162.105.0.0/16 via 172.16.1.1 dev eth0 202.115.0.0/16 via 172.16.1.1 dev eth0 218.194.0.0/16 via 172.16.1.1 dev eth0 166.111.0.0/16 via 172.16.1.1 dev eth0 202.116.0.0/16 via 172.16.1.1 dev eth0 219.221.0.0/16 via 172.16.1.1 dev eth0 202.117.0.0/16 via 172.16.1.1 dev eth0 219.220.0.0/16 via 172.16.1.1 dev eth0 202.118.0.0/16 via 172.16.1.1 dev eth0 222.198.0.0/16 via 172.16.1.1 dev eth0 59.67.0.0/16 via 172.16.1.1 dev eth0 202.119.0.0/16 via 172.16.1.1 dev eth0 222.199.0.0/16 via 172.16.1.1 dev eth0 211.71.0.0/16 via 172.16.1.1 dev eth0 59.76.0.0/16 via 172.16.1.1 dev eth0 211.70.0.0/16 via 172.16.1.1 dev eth0 210.31.0.0/16 via 172.16.1.1 dev eth0 210.46.0.0/16 via 172.16.1.1 dev eth0 211.69.0.0/16 via 172.16.1.1 dev eth0 219.226.0.0/16 via 172.16.1.1 dev eth0 219.242.0.0/16 via 172.16.1.1 dev eth0 210.30.0.0/16 via 172.16.1.1 dev eth0 211.68.0.0/16 via 172.16.1.1 dev eth0 219.227.0.0/16 via 172.16.1.1 dev eth0 211.67.0.0/16 via 172.16.1.1 dev eth0 211.83.0.0/16 via 172.16.1.1 dev eth0 211.66.0.0/16 via 172.16.1.1 dev eth0 211.82.0.0/16 via 172.16.1.1 dev eth0 211.81.0.0/16 via 172.16.1.1 dev eth0 211.80.0.0/16 via 172.16.1.1 dev eth0 202.196.0.0/15 via 172.16.1.1 dev eth0 202.198.0.0/15 via 172.16.1.1 dev eth0 202.192.0.0/15 via 172.16.1.1 dev eth0 222.196.0.0/15 via 172.16.1.1 dev eth0 202.194.0.0/15 via 172.16.1.1 dev eth0 210.44.0.0/15 via 172.16.1.1 dev eth0 219.224.0.0/15 via 172.16.1.1 dev eth0 210.40.0.0/15 via 172.16.1.1 dev eth0 202.200.0.0/15 via 172.16.1.1 dev eth0 222.204.0.0/15 via 172.16.1.1 dev eth0 219.228.0.0/15 via 172.16.1.1 dev eth0 210.42.0.0/15 via 172.16.1.1 dev eth0 211.64.0.0/15 via 172.16.1.1 dev eth0 202.202.0.0/15 via 172.16.1.1 dev eth0 219.230.0.0/15 via 172.16.1.1 dev eth0 219.216.0.0/15 via 172.16.1.1 dev eth0 222.20.0.0/15 via 172.16.1.1 dev eth0 219.218.0.0/15 via 172.16.1.1 dev eth0 222.18.0.0/15 via 172.16.1.1 dev eth0 59.64.0.0/15 via 172.16.1.1 dev eth0 222.16.0.0/15 via 172.16.1.1 dev eth0 219.222.0.0/15 via 172.16.1.1 dev eth0 210.28.0.0/15 via 172.16.1.1 dev eth0 211.86.0.0/15 via 172.16.1.1 dev eth0 202.120.0.0/15 via 172.16.1.1 dev eth0 211.84.0.0/15 via 172.16.1.1 dev eth0 222.26.0.0/15 via 172.16.1.1 dev eth0 59.72.0.0/15 via 172.16.1.1 dev eth0 222.24.0.0/15 via 172.16.1.1 dev eth0 210.26.0.0/15 via 172.16.1.1 dev eth0 59.74.0.0/15 via 172.16.1.1 dev eth0 210.36.0.0/14 via 172.16.1.1 dev eth0 222.192.0.0/14 via 172.16.1.1 dev eth0 210.32.0.0/14 via 172.16.1.1 dev eth0 222.200.0.0/14 via 172.16.1.1 dev eth0 59.68.0.0/14 via 172.16.1.1 dev eth0 222.28.0.0/14 via 172.16.1.1 dev eth0 219.244.0.0/14 via 172.16.1.1 dev eth0 218.196.0.0/14 via 172.16.1.1 dev eth0 202.204.0.0/14 via 172.16.1.1 dev eth0

[ 关闭窗口 ]

Copyright © 1999-2000 LSLNET.COM. All rights reserved. 蓝森林网站 版权所有。 E-mail : [email protected]