ROS软路由
ROS软路由常用脚本集合
转载自:创意安天论坛
看完请指出错误 以及自己感想 如果自己有什么好的想法不妨说出来
RouterOS监控脚本,断线报警,线路恢复自动解除报警:
在/system script里添加脚本
name=你要监控的ip
内容如下
:set i 0
:while ($i=0) do={:beep length=2s frequency=2755;:delay 5;:set a abc;\
:foreach i in=[/tool netwatch find host=你要监控的ip] \
do={:set a [/tool netwatch get $i status]};:put $a;:if($a=up) do={:set i 1}}
然后再在/tool netwatch里添加监控
host=你要监控的ip
在down里填写
/system script run 你要监控的ip
:set shendown1 [/system clock get date]
:set shendown2 [/system clock get time]
:set shendown ("你要监控的ip down " . $shendown1 . " " . $shendown2)
:log warning $shendown
ROS小包策略:
/ ip firewall mangle
add chain=forward protocol=tcp tcp-flags=syn action=change-mss new-mss=1440 comment="" disabled=no add chain=forwar* *2*=all-p2p action=mark-connection new-connection-mark=p2p_conn passthrough=yes comment="" disabled=no
add chain=forward connection-mark=p2p_conn action=mark-packet new-packet-mark=p2p passthrough=yes comment="" disabled=no
add chain=forward connection-mark=!p2p_conn action=mark-packet new-packet-mark=general passthrough=yes comment="" disabled=no
add chain=forward packet-size=32-512 action=mark-packet new-packet-mark=small passthrough=yes comment="" disabled=no
add chain=forward packet-size=512-1200 action=mark-packet new-packet-mark=big passthrough=yes comment="" disabled=no
/ queue tree
add name="p2p1" parent=wan packet-mark=p2p limit-at=600000 queue=default priority=8 max-limit=800000 burst-limit=0 burst-threshold=0 burst-time=0s disabled=no
add name="p2p2" parent=lan packet-mark=p2p limit-at=800000 queue=default priority=8 max-limit=600000 burst-limit=0 burst-threshold=0 burst-time=0s disabled=no
add name="ClassA" parent=lan packet-mark="" limit-at=0 queue=default priority=8 max-limit=100000000 burst-limit=0 burst-threshold=0 burst-time=0s disabled=no
add name="ClassB" parent=ClassA packet-mark="" limit-at=0 queue=default priority=8 max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s disabled=no
add name="Leaf1" parent=ClassA packet-mark=general limit-at=0 queue=default priority=7 max-limit=0
RouterOS软路由常用脚本集合_IT/计算机_专业资料。介绍了RouterOS软路由常用的经验、使用心得、参数设置、脚本等。特别说明此资料来自豆丁网(http://www.docin.com...
ROS常用脚本 作者:软路由网┋来源:网络┋发布用户:admin┋发布时间:08年09月17日┋阅读:222次 RouterOS监控脚本,断线报警,线路恢复自动解除报警:在/system script...
常用常见的ROS脚本(实用... 5页 1下载券 ROS软路由屏蔽各大网站视... 5...ROS 脚本大全(通用) 一:限速脚本 :for wbsz from 1 to 254 do={/queue ...
ROS软路由限速脚本 另类ROS限速让限速更稳定更智能 首先说说我为什么要做这个限速... ROS软路由常用脚本集合 12页 免费 ROS软路由屏蔽各大网站视... 5页 4下载...
ROS软路由批量绑定ARP脚本_IT/计算机_专业资料。ROS 软路由批量绑定 ARP 脚本... ROS软路由常用脚本集合 12页 免费 网吧专用ros软路由 29页 免费 ROS软路由...
{# c- ~/ x max-limit---我们最常用的地方,最大速度 burst-limit---突破...ROS 动态限速(检测外网总速度进行限速开关)废话不说先看脚本原理: 以下操作全部...
ROS软路由全部命令及技巧_IT/计算机_专业资料。ROS软路由全部命令及技巧... ROS 软路由学习笔记 24页 免费 ROS软路由常用脚本集合 12页 免费 ROS双线...
还有一些其他功能大家可以查考网上的教程或 ROS 脚本生成器 ROS 菜单含义 ...下载速度为 128k-256k 上 传为 56k-128k 最后别忘了设置密码: 附常见病毒...
ROS软路由屏蔽各大网站视... 5页 4下载券 ROS实用脚本 ROS2.X ROS... ...ROS 脚本大全 一:限速脚本 :for wbsz from 1 to 254 do={/queue ** add...
ros 软路由设置教程 2007-10-23 14:01 ros 软路由设置教程 一:安装 1、光盘版的(转自雨纷飞大哥作品) 将 iso 文件刻录成可引导光盘。机器的硬盘设置为 IDE...
热门文档