首页 电脑网络 电脑知识 正文

routeros双ADSL负载平衡脚本

routeros双ADSL负载平衡脚本 [plain] # may/25/2013 09:26:48 by RouterOS 5.20 /ip firewall mangle add action=mark-connection chain=input disabled=no in-interface=pppoe-out1 new-connectio
routeros双ADSL负载平衡脚本   [plain]  # may/25/2013 09:26:48 by RouterOS 5.20      /ip firewall mangle   add action=mark-connection chain=input disabled=no in-interface=pppoe-out1 new-connection-mark=wan1_conn passthrough=yes   add action=mark-connection chain=input disabled=no in-interface=pppoe-out2 new-connection-mark=wan2_conn passthrough=yes   add action=mark-routing chain=output connection-mark=wan1_conn disabled=no new-routing-mark=to_wan1 passthrough=yes   add action=mark-routing chain=output connection-mark=wan2_conn disabled=no new-routing-mark=to_wan2 passthrough=yes   add action=mark-connection chain=prerouting disabled=no dst-address-type=!local in-interface=wan1 new-connection-mark=wan1_conn passthrough=yes /       per-connection-classifier=both-addresses-and-ports:2/0   add action=mark-connection chain=prerouting disabled=no dst-address-type=!local in-interface=wan1 new-connection-mark=wan2_conn passthrough=yes /       per-connection-classifier=both-addresses-and-ports:2/1   add action=mark-connection chain=prerouting disabled=no dst-address-type=!local in-interface=wan2 new-connection-mark=wan1_conn passthrough=yes /       per-connection-classifier=both-addresses-and-ports:2/0   add action=mark-connection chain=prerouting disabled=no dst-address-type=!local in-interface=wan2 new-connection-mark=wan2_conn passthrough=yes /       per-connection-classifier=both-addresses-and-ports:2/1   add action=mark-routing chain=prerouting connection-mark=wan1_conn disabled=no in-interface=wan1 new-routing-mark=to_wan1 passthrough=yes   add action=mark-routing chain=prerouting connection-mark=wan2_conn disabled=no in-interface=wan1 new-routing-mark=to_wan2 passthrough=yes   add action=mark-routing chain=prerouting connection-mark=wan1_conn disabled=no in-interface=wan2 new-routing-mark=to_wan1 passthrough=yes   add action=mark-routing chain=prerouting connection-mark=wan2_conn disabled=no in-interface=wan2 new-routing-mark=to_wan2 passthrough=yes          /ip firewall nat   add action=masquerade chain=srcnat disabled=no out-interface=pppoe-out1   add action=masquerade chain=srcnat disabled=no out-interface=pppoe-out2      /ip route   add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out1 routing-mark=to_wan1 scope=30 target-scope=10   add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out2 routing-mark=to_wan2 scope=30 target-scope=10   add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out1 scope=30 target-scope=10   add check-gateway=ping disabled=no distance=2 dst-address=0.0.0.0/0 gateway=pppoe-out2 scope=30 target-scope=10     这个脚本是从老外Alex复制来的。 亲证好用,他原来是4线的。 可以往上加,修改2/0 2/1 为4/0 4/1 4/2 4/3网银也好用,并且下载带宽可以叠加。
  interfaces里,拨号端是 wan1 wan2;  接局域网是 lanPPPOE拨号是 pppoe-out1和pppoe-out2,使用这个默认名字比较好。 这几个符号改来改去,比较容易混淆。   网卡界面和拨号需要手动添加一下,主要是mangle和route两部分。   复制后,在new terminal里面粘贴就可以了。
 
(免责声明:文章内容如涉及作品内容、版权和其它问题,请及时与我们联系,我们将在第一时间删除内容,文章内容仅供参考)

本文转载自互联网,如有侵权,联系删除

本文地址:https://www.peigen.net/post/10848.html

相关推荐

板栗怎么私信主播?

板栗直播可以看直播,想必有一些用户已经知道,如果遇见自己喜欢的主播,我们该怎么私信主播呢?为此,小编特意查询资料,把板栗如何私信主播的方法分享给大家。 1)打开板栗,点击打开要私信的直播,接着点击左上...

电脑知识 2024-11-30 0 138

e兼职APP怎么进行身份认证?

e兼职app下载最靠谱的大学生兼职,帮助大学生提升技能,借用靠谱企业的力量培育大学生的社会经验与专业技能,最快5秒内找到心仪的兼职,大众点评最好的兼职软件。不过这么好用的软件,在使用前需要进行身份验证...

电脑知识 2024-11-30 0 141

口碑农场邀请码怎么获取

口碑农场是口碑app中新增加的一个玩法。口碑农场邀请码怎么获取?想要获得口碑农场的邀请码,具体该怎么操作?下面就是口碑农场邀请码获取教程,一起来看一下。...

电脑知识 2024-11-30 0 132

伙星app怎么更换主页封面?

伙星是一款关于相机相关的应用,能够让用户来制作各种好玩的、搞笑的照片,并且还有着许许多多的特效,能够让你看到很多很好玩的内容,除了这些,用户可以在里面进行拍照和漂流瓶交友等,那么在伙星app中要怎么更...

电脑知识 2024-11-30 0 118

会声会影怎么添加背景音乐?

会声会影2018是一款强大的照片|图片|视频制作、剪辑软件,具有多种的视频编辑功能和制作动画效果。但是如果想要让自己制作的视频有意思,背景音乐一定少不了,下面,小编就为大家介绍下会声会影添加背景音乐方...

电脑知识 2024-11-30 0 136

如何制作高质量的PPT?

如何制作高质量的PPT?不管是对于一个学生、老师还是上班族Word、PPT、表格这三个办公软件都是必修的技能了。我们如何将这些做得优秀?如何脱衣而出?所以呀今天我们就先来讨论一下如何制作PPT。如果...

电脑知识 2024-11-30 0 122

感谢您的支持