|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
×
我用的是ros2.9.6版本的,对于双线自动切换我添加是网通的路由。
如下:
/ ip route
add dst-address=59.80.0.0/14 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=60.0.0.0/13 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=60.8.0.0/15 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=60.10.0.0/16 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=60.12.0.0/16 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=60.13.0.0/18 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=60.13.128.0/17 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=60.208.0.0/13 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=60.216.0.0/15 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=60.220.0.0/14 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=61.4.64.0/20 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=61.148.0.0/13 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=61.128.210.0/24 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=61.133.0.0/17 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=61.134.96.0/19 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=61.134.128.0/17 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=61.135.0.0/16 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=61.136.0.0/16 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=61.137.128.0/17 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=61.138.128.0/18 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=61.139.128.0/18 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=61.148.0.0/15 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=61.156.0.0/16 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=61.158.0.0/16 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=61.159.0.0/18 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=61.161.0.0/18 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=61.161.128.0/17 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=61.162.0.0/15 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=61.167.0.0/16 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=61.168.0.0/16 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=61.176.0.0/16 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=61.179.0.0/16 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=61.180.13.0/24 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=61.180.128.0/17 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=61.181.0.0/16 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=61.182.0.0/16 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=61.189.0.0/17 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=61.237.148.0/24 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=202.96.0.0/18 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=202.94.64.0/19 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=202.97.128.0/17 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=202.98.0.0/19 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=202.99.0.0/16 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=202.102.128.0/18 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=202.102.224.0/19 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=202.106.0.0/16 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=202.107.0.0/17 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=202.108.0.0/16 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=202.110.0.0/17 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=202.110.192.0/18 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=202.111.128.0/18 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=203.93.0.0/16 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=203.175.192.0/18 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=210.12.0.0/15 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=210.14.160.0/19 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=210.14.192.0/18 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=210.15.0.0/17 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=210.15.128.0/18 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=210.21.0.0/16 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=210.22.0.0/16 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=210.45.128.0/20 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=210.51.0.0/16 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=210.52.0.0/15 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=210.72.96.0/20 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=210.73.32.0/19 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=210.74.96.0/19 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=210.74.128.0/19 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=210.78.0.0/19 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=210.82.0.0/15 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=211.95.192.0/18 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=211.97.245.0/24 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=211.151.0.0/16 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=211.158.0.0/16 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=211.163.0.0/16 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=218.4.0.0/14 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=218.8.0.0/14 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=218.12.0.0/16 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=218.21.128.0/17 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=218.24.0.0/14 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=218.28.0.0/15 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=218.56.0.0/14 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=218.60.0.0/15 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=218.62.0.0/17 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=218.67.128.0/17 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=218.68.0.0/15 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=218.104.0.0/16 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=218.106.0.0/15 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=218.108.0.0/15 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=219.141.128.0/17 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=219.142.0.0/156 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=219.154.0.0/15 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=219.156.0.0/15 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=219.158.0.0/16 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=219.159.0.0/18 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=220.192.0.0/12 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=220.248.0.0/15 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=220.250.0.0/16 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=221.0.0.0/14 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=221.4.0.0/15 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=221.6.0.0/16 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=221.7.0.0/18 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=221.7.64.0/19 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=221.7.128.0/17 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=221.8.0.0/15 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=221.10.0.0/16 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=221.11.0.0/17 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=221.11.128.0/18 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=221.11.192.0/19 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=221.12.0.0/17 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=221.12.128.0/18 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=221.13.0.0/18 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=221.13.64.0/19 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=221.13.128.0/17 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=221.192.0.0/14 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=221.196.0.0/15 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=221.198.0.0/16 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=221.199.0.0/19 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=221.199.32.0/20 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=221.199.128.0/18 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=221.199.192.0/20 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=221.200.0.0/14 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=221.204.0.0/15 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=221.207.0.0/18 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=221.208.0.0/14 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=221.208.0.0/12 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=222.128.0.0/12 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=222.160.0.0/15 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=222.162.0.0/16 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=222.163.0.0/19 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=222.173.101.0/24 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=202.96.0.0/18 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=222.173.102.0/23 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=222.172.104.0/22 gateway=218.98.98.17 check-gateway=ping distance=0 scope=255 target-scope=10 comment="wangtong" disabled=no
add dst-address=0.0.0.0/0 gateway=222.175.102.129 check-gateway=ping distance=0 scope=255 target-scope=10 comment="dianxin" disabled=no
然后用的是:
/ system script
add name="dxup" source="/ip route set \[/ip route find comment=dianxin\] gateway 222.175.102.129\n" policy=ftp,reboot,read,write,policy,test,winbox,password
add name="wtup" source="/ip route set \[/ip route find comment=wangtong\] gateway 218.98.98.17\n" policy=ftp,reboot,read,write,policy,test,winbox,password
add name="dxdown" source="/ip route set \[/ip route find comment=dianxin\] gateway 218.98.98.17\n" policy=ftp,reboot,read,write,policy,test,winbox,password
add name="wtdown" source="/ip route set \[/ip route find comment=wangtong\] gateway 222.175.102.129\n" policy=ftp,reboot,read,write,policy,test,winbox,password
然后是添加监视功能。
这样后总是走电信的路由。网通基本上不走。还有就是把电信的线拔掉的话就不能上网了。必须把电信的接上才可以上网,这样的话就必须走电信的路由,可以说网通的线根本没什么作用。
希望大家有什么好的方法吗,我也不知道我那里做错了 。。。大家帮帮忙!!!! |
|