注意:此方法联通网卡不可加联通网关,否则会和电信网关冲突,无法上网.
此路由表为2013年10月份资料,如有更新请自行更改或留言
一、添加手动路由表.(此方法可实现服务器通过双线路由,电信走电信,联通走联通.但是会出现外部电信访问联通IP时无法正常访问的情况)
1.编辑/etc/rc.loacl 在最下面插入如下代码
chmod 775 /etc/sysconfig/network-scripts/routelist.sh /etc/sysconfig/network-scripts/routelist.sh
2.编辑/etc/init.d/network(为防止重启网络服务时,双线路由表失效) 在倒数第二行加入 /etc/rc.local
esac /etc/rc.local exit $rc
3.然后在/etc/sysconfig/network-scripts/新建文件 routelist.sh
cd /etc/sysconfig/network-scripts/ vi routelist.sh
4.在routelist.sh中编辑一下文件并保存 按照说明将电信网关、电信网卡(eth0)、联通网关、联通网卡(eth1)替换为所需地址以后,拷贝到routelist.sh文件中保存
route add default gw 电信网关 dev 电信网卡(eth0) route add -net 1.24.0.0 netmask 255.248.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 1.56.0.0 netmask 255.248.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 1.188.0.0 netmask 255.252.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 14.196.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 14.204.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 27.8.0.0 netmask 255.248.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 27.36.0.0 netmask 255.252.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 27.40.0.0 netmask 255.248.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 27.50.128.0 netmask 255.255.128.0 gw 联通网关 dev 联通网卡(eth1) route add -net 27.54.192.0 netmask 255.255.192.0 gw 联通网关 dev 联通网卡(eth1) route add -net 27.98.224.0 netmask 255.255.224.0 gw 联通网关 dev 联通网卡(eth1) route add -net 27.106.128.0 netmask 255.255.192.0 gw 联通网关 dev 联通网卡(eth1) route add -net 27.112.0.0 netmask 255.255.192.0 gw 联通网关 dev 联通网卡(eth1) route add -net 27.115.0.0 netmask 255.255.128.0 gw 联通网关 dev 联通网卡(eth1) route add -net 27.192.0.0 netmask 255.224.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 36.32.0.0 netmask 255.252.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 36.248.0.0 netmask 255.252.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 39.64.0.0 netmask 255.224.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 42.1.128.0 netmask 255.255.128.0 gw 联通网关 dev 联通网卡(eth1) route add -net 42.4.0.0 netmask 255.252.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 42.48.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 42.51.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 42.52.0.0 netmask 255.252.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 42.56.0.0 netmask 255.252.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 42.63.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 42.84.0.0 netmask 255.252.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 42.176.0.0 netmask 255.248.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 42.224.0.0 netmask 255.240.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 58.16.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 58.17.0.0 netmask 255.255.128.0 gw 联通网关 dev 联通网卡(eth1) route add -net 58.17.128.0 netmask 255.255.128.0 gw 联通网关 dev 联通网卡(eth1) route add -net 58.18.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 58.19.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 58.20.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 58.21.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 58.22.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 58.24.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 58.30.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 58.66.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 58.116.0.0 netmask 255.252.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 58.128.0.0 netmask 255.248.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 58.144.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 58.240.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 58.242.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 58.244.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 58.246.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 58.248.0.0 netmask 255.248.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 59.107.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 60.0.0.0 netmask 255.248.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 60.8.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 60.10.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 60.11.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 60.12.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 60.13.0.0 netmask 255.255.192.0 gw 联通网关 dev 联通网卡(eth1) route add -net 60.13.64.0 netmask 255.255.192.0 gw 联通网关 dev 联通网卡(eth1) route add -net 60.13.128.0 netmask 255.255.128.0 gw 联通网关 dev 联通网卡(eth1) route add -net 60.14.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 60.16.0.0 netmask 255.248.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 60.24.0.0 netmask 255.252.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 60.28.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 60.30.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 60.31.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 60.63.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 60.194.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 60.204.0.0 netmask 255.255.192.0 gw 联通网关 dev 联通网卡(eth1) route add -net 60.206.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 60.208.0.0 netmask 255.248.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 60.216.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 60.218.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 60.220.0.0 netmask 255.252.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 60.255.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 61.28.0.0 netmask 255.255.128.0 gw 联通网关 dev 联通网卡(eth1) route add -net 61.45.128.0 netmask 255.255.192.0 gw 联通网关 dev 联通网卡(eth1) route add -net 61.48.0.0 netmask 255.252.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 61.52.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 61.54.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 61.55.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 61.133.0.0 netmask 255.255.128.0 gw 联通网关 dev 联通网卡(eth1) route add -net 61.134.96.0 netmask 255.255.224.0 gw 联通网关 dev 联通网卡(eth1) route add -net 61.134.128.0 netmask 255.255.192.0 gw 联通网关 dev 联通网卡(eth1) route add -net 61.134.192.0 netmask 255.255.192.0 gw 联通网关 dev 联通网卡(eth1) route add -net 61.135.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 61.136.0.0 netmask 255.255.192.0 gw 联通网关 dev 联通网卡(eth1) route add -net 61.136.64.0 netmask 255.255.192.0 gw 联通网关 dev 联通网卡(eth1) route add -net 61.137.128.0 netmask 255.255.128.0 gw 联通网关 dev 联通网卡(eth1) route add -net 61.138.0.0 netmask 255.255.192.0 gw 联通网关 dev 联通网卡(eth1) route add -net 61.138.64.0 netmask 255.255.192.0 gw 联通网关 dev 联通网卡(eth1) route add -net 61.138.128.0 netmask 255.255.192.0 gw 联通网关 dev 联通网卡(eth1) route add -net 61.139.128.0 netmask 255.255.192.0 gw 联通网关 dev 联通网卡(eth1) route add -net 61.148.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 61.156.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 61.158.0.0 netmask 255.255.128.0 gw 联通网关 dev 联通网卡(eth1) route add -net 61.158.128.0 netmask 255.255.128.0 gw 联通网关 dev 联通网卡(eth1) route add -net 61.159.0.0 netmask 255.255.192.0 gw 联通网关 dev 联通网卡(eth1) route add -net 61.161.0.0 netmask 255.255.192.0 gw 联通网关 dev 联通网卡(eth1) route add -net 61.161.128.0 netmask 255.255.128.0 gw 联通网关 dev 联通网卡(eth1) route add -net 61.162.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 61.163.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 61.167.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 61.168.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 61.176.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 61.179.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 61.180.128.0 netmask 255.255.128.0 gw 联通网关 dev 联通网卡(eth1) route add -net 61.181.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 61.182.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 61.189.0.0 netmask 255.255.128.0 gw 联通网关 dev 联通网卡(eth1) route add -net 61.240.0.0 netmask 255.252.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 101.16.0.0 netmask 255.240.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 101.44.0.0 netmask 255.252.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 101.64.0.0 netmask 255.248.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 101.72.0.0 netmask 255.252.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 101.204.0.0 netmask 255.252.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 101.232.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 103.1.64.0 netmask 255.255.252.0 gw 联通网关 dev 联通网卡(eth1) route add -net 103.3.96.0 netmask 255.255.252.0 gw 联通网关 dev 联通网卡(eth1) route add -net 103.3.100.0 netmask 255.255.252.0 gw 联通网关 dev 联通网卡(eth1) route add -net 103.3.104.0 netmask 255.255.252.0 gw 联通网关 dev 联通网卡(eth1) route add -net 103.3.108.0 netmask 255.255.252.0 gw 联通网关 dev 联通网卡(eth1) route add -net 103.3.112.0 netmask 255.255.252.0 gw 联通网关 dev 联通网卡(eth1) route add -net 103.3.116.0 netmask 255.255.252.0 gw 联通网关 dev 联通网卡(eth1) route add -net 103.3.120.0 netmask 255.255.252.0 gw 联通网关 dev 联通网卡(eth1) route add -net 103.3.124.0 netmask 255.255.252.0 gw 联通网关 dev 联通网卡(eth1) route add -net 103.3.132.0 netmask 255.255.252.0 gw 联通网关 dev 联通网卡(eth1) route add -net 103.3.136.0 netmask 255.255.252.0 gw 联通网关 dev 联通网卡(eth1) route add -net 103.3.140.0 netmask 255.255.252.0 gw 联通网关 dev 联通网卡(eth1) route add -net 103.3.148.0 netmask 255.255.252.0 gw 联通网关 dev 联通网卡(eth1) route add -net 103.3.152.0 netmask 255.255.252.0 gw 联通网关 dev 联通网卡(eth1) route add -net 103.3.156.0 netmask 255.255.252.0 gw 联通网关 dev 联通网卡(eth1) route add -net 103.5.56.0 netmask 255.255.252.0 gw 联通网关 dev 联通网卡(eth1) route add -net 103.5.252.0 netmask 255.255.252.0 gw 联通网关 dev 联通网卡(eth1) route add -net 103.7.212.0 netmask 255.255.252.0 gw 联通网关 dev 联通网卡(eth1) route add -net 103.14.84.0 netmask 255.255.252.0 gw 联通网关 dev 联通网卡(eth1) route add -net 103.22.188.0 netmask 255.255.252.0 gw 联通网关 dev 联通网卡(eth1) route add -net 103.246.152.0 netmask 255.255.252.0 gw 联通网关 dev 联通网卡(eth1) route add -net 106.2.0.0 netmask 255.255.128.0 gw 联通网关 dev 联通网卡(eth1) route add -net 106.2.128.0 netmask 255.255.224.0 gw 联通网关 dev 联通网卡(eth1) route add -net 106.2.160.0 netmask 255.255.224.0 gw 联通网关 dev 联通网卡(eth1) route add -net 106.2.192.0 netmask 255.255.192.0 gw 联通网关 dev 联通网卡(eth1) route add -net 106.3.0.0 netmask 255.255.128.0 gw 联通网关 dev 联通网卡(eth1) route add -net 106.3.128.0 netmask 255.255.192.0 gw 联通网关 dev 联通网卡(eth1) route add -net 106.3.192.0 netmask 255.255.224.0 gw 联通网关 dev 联通网卡(eth1) route add -net 106.3.224.0 netmask 255.255.248.0 gw 联通网关 dev 联通网卡(eth1) route add -net 106.3.232.0 netmask 255.255.248.0 gw 联通网关 dev 联通网卡(eth1) route add -net 106.3.240.0 netmask 255.255.240.0 gw 联通网关 dev 联通网卡(eth1) route add -net 110.6.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 110.16.0.0 netmask 255.252.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 110.52.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 110.72.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 110.173.0.0 netmask 255.255.224.0 gw 联通网关 dev 联通网卡(eth1) route add -net 110.173.32.0 netmask 255.255.240.0 gw 联通网关 dev 联通网卡(eth1) route add -net 110.228.0.0 netmask 255.252.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 110.232.32.0 netmask 255.255.224.0 gw 联通网关 dev 联通网卡(eth1) route add -net 110.236.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 110.237.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 110.240.0.0 netmask 255.240.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 111.85.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 111.160.0.0 netmask 255.248.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 111.192.0.0 netmask 255.240.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 111.208.0.0 netmask 255.252.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 111.228.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 112.64.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 112.80.0.0 netmask 255.248.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 112.88.0.0 netmask 255.248.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 112.96.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 112.109.128.0 netmask 255.255.128.0 gw 联通网关 dev 联通网卡(eth1) route add -net 112.111.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 112.122.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 112.132.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 112.192.0.0 netmask 255.252.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 112.224.0.0 netmask 255.224.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 113.0.0.0 netmask 255.248.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 113.8.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 113.18.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 113.31.16.0 netmask 255.255.240.0 gw 联通网关 dev 联通网卡(eth1) route add -net 113.31.80.0 netmask 255.255.240.0 gw 联通网关 dev 联通网卡(eth1) route add -net 113.56.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 113.58.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 113.59.0.0 netmask 255.255.128.0 gw 联通网关 dev 联通网卡(eth1) route add -net 113.194.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 113.200.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 113.204.0.0 netmask 255.252.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 113.213.0.0 netmask 255.255.192.0 gw 联通网关 dev 联通网卡(eth1) route add -net 113.213.64.0 netmask 255.255.224.0 gw 联通网关 dev 联通网卡(eth1) route add -net 113.224.0.0 netmask 255.240.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 114.28.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 114.54.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 114.60.0.0 netmask 255.252.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 114.118.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 114.132.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 114.240.0.0 netmask 255.240.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 115.35.128.0 netmask 255.255.128.0 gw 联通网关 dev 联通网卡(eth1) route add -net 115.46.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 115.48.0.0 netmask 255.240.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 115.85.192.0 netmask 255.255.192.0 gw 联通网关 dev 联通网卡(eth1) route add -net 115.100.0.0 netmask 255.252.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 115.123.0.0 netmask 255.255.128.0 gw 联通网关 dev 联通网卡(eth1) route add -net 115.172.0.0 netmask 255.252.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 116.2.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 116.60.0.0 netmask 255.252.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 116.70.0.0 netmask 255.255.128.0 gw 联通网关 dev 联通网卡(eth1) route add -net 116.90.184.0 netmask 255.255.248.0 gw 联通网关 dev 联通网卡(eth1) route add -net 116.95.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 116.112.0.0 netmask 255.252.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 116.116.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 116.194.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 116.196.16.0 netmask 255.255.240.0 gw 联通网关 dev 联通网卡(eth1) route add -net 116.196.32.0 netmask 255.255.224.0 gw 联通网关 dev 联通网卡(eth1) route add -net 116.196.64.0 netmask 255.255.192.0 gw 联通网关 dev 联通网卡(eth1) route add -net 116.196.128.0 netmask 255.255.128.0 gw 联通网关 dev 联通网卡(eth1) route add -net 116.198.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 116.199.0.0 netmask 255.255.128.0 gw 联通网关 dev 联通网卡(eth1) route add -net 116.199.128.0 netmask 255.255.224.0 gw 联通网关 dev 联通网卡(eth1) route add -net 116.213.248.0 netmask 255.255.248.0 gw 联通网关 dev 联通网卡(eth1) route add -net 116.214.32.0 netmask 255.255.224.0 gw 联通网关 dev 联通网卡(eth1) route add -net 116.216.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 116.218.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 116.218.128.0 netmask 255.255.128.0 gw 联通网关 dev 联通网卡(eth1) route add -net 116.242.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 116.245.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 116.254.128.0 netmask 255.255.128.0 gw 联通网关 dev 联通网卡(eth1) route add -net 116.255.128.0 netmask 255.255.128.0 gw 联通网关 dev 联通网卡(eth1) route add -net 117.8.0.0 netmask 255.248.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 117.51.0.0 netmask 255.255.192.0 gw 联通网关 dev 联通网卡(eth1) route add -net 117.74.64.0 netmask 255.255.240.0 gw 联通网关 dev 联通网卡(eth1) route add -net 117.75.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 117.76.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 117.78.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 117.100.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 117.106.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 117.112.0.0 netmask 255.248.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 117.120.64.0 netmask 255.255.192.0 gw 联通网关 dev 联通网卡(eth1) route add -net 118.24.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 118.25.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 118.25.192.0 netmask 255.255.192.0 gw 联通网关 dev 联通网卡(eth1) route add -net 118.72.0.0 netmask 255.248.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 118.80.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 118.88.32.0 netmask 255.255.224.0 gw 联通网关 dev 联通网卡(eth1) route add -net 118.88.64.0 netmask 255.255.192.0 gw 联通网关 dev 联通网卡(eth1) route add -net 118.88.128.0 netmask 255.255.128.0 gw 联通网关 dev 联通网卡(eth1) route add -net 118.102.16.0 netmask 255.255.240.0 gw 联通网关 dev 联通网卡(eth1) route add -net 118.126.128.0 netmask 255.255.128.0 gw 联通网关 dev 联通网卡(eth1) route add -net 118.132.0.0 netmask 255.252.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 118.144.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 118.146.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 118.187.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 118.192.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 118.193.240.0 netmask 255.255.248.0 gw 联通网关 dev 联通网卡(eth1) route add -net 118.195.128.0 netmask 255.255.224.0 gw 联通网关 dev 联通网卡(eth1) route add -net 118.197.128.0 netmask 255.255.128.0 gw 联通网关 dev 联通网卡(eth1) route add -net 118.206.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 118.212.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 118.224.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 118.244.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 118.245.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 118.246.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 119.4.0.0 netmask 255.252.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 119.10.120.0 netmask 255.255.248.0 gw 联通网关 dev 联通网卡(eth1) route add -net 119.32.0.0 netmask 255.252.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 119.36.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 119.37.0.0 netmask 255.255.128.0 gw 联通网关 dev 联通网卡(eth1) route add -net 119.37.128.0 netmask 255.255.192.0 gw 联通网关 dev 联通网卡(eth1) route add -net 119.38.0.0 netmask 255.255.248.0 gw 联通网关 dev 联通网卡(eth1) route add -net 119.39.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 119.40.0.0 netmask 255.255.192.0 gw 联通网关 dev 联通网卡(eth1) route add -net 119.40.128.0 netmask 255.255.128.0 gw 联通网关 dev 联通网卡(eth1) route add -net 119.42.0.0 netmask 255.255.224.0 gw 联通网关 dev 联通网卡(eth1) route add -net 119.42.224.0 netmask 255.255.240.0 gw 联通网关 dev 联通网卡(eth1) route add -net 119.44.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 119.48.0.0 netmask 255.248.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 119.59.128.0 netmask 255.255.128.0 gw 联通网关 dev 联通网卡(eth1) route add -net 119.62.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 119.63.32.0 netmask 255.255.224.0 gw 联通网关 dev 联通网卡(eth1) route add -net 119.108.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 119.112.0.0 netmask 255.248.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 119.148.160.0 netmask 255.255.248.0 gw 联通网关 dev 联通网卡(eth1) route add -net 119.162.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 119.164.0.0 netmask 255.252.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 119.176.0.0 netmask 255.240.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 119.232.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 119.233.0.0 netmask 255.255.128.0 gw 联通网关 dev 联通网卡(eth1) route add -net 119.248.0.0 netmask 255.252.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 119.252.136.0 netmask 255.255.248.0 gw 联通网关 dev 联通网卡(eth1) route add -net 119.252.240.0 netmask 255.255.240.0 gw 联通网关 dev 联通网卡(eth1) route add -net 119.253.128.0 netmask 255.255.128.0 gw 联通网关 dev 联通网卡(eth1) route add -net 119.255.0.0 netmask 255.255.192.0 gw 联通网关 dev 联通网卡(eth1) route add -net 120.0.0.0 netmask 255.240.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 120.65.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 120.66.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 120.67.248.0 netmask 255.255.252.0 gw 联通网关 dev 联通网卡(eth1) route add -net 120.80.0.0 netmask 255.248.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 120.92.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 120.128.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 120.128.0.0 netmask 255.255.240.0 gw 联通网关 dev 联通网卡(eth1) route add -net 120.129.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 120.130.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 120.132.128.0 netmask 255.255.128.0 gw 联通网关 dev 联通网卡(eth1) route add -net 121.16.0.0 netmask 255.248.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 121.24.0.0 netmask 255.252.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 121.28.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 121.30.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 121.31.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 121.36.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 121.40.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 121.51.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 121.52.224.0 netmask 255.255.224.0 gw 联通网关 dev 联通网卡(eth1) route add -net 121.55.0.0 netmask 255.255.192.0 gw 联通网关 dev 联通网卡(eth1) route add -net 121.68.0.0 netmask 255.252.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 121.76.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 121.89.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 121.100.128.0 netmask 255.255.224.0 gw 联通网关 dev 联通网卡(eth1) route add -net 121.196.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 122.10.128.0 netmask 255.255.128.0 gw 联通网关 dev 联通网卡(eth1) route add -net 122.13.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 122.14.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 122.51.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 122.96.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 122.102.64.0 netmask 255.255.240.0 gw 联通网关 dev 联通网卡(eth1) route add -net 122.112.128.0 netmask 255.255.128.0 gw 联通网关 dev 联通网卡(eth1) route add -net 122.114.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 122.115.80.0 netmask 255.255.240.0 gw 联通网关 dev 联通网卡(eth1) route add -net 122.136.0.0 netmask 255.248.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 122.156.0.0 netmask 255.252.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 122.188.0.0 netmask 255.252.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 122.192.0.0 netmask 255.252.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 122.198.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 122.200.64.0 netmask 255.255.192.0 gw 联通网关 dev 联通网卡(eth1) route add -net 123.4.0.0 netmask 255.252.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 123.8.0.0 netmask 255.248.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 123.56.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 123.62.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 123.98.0.0 netmask 255.255.128.0 gw 联通网关 dev 联通网卡(eth1) route add -net 123.99.128.0 netmask 255.255.128.0 gw 联通网关 dev 联通网卡(eth1) route add -net 123.112.0.0 netmask 255.240.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 123.128.0.0 netmask 255.248.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 123.138.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 123.144.0.0 netmask 255.252.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 123.148.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 123.152.0.0 netmask 255.248.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 123.176.80.0 netmask 255.255.240.0 gw 联通网关 dev 联通网卡(eth1) route add -net 123.188.0.0 netmask 255.252.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 123.196.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 123.232.0.0 netmask 255.252.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 123.253.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 124.14.160.0 netmask 255.255.224.0 gw 联通网关 dev 联通网卡(eth1) route add -net 124.14.192.0 netmask 255.255.224.0 gw 联通网关 dev 联通网卡(eth1) route add -net 124.15.64.0 netmask 255.255.192.0 gw 联通网关 dev 联通网卡(eth1) route add -net 124.21.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 124.42.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 124.64.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 124.66.0.0 netmask 255.255.128.0 gw 联通网关 dev 联通网卡(eth1) route add -net 124.67.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 124.68.0.0 netmask 255.252.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 124.88.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 124.89.0.0 netmask 255.255.128.0 gw 联通网关 dev 联通网卡(eth1) route add -net 124.89.128.0 netmask 255.255.128.0 gw 联通网关 dev 联通网卡(eth1) route add -net 124.90.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 124.92.0.0 netmask 255.252.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 124.128.0.0 netmask 255.248.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 124.152.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 124.160.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 124.161.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 124.162.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 124.163.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 124.164.0.0 netmask 255.252.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 124.172.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 124.192.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 124.200.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 124.203.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 124.206.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 124.240.128.0 netmask 255.255.192.0 gw 联通网关 dev 联通网卡(eth1) route add -net 125.32.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 125.33.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 125.34.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 125.35.0.0 netmask 255.255.128.0 gw 联通网关 dev 联通网卡(eth1) route add -net 125.35.128.0 netmask 255.255.128.0 gw 联通网关 dev 联通网卡(eth1) route add -net 125.36.0.0 netmask 255.252.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 125.40.0.0 netmask 255.248.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 125.171.160.0 netmask 255.255.224.0 gw 联通网关 dev 联通网卡(eth1) route add -net 125.211.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 139.9.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 139.170.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 139.208.0.0 netmask 255.248.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 139.226.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 140.143.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 140.206.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 150.255.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 153.0.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 153.3.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 153.34.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 153.36.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 153.99.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 153.101.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 157.0.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 157.18.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 157.61.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 157.122.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 157.148.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 157.156.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 157.255.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 163.0.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 163.125.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 163.142.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 163.177.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 163.179.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 163.204.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 171.34.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 171.36.0.0 netmask 255.252.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 171.116.0.0 netmask 255.252.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 171.120.0.0 netmask 255.248.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 175.16.0.0 netmask 255.248.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 175.24.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 175.25.0.0 netmask 255.255.224.0 gw 联通网关 dev 联通网卡(eth1) route add -net 175.42.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 175.44.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 175.102.32.0 netmask 255.255.252.0 gw 联通网关 dev 联通网卡(eth1) route add -net 175.106.128.0 netmask 255.255.128.0 gw 联通网关 dev 联通网卡(eth1) route add -net 175.146.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 175.148.0.0 netmask 255.252.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 175.152.0.0 netmask 255.252.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 175.160.0.0 netmask 255.240.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 175.184.128.0 netmask 255.255.192.0 gw 联通网关 dev 联通网卡(eth1) route add -net 175.189.0.0 netmask 255.255.128.0 gw 联通网关 dev 联通网卡(eth1) route add -net 175.191.0.0 netmask 255.255.192.0 gw 联通网关 dev 联通网卡(eth1) route add -net 180.77.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 180.89.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 180.91.128.0 netmask 255.255.128.0 gw 联通网关 dev 联通网卡(eth1) route add -net 180.95.128.0 netmask 255.255.128.0 gw 联通网关 dev 联通网卡(eth1) route add -net 180.129.128.0 netmask 255.255.128.0 gw 联通网关 dev 联通网卡(eth1) route add -net 180.130.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 180.189.148.0 netmask 255.255.252.0 gw 联通网关 dev 联通网卡(eth1) route add -net 180.223.0.0 netmask 255.255.128.0 gw 联通网关 dev 联通网卡(eth1) route add -net 182.54.0.0 netmask 255.255.128.0 gw 联通网关 dev 联通网卡(eth1) route add -net 182.88.0.0 netmask 255.252.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 182.112.0.0 netmask 255.240.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 182.175.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 182.236.128.0 netmask 255.255.128.0 gw 联通网关 dev 联通网卡(eth1) route add -net 183.92.0.0 netmask 255.252.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 183.184.0.0 netmask 255.248.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 202.70.0.0 netmask 255.255.224.0 gw 联通网关 dev 联通网卡(eth1) route add -net 202.74.8.0 netmask 255.255.248.0 gw 联通网关 dev 联通网卡(eth1) route add -net 202.75.208.0 netmask 255.255.248.0 gw 联通网关 dev 联通网卡(eth1) route add -net 202.75.248.0 netmask 255.255.252.0 gw 联通网关 dev 联通网卡(eth1) route add -net 202.91.232.0 netmask 255.255.248.0 gw 联通网关 dev 联通网卡(eth1) route add -net 202.96.0.0 netmask 255.255.192.0 gw 联通网关 dev 联通网卡(eth1) route add -net 202.96.64.0 netmask 255.255.224.0 gw 联通网关 dev 联通网卡(eth1) route add -net 202.97.128.0 netmask 255.255.224.0 gw 联通网关 dev 联通网卡(eth1) route add -net 202.97.160.0 netmask 255.255.224.0 gw 联通网关 dev 联通网卡(eth1) route add -net 202.97.192.0 netmask 255.255.192.0 gw 联通网关 dev 联通网卡(eth1) route add -net 202.98.0.0 netmask 255.255.224.0 gw 联通网关 dev 联通网卡(eth1) route add -net 202.99.0.0 netmask 255.255.192.0 gw 联通网关 dev 联通网卡(eth1) route add -net 202.99.64.0 netmask 255.255.192.0 gw 联通网关 dev 联通网卡(eth1) route add -net 202.99.128.0 netmask 255.255.192.0 gw 联通网关 dev 联通网卡(eth1) route add -net 202.99.192.0 netmask 255.255.224.0 gw 联通网关 dev 联通网卡(eth1) route add -net 202.99.224.0 netmask 255.255.224.0 gw 联通网关 dev 联通网卡(eth1) route add -net 202.102.128.0 netmask 255.255.192.0 gw 联通网关 dev 联通网卡(eth1) route add -net 202.102.224.0 netmask 255.255.224.0 gw 联通网关 dev 联通网卡(eth1) route add -net 202.106.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 202.107.0.0 netmask 255.255.128.0 gw 联通网关 dev 联通网卡(eth1) route add -net 202.108.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 202.110.0.0 netmask 255.255.192.0 gw 联通网关 dev 联通网卡(eth1) route add -net 202.110.64.0 netmask 255.255.192.0 gw 联通网关 dev 联通网卡(eth1) route add -net 202.110.192.0 netmask 255.255.192.0 gw 联通网关 dev 联通网卡(eth1) route add -net 202.111.128.0 netmask 255.255.224.0 gw 联通网关 dev 联通网卡(eth1) route add -net 202.111.160.0 netmask 255.255.224.0 gw 联通网关 dev 联通网卡(eth1) route add -net 202.127.112.0 netmask 255.255.240.0 gw 联通网关 dev 联通网卡(eth1) route add -net 202.130.224.0 netmask 255.255.224.0 gw 联通网关 dev 联通网卡(eth1) route add -net 202.170.128.0 netmask 255.255.224.0 gw 联通网关 dev 联通网卡(eth1) route add -net 203.86.0.0 netmask 255.255.224.0 gw 联通网关 dev 联通网卡(eth1) route add -net 203.88.192.0 netmask 255.255.224.0 gw 联通网关 dev 联通网卡(eth1) route add -net 203.93.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 203.128.96.0 netmask 255.255.224.0 gw 联通网关 dev 联通网卡(eth1) route add -net 203.160.64.0 netmask 255.255.224.0 gw 联通网关 dev 联通网卡(eth1) route add -net 203.166.160.0 netmask 255.255.224.0 gw 联通网关 dev 联通网卡(eth1) route add -net 203.187.160.0 netmask 255.255.224.0 gw 联通网关 dev 联通网卡(eth1) route add -net 210.2.24.0 netmask 255.255.248.0 gw 联通网关 dev 联通网卡(eth1) route add -net 210.5.128.0 netmask 255.255.240.0 gw 联通网关 dev 联通网卡(eth1) route add -net 210.12.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 210.13.64.0 netmask 255.255.192.0 gw 联通网关 dev 联通网卡(eth1) route add -net 210.14.160.0 netmask 255.255.224.0 gw 联通网关 dev 联通网卡(eth1) route add -net 210.14.192.0 netmask 255.255.192.0 gw 联通网关 dev 联通网卡(eth1) route add -net 210.15.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 210.21.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 210.21.192.0 netmask 255.255.192.0 gw 联通网关 dev 联通网卡(eth1) route add -net 210.22.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 210.22.48.0 netmask 255.255.240.0 gw 联通网关 dev 联通网卡(eth1) route add -net 210.22.64.0 netmask 255.255.192.0 gw 联通网关 dev 联通网卡(eth1) route add -net 210.22.128.0 netmask 255.255.192.0 gw 联通网关 dev 联通网卡(eth1) route add -net 210.22.192.0 netmask 255.255.240.0 gw 联通网关 dev 联通网卡(eth1) route add -net 210.22.208.0 netmask 255.255.252.0 gw 联通网关 dev 联通网卡(eth1) route add -net 210.51.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 210.51.20.0 netmask 255.255.252.0 gw 联通网关 dev 联通网卡(eth1) route add -net 210.51.24.0 netmask 255.255.248.0 gw 联通网关 dev 联通网卡(eth1) route add -net 210.51.32.0 netmask 255.255.224.0 gw 联通网关 dev 联通网卡(eth1) route add -net 210.52.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 210.52.64.0 netmask 255.255.192.0 gw 联通网关 dev 联通网卡(eth1) route add -net 210.52.212.0 netmask 255.255.252.0 gw 联通网关 dev 联通网卡(eth1) route add -net 210.52.216.0 netmask 255.255.248.0 gw 联通网关 dev 联通网卡(eth1) route add -net 210.52.224.0 netmask 255.255.255.0 gw 联通网关 dev 联通网卡(eth1) route add -net 210.56.192.0 netmask 255.255.224.0 gw 联通网关 dev 联通网卡(eth1) route add -net 210.72.96.0 netmask 255.255.224.0 gw 联通网关 dev 联通网卡(eth1) route add -net 210.74.96.0 netmask 255.255.224.0 gw 联通网关 dev 联通网卡(eth1) route add -net 210.74.128.0 netmask 255.255.224.0 gw 联通网关 dev 联通网卡(eth1) route add -net 210.75.144.0 netmask 255.255.240.0 gw 联通网关 dev 联通网卡(eth1) route add -net 210.76.160.0 netmask 255.255.224.0 gw 联通网关 dev 联通网卡(eth1) route add -net 210.78.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 210.79.64.0 netmask 255.255.192.0 gw 联通网关 dev 联通网卡(eth1) route add -net 210.82.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 210.83.0.0 netmask 255.255.254.0 gw 联通网关 dev 联通网卡(eth1) route add -net 210.83.224.0 netmask 255.255.224.0 gw 联通网关 dev 联通网卡(eth1) route add -net 211.90.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 211.92.0.0 netmask 255.252.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 211.96.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 211.100.0.0 netmask 255.255.128.0 gw 联通网关 dev 联通网卡(eth1) route add -net 211.102.128.0 netmask 255.255.192.0 gw 联通网关 dev 联通网卡(eth1) route add -net 211.144.0.0 netmask 255.248.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 211.144.64.0 netmask 255.255.224.0 gw 联通网关 dev 联通网卡(eth1) route add -net 211.152.32.0 netmask 255.255.224.0 gw 联通网关 dev 联通网卡(eth1) route add -net 211.153.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 211.154.64.0 netmask 255.255.224.0 gw 联通网关 dev 联通网卡(eth1) route add -net 211.154.128.0 netmask 255.255.224.0 gw 联通网关 dev 联通网卡(eth1) route add -net 211.154.192.0 netmask 255.255.192.0 gw 联通网关 dev 联通网卡(eth1) route add -net 211.155.192.0 netmask 255.255.224.0 gw 联通网关 dev 联通网卡(eth1) route add -net 211.156.64.0 netmask 255.255.240.0 gw 联通网关 dev 联通网卡(eth1) route add -net 211.158.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 211.161.0.0 netmask 255.255.128.0 gw 联通网关 dev 联通网卡(eth1) route add -net 211.162.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 211.167.96.0 netmask 255.255.224.0 gw 联通网关 dev 联通网卡(eth1) route add -net 218.7.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 218.8.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 218.10.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 218.11.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 218.12.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 218.21.128.0 netmask 255.255.128.0 gw 联通网关 dev 联通网卡(eth1) route add -net 218.24.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 218.26.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 218.27.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 218.28.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 218.56.0.0 netmask 255.252.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 218.60.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 218.62.0.0 netmask 255.255.128.0 gw 联通网关 dev 联通网卡(eth1) route add -net 218.67.128.0 netmask 255.255.128.0 gw 联通网关 dev 联通网卡(eth1) route add -net 218.68.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 218.97.16.0 netmask 255.255.248.0 gw 联通网关 dev 联通网卡(eth1) route add -net 218.97.240.0 netmask 255.255.240.0 gw 联通网关 dev 联通网卡(eth1) route add -net 218.104.0.0 netmask 255.252.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 218.104.32.0 netmask 255.255.240.0 gw 联通网关 dev 联通网卡(eth1) route add -net 218.104.64.0 netmask 255.255.240.0 gw 联通网关 dev 联通网卡(eth1) route add -net 218.104.96.0 netmask 255.255.240.0 gw 联通网关 dev 联通网卡(eth1) route add -net 218.104.128.0 netmask 255.255.240.0 gw 联通网关 dev 联通网卡(eth1) route add -net 218.104.144.0 netmask 255.255.240.0 gw 联通网关 dev 联通网卡(eth1) route add -net 218.104.160.0 netmask 255.255.224.0 gw 联通网关 dev 联通网卡(eth1) route add -net 218.104.192.0 netmask 255.255.248.0 gw 联通网关 dev 联通网卡(eth1) route add -net 218.104.200.0 netmask 255.255.248.0 gw 联通网关 dev 联通网卡(eth1) route add -net 218.104.208.0 netmask 255.255.248.0 gw 联通网关 dev 联通网卡(eth1) route add -net 218.104.216.0 netmask 255.255.248.0 gw 联通网关 dev 联通网卡(eth1) route add -net 218.104.224.0 netmask 255.255.224.0 gw 联通网关 dev 联通网卡(eth1) route add -net 218.106.32.0 netmask 255.255.240.0 gw 联通网关 dev 联通网卡(eth1) route add -net 218.106.64.0 netmask 255.255.240.0 gw 联通网关 dev 联通网卡(eth1) route add -net 218.106.80.0 netmask 255.255.240.0 gw 联通网关 dev 联通网卡(eth1) route add -net 218.106.96.0 netmask 255.255.252.0 gw 联通网关 dev 联通网卡(eth1) route add -net 218.106.112.0 netmask 255.255.240.0 gw 联通网关 dev 联通网卡(eth1) route add -net 218.106.128.0 netmask 255.255.248.0 gw 联通网关 dev 联通网卡(eth1) route add -net 218.106.144.0 netmask 255.255.240.0 gw 联通网关 dev 联通网卡(eth1) route add -net 218.106.208.0 netmask 255.255.240.0 gw 联通网关 dev 联通网卡(eth1) route add -net 218.107.0.0 netmask 255.255.192.0 gw 联通网关 dev 联通网卡(eth1) route add -net 218.107.192.0 netmask 255.255.224.0 gw 联通网关 dev 联通网卡(eth1) route add -net 218.107.224.0 netmask 255.255.224.0 gw 联通网关 dev 联通网卡(eth1) route add -net 218.240.128.0 netmask 255.255.128.0 gw 联通网关 dev 联通网卡(eth1) route add -net 218.244.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 218.247.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 218.249.128.0 netmask 255.255.128.0 gw 联通网关 dev 联通网卡(eth1) route add -net 219.82.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 219.154.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 219.156.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 219.158.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 219.159.0.0 netmask 255.255.192.0 gw 联通网关 dev 联通网卡(eth1) route add -net 219.232.0.0 netmask 255.255.224.0 gw 联通网关 dev 联通网卡(eth1) route add -net 219.234.128.0 netmask 255.255.128.0 gw 联通网关 dev 联通网卡(eth1) route add -net 219.235.16.0 netmask 255.255.240.0 gw 联通网关 dev 联通网卡(eth1) route add -net 219.235.32.0 netmask 255.255.224.0 gw 联通网关 dev 联通网卡(eth1) route add -net 219.235.192.0 netmask 255.255.224.0 gw 联通网关 dev 联通网卡(eth1) route add -net 220.112.0.0 netmask 255.252.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 220.152.128.0 netmask 255.255.128.0 gw 联通网关 dev 联通网卡(eth1) route add -net 220.192.0.0 netmask 255.240.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 220.231.0.0 netmask 255.255.192.0 gw 联通网关 dev 联通网卡(eth1) route add -net 220.231.128.0 netmask 255.255.128.0 gw 联通网关 dev 联通网卡(eth1) route add -net 220.234.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 220.242.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 220.248.0.0 netmask 255.255.128.0 gw 联通网关 dev 联通网卡(eth1) route add -net 220.248.128.0 netmask 255.255.224.0 gw 联通网关 dev 联通网卡(eth1) route add -net 220.248.160.0 netmask 255.255.224.0 gw 联通网关 dev 联通网卡(eth1) route add -net 220.248.192.0 netmask 255.255.224.0 gw 联通网关 dev 联通网卡(eth1) route add -net 220.248.224.0 netmask 255.255.224.0 gw 联通网关 dev 联通网卡(eth1) route add -net 220.249.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 220.249.64.0 netmask 255.255.192.0 gw 联通网关 dev 联通网卡(eth1) route add -net 220.249.128.0 netmask 255.255.192.0 gw 联通网关 dev 联通网卡(eth1) route add -net 220.249.192.0 netmask 255.255.192.0 gw 联通网关 dev 联通网卡(eth1) route add -net 220.250.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 220.250.0.0 netmask 255.255.192.0 gw 联通网关 dev 联通网卡(eth1) route add -net 220.252.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 221.0.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 221.2.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 221.3.0.0 netmask 255.255.128.0 gw 联通网关 dev 联通网卡(eth1) route add -net 221.3.128.0 netmask 255.255.128.0 gw 联通网关 dev 联通网卡(eth1) route add -net 221.4.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 221.5.0.0 netmask 255.255.128.0 gw 联通网关 dev 联通网卡(eth1) route add -net 221.5.128.0 netmask 255.255.128.0 gw 联通网关 dev 联通网卡(eth1) route add -net 221.6.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 221.7.0.0 netmask 255.255.224.0 gw 联通网关 dev 联通网卡(eth1) route add -net 221.7.32.0 netmask 255.255.224.0 gw 联通网关 dev 联通网卡(eth1) route add -net 221.7.64.0 netmask 255.255.192.0 gw 联通网关 dev 联通网卡(eth1) route add -net 221.7.128.0 netmask 255.255.128.0 gw 联通网关 dev 联通网卡(eth1) route add -net 221.8.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 221.10.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 221.11.0.0 netmask 255.255.128.0 gw 联通网关 dev 联通网卡(eth1) route add -net 221.11.128.0 netmask 255.255.192.0 gw 联通网关 dev 联通网卡(eth1) route add -net 221.11.192.0 netmask 255.255.224.0 gw 联通网关 dev 联通网卡(eth1) route add -net 221.11.224.0 netmask 255.255.224.0 gw 联通网关 dev 联通网卡(eth1) route add -net 221.12.0.0 netmask 255.255.128.0 gw 联通网关 dev 联通网卡(eth1) route add -net 221.12.128.0 netmask 255.255.192.0 gw 联通网关 dev 联通网卡(eth1) route add -net 221.13.0.0 netmask 255.255.192.0 gw 联通网关 dev 联通网卡(eth1) route add -net 221.13.64.0 netmask 255.255.224.0 gw 联通网关 dev 联通网卡(eth1) route add -net 221.13.96.0 netmask 255.255.224.0 gw 联通网关 dev 联通网卡(eth1) route add -net 221.13.128.0 netmask 255.255.128.0 gw 联通网关 dev 联通网卡(eth1) route add -net 221.14.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 221.133.224.0 netmask 255.255.240.0 gw 联通网关 dev 联通网卡(eth1) route add -net 221.133.240.0 netmask 255.255.240.0 gw 联通网关 dev 联通网卡(eth1) route add -net 221.137.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 221.192.0.0 netmask 255.252.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 221.196.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 221.198.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 221.199.0.0 netmask 255.255.128.0 gw 联通网关 dev 联通网卡(eth1) route add -net 221.199.128.0 netmask 255.255.192.0 gw 联通网关 dev 联通网卡(eth1) route add -net 221.199.192.0 netmask 255.255.240.0 gw 联通网关 dev 联通网卡(eth1) route add -net 221.199.224.0 netmask 255.255.224.0 gw 联通网关 dev 联通网卡(eth1) route add -net 221.200.0.0 netmask 255.252.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 221.204.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 221.206.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 221.207.0.0 netmask 255.255.192.0 gw 联通网关 dev 联通网卡(eth1) route add -net 221.207.64.0 netmask 255.255.192.0 gw 联通网关 dev 联通网卡(eth1) route add -net 221.207.128.0 netmask 255.255.128.0 gw 联通网关 dev 联通网卡(eth1) route add -net 221.208.0.0 netmask 255.252.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 221.212.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 221.213.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 221.214.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 221.216.0.0 netmask 255.248.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 222.128.0.0 netmask 255.252.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 222.132.0.0 netmask 255.252.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 222.136.0.0 netmask 255.248.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 222.160.0.0 netmask 255.252.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 222.249.128.0 netmask 255.255.128.0 gw 联通网关 dev 联通网卡(eth1) route add -net 223.27.184.0 netmask 255.255.252.0 gw 联通网关 dev 联通网卡(eth1) route add -net 223.166.0.0 netmask 255.254.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 223.209.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1) route add -net 223.254.0.0 netmask 255.255.0.0 gw 联通网关 dev 联通网卡(eth1)
5.重启网络服务,然后tracert下联通和电信DNS 测试双线路由是否生效 或者使用 route -n 命令查看路由表是否已经加上。
二、添加自动学习路由表(此方法实现外部IP访问服务器后服务器自动学习路由表,如果只配第一种方法会出现电信访问不到联通的情况)
策略路由规则设置完后,还要为每条线路加入相应的 “原路返回路由”(从哪条线进来的数据,最终还是从这条线出去),不然就会出现这样的问题: 电信用户通过网通的IP访问不到服务器,网通用户也不能通过电信IP访问到服务器 1. 编辑路由表 修改/etc/iproute2/rt_tables,添加内容:
vi /etc/iproute2/rt_tables 252 net2 251 net3
然后 编辑 /etc/rc.local 按照说明将电信IP、电信网关、电信网卡(eth0)、联通IP、联通网关、联通网卡(eth1)替换为所需地址以后,输入到 rc.loacl里面
vi /etc/rc.local ip route flush table net2 ip route add default via 电信网关 dev 电信网卡 src 电信IP table net2 ip rule add from 电信IP table net2 ip route flush table net3 ip route add default via 联通网关 dev 联通网卡 src 联通IP table net3 ip rule add from 联通IP table net3
保存好以后,重启网络服务即可实现自动双线路由表学习.
参考文章: Linux 双线策略路由的三种实现方式总结+端口映射
时间: 2024-11-05 20:43:31