|
发表于 2005-12-8 10:45:30
|
显示全部楼层
5、配置自动切换脚本
CODE
/system script add name="downadsl" source="/in pppoe-client dis [/in pppoe-client find name pppoe-lin owner="admin" policy=reboot,read,write,policy,test
/system script add name="upf" source="/ip route set[/ip route find dst 0.0.0.0] gateway 61.139.73.1,218.88.32.1" owner="admin" policy=reboot,read,write,policy,test
/system script add name="downf" source="/ip route set[/ip route find dst 0.0.0.0] gateway 218.88.32.1 owner="admin" policy=reboot,read,write,policy,test
/system script add name="upadsl" source="/ip route set[/ip route find dst 0.0.0.0] gateway 61.139.73.1,218.88.32.1" owner="admin" policy=reboot,read,write,policy,test
6、配置NETWATCH用于监视网络的通断情况。
CODE
/tool netwatch add host=61.157.88.105 timeout=1s interval=5s up-script=upadsl down-script=downadsl (注:61.157.88.105是监视ADSL是否通的IP,也可以是ADSL的网关。)
/tool netwatch add host=61.139.73.1 timeout=1s interval=5s up-script=upf down-script=downf
请解释一下自动切换脚本吧?没看懂.
还有关于“配置NETWATCH用于监视网络的通断情况”中我怎么断掉一条线状态还是 up呢? |
|