第一就是多线的情况下,掉线自动切换。
如果用脚本那非常麻烦
其实有个简单的办法,在router的网关项里填好Distance的标记
标记越大优先权越高。Distance高的优先做路由,但是当Distance高的掉线了,Distance低的就会自动接管。

第二就是多线ADSL的问题
写脚本一样很麻烦,一样有免脚本的办法。
就是在PPP,profiles里加一个名为PPP1的地址,remote address里填写个任意地址
然后创建拨号的时候,profiles里选ppp1,这样ADSL不管怎么重新拨号和重启,网关都是remote address里填写的地址。
这样不需要脚本,在重启或者重新拨号也不用去手动改网关,非常稳定。
当然如果经常遇到同网关的,那还是用脚本吧。

关于直接填多网关会掉线的问题
可以使用脚本
/ ip firewall mangle
add chain=prerouting dst-address-list=noNTH_IP action=mark-routing \
new-routing-mark=2 passthrough=yes comment="noNTH_IP" disabled=no
add chain=prerouting protocol=tcp dst-port=443 action=mark-routing \
new-routing-mark=1 passthrough=yes comment="dst.port_443mark1" disabled=no
add chain=prerouting src-address=11.1.0.1-11.1.8.255 connection-state=new \
nth=2,3,0 dst-address-list=!noNTH_IP action=mark-connection \
new-connection-mark=1 passthrough=yes comment="" disabled=no
add chain=prerouting src-address=11.1.0.1-11.1.8.255 connection-mark=1 \
dst-address-list=!noNTH_IP action=mark-routing new-routing-mark=1 \
passthrough=no comment="" disabled=no
add chain=prerouting src-address=11.1.0.1-11.1.8.255 connection-state=new \
nth=2,3,1 dst-address-list=!noNTH_IP action=mark-connection \
new-connection-mark=2 passthrough=yes comment="" disabled=no
add chain=prerouting src-address=11.1.0.1-11.1.8.255 connection-mark=2 \
dst-address-list=!noNTH_IP action=mark-routing new-routing-mark=2 \
passthrough=no comment="" disabled=no
add chain=prerouting src-address=11.1.0.1-11.1.8.255 connection-state=new \
nth=2,3,2 dst-address-list=!noNTH_IP action=mark-connection \
new-connection-mark=3 passthrough=yes comment="" disabled=no
add chain=prerouting src-address=11.1.0.1-11.1.8.255 connection-mark=3 \
dst-address-list=!noNTH_IP action=mark-routing new-routing-mark=3 \
passthrough=no comment="" disabled=no
add chain=forward protocol=tcp tcp-flags=syn action=change-mss new-mss=1432 \
comment="" disabled=no
add chain=prerouting action=accept comment="" disabled=no

/ ip firewall address-list
add list=noNTH_IP address=202.118.118.0/24 comment="" disabled=no
add list=noNTH_IP address=222.121.112.51-222.121.112.60 comment="" disabled=no

;“noNTH_IP”是不需要均衡IP的清单,在/ ip firewall address-list 内修改“noNTH_IP”的实际IP,没有IP可以禁用这个地址清单。src-address=11.1.0.1-11.1.8.255,是内网所用的IP,不论是固定IP还是PPPOE,建立地址池时,选用这段IP或更改成你的IP

附带个4条adsl绑定图