两条光纤
一个电信10M
IP:218.244.69.198
gateway:218.244.69.197
mask:255.255.255.240
dns:218.244.73.1,218.244.73.2,219.150.32.132
一个网通
IP:218.26.162.135
gateway:218.26.162.129
mask:255.255.255.240
dns:202.99.192.68,202.99.192.66
RouterOS 版 2.8.26
配置
4块3com3c905网卡
一个连接电信,一个连接网通,另外两个分别做电信和网通的网关
IP地址在一个段192.168.1.1,192.168.1.2
其中一条断线以后,自动切换到另外一条
本来打算做策略或者负载均衡的路由但是规定要求这样,请大家指点! 另外就是我怕策略路由会使routeros负担过大,希望在终端做策略
-------------------------------------------------------------
cd \
rou
route add 202.99.0.0(网通IP段) mask 255.255.0.0 192.168.1.2(网通网关)
-----------------------------------------------------------------
请看是不是这样 据说
IP不能在同一个段,不知道可以吗
比如设置 192.168.1.1,192.168.1.2 连个网卡一个ip段不行,会只用一个网卡走数据的. QUOTE(adslcool @ Jun 13 2005, 03:18 PM)
据说
IP不能在同一个段,不知道可以吗
比如设置 192.168.1.1,192.168.1.2
51077
看来不能,做两个网关
我看最好在win下面做策略了
,以减轻routeros的负担
----------------------------------------------------------------------------------
echo off
cd \
route -F
route -p add 60.0.0.0 mask 255.248.0.0 192.168.1.1 metric 1
route -p add 60.8.0.0 mask 255.254.0.0 192.168.1.1 metric 1
route -p add 60.10.0.0 mask 255.255.0.0 192.168.1.1 metric 1
route -p add 60.12.0.0 mask 255.255.0.0 192.168.1.1 metric 1
route -p add 60.13.0.0 mask 255.255.192.0 192.168.1.1 metric 1
route -p add 60.13.128.0 mask 255.255.128.0 192.168.1.1 metric 1
route -p add 60.16.0.0 mask 255.240.0.0 192.168.1.1 metric 1
route -p add 60.208.0.0 mask 255.248.0.0 192.168.1.1 metric 1
route -p add 60.216.0.0 mask 255.254.0.0 192.168.1.1 metric 1
route -p add 60.220.0.0 mask 255.252.0.0 192.168.1.1 metric 1
route -p add 61.48.0.0 mask 255.248.0.0 192.168.1.1 metric 1
route -p add 61.133.0.0 mask 255.255.128.0 192.168.1.1 metric 1
route -p add 61.135.0.0 mask 255.255.0.0 192.168.1.1 metric 1
route -p add 61.136.64.0 mask 255.255.192.0 192.168.1.1 metric 1
route -p add 61.137.128.0 mask 255.255.128.0 192.168.1.1 metric 1
route -p add 61.138.0.0 mask 255.255.128.0 192.168.1.1 metric 1
route -p add 61.138.128.0 mask 255.255.192.0 192.168.1.1 metric 1
route -p add 61.139.128.0 mask 255.255.192.0 192.168.1.1 metric 1
route -p add 61.148.0.0 mask 255.254.0.0 192.168.1.1 metric 1
route -p add 61.156.0.0 mask 255.255.0.0 192.168.1.1 metric 1
route -p add 61.158.128.0 mask 255.255.128.0 192.168.1.1 metric 1
route -p add 61.159.0.0 mask 255.255.192.0 192.168.1.1 metric 1
route -p add 61.161.0.0 mask 255.255.192.0 192.168.1.1 metric 1
route -p add 61.161.128.0 mask 255.255.128.0 192.168.1.1 metric 1
route -p add 61.167.0.0 mask 255.255.0.0 192.168.1.1 metric 1
route -p add 61.168.0.0 mask 255.255.0.0 192.168.1.1 metric 1
route -p add 61.176.0.0 mask 255.255.0.0 192.168.1.1 metric 1
route -p add 61.179.0.0 mask 255.255.0.0 192.168.1.1 metric 1
route -p add 61.180.128.0 mask 255.255.128.0 192.168.1.1 metric 1
route -p add 61.181.0.0 mask 255.255.0.0 192.168.1.1 metric 1
route -p add 61.182.0.0 mask 255.255.0.0 192.168.1.1 metric 1
route -p add 61.189.0.0 mask 255.255.128.0 192.168.1.1 metric 1
route -p add 202.96.0.0 mask 255.255.192.0 192.168.1.1 metric 1
route -p add 202.96.64.0 mask 255.255.224.0 192.168.1.1 metric 1
route -p add 202.97.128.0 mask 255.255.128.0 192.168.1.1 metric 1
route -p add 202.98.0.0 mask 255.255.224.0 192.168.1.1 metric 1
route -p add 202.99.0.0 mask 255.255.0.0 192.168.1.1 metric 1
route -p add 202.102.128.0 mask 255.255.192.0 192.168.1.1 metric 1
route -p add 202.102.224.0 mask 255.255.224.0 192.168.1.1 metric 1
route -p add 202.106.0.0 mask 255.255.0.0 192.168.1.1 metric 1
route -p add 202.107.0.0 mask 255.255.128.0 192.168.1.1 metric 1
route -p add 202.108.0.0 mask 255.255.0.0 192.168.1.1 metric 1
route -p add 202.110.0.0 mask 255.255.128.0 192.168.1.1 metric 1
route -p add 202.110.192.0 mask 255.255.192.0 192.168.1.1 metric 1
route -p add 202.111.128.0 mask 255.255.192.0 192.168.1.1 metric 1
route -p add 218.7.0.0 mask 255.255.0.0 192.168.1.1 metric 1
route -p add 218.8.0.0 mask 255.252.0.0 192.168.1.1 metric 1
route -p add 218.12.0.0 mask 255.255.0.0 192.168.1.1 metric 1
route -p add 218.24.0.0 mask 255.252.0.0 192.168.1.1 metric 1
route -p add 218.28.0.0 mask 255.254.0.0 192.168.1.1 metric 1
route -p add 218.56.0.0 mask 255.252.0.0 192.168.1.1 metric 1
route -p add 218.60.0.0 mask 255.254.0.0 192.168.1.1 metric 1
route -p add 218.67.128.0 mask 255.255.128.0 192.168.1.1 metric 1
route -p add 218.68.0.0 mask 255.254.0.0 192.168.1.1 metric 1
route -p add 221.0.0.0 mask 255.252.0.0 192.168.1.1 metric 1
route -p add 221.4.0.0 mask 255.254.0.0 192.168.1.1 metric 1
route -p add 221.6.0.0 mask 255.255.0.0 192.168.1.1 metric 1
route -p add 221.7.0.0 mask 255.255.192.0 192.168.1.1 metric 1
route -p add 221.7.64.0 mask 255.255.224.0 192.168.1.1 metric 1
route -p add 221.7.128.0 mask 255.255.128.0 192.168.1.1 metric 1
route -p add 221.8.0.0 mask 255.254.0.0 192.168.1.1 metric 1
route -p add 221.10.0.0 mask 255.255.0.0 192.168.1.1 metric 1
route -p add 221.11.0.0 mask 255.255.128.0 192.168.1.1 metric 1
route -p add 221.11.128.0 mask 255.255.192.0 192.168.1.1 metric 1
route -p add 221.11.192.0 mask 255.255.224.0 192.168.1.1 metric 1
route -p add 221.12.0.0 mask 255.255.128.0 192.168.1.1 metric 1
route -p add 221.12.128 mask 255.255.192.0 192.168.1.1 metric 1
route -p add 221.13.0.0 mask 255.255.192.0 192.168.1.1 metric 1
route -p add 221.13.64.0 mask 255.255.224.0 192.168.1.1 metric 1
route -p add 221.13.128.0 mask 255.255.128.0 192.168.1.1 metric 1
route -p add 221.14.0.0 mask 255.254.0.0 192.168.1.1 metric 1
route -p add 221.192.0.0 mask 255.252.0.0 192.168.1.1 metric 1
route -p add 221.196.0.0 mask 255.254.0.0 192.168.1.1 metric 1
route -p add 221.198.0.0 mask 255.255.0.0 192.168.1.1 metric 1
route -p add 221.199.0.0 mask 255.255.224.0 192.168.1.1 metric 1
route -p add 221.199.32.0 mask 255.255.240.0 192.168.1.1 metric 1
route -p add 221.199.128.0 mask 255.255.192.0 192.168.1.1 metric 1
route -p add 221.199.192.0 mask 255.255.240.0 192.168.1.1 metric 1
route -p add 221.200.0.0 mask 255.252.0.0 192.168.1.1 metric 1
route -p add 221.204.0.0 mask 255.254.0.0 192.168.1.1 metric 1
route -p add 221.207.0.0 mask 255.255.192.0 192.168.1.1 metric 1
route -p add 221.208.0.0 mask 255.252.0.0 192.168.1.1 metric 1
route -p add 221.212.0.0 mask 255.254.0.0 192.168.1.1 metric 1
route -p add 221.216.0.0 mask 255.248.0.0 192.168.1.1 metric 1
route -p add 222.128.0.0 mask 255.240.0.0 192.168.1.1 metric 1
route -p add 222.160.0.0 mask 255.254.0.0 192.168.1.1 metric 1
route -p add 222.162.0.0 mask 255.255.0.0 192.168.1.1 metric 1
route -p add 222.163.0.0 mask 255.255.224.0 192.168.1.1 metric 1------------------------------------------------------------------------------------------------- 这样可以吗 顶 不赞成终端策略。请高手来给个os的策略
我正想要*_*
页:
[1]