ros3线分流,其中有一条线掉线,

来源:百度知道 编辑:UC知道 时间:2024/06/28 20:03:34
ros3线分流,其中有一条线掉线,就有些机上不了网,ROS怎么自动切换脚本呢,
动态IP怎么设网关呢?深圳ADSL,应该怎么弄呢?能QQ告诉我吗?我是3线的,,不是双线呀!

第1步 设置好监控的开关

/ tool netwatch
add host=电信网关 timeout=1s interval=1m up-script=dxup down-script=dxdown comment="TEL" disabled=no
add host=网通网关 timeout=1s interval=1m up-script=CNCup down-script=CNCdown comment="CNC" disabled=no

第2步好脚本自动切换
/ system script
add name="dxup" source="/ip route set \[/ip route find comment=TEL\] gateway 电信网关\n" policy=ftp,reboot,read,write,policy,test,winbox,password

add name="CNCup" source="/ip route set \[/ip route find comment=CNC\] gateway 网通网关\n" policy=ftp,reboot,read,write,policy,test,winbox,password

add name="dxdown" source="/ip route set \[/ip route find comment=CNC\] gateway 网通网关\n" policy=ftp,reboot,read,write,policy,test,winbox,password

add name="CNCdown" source="/ip route set \[/ip route find comment=TEL\] gateway 电信网关