ubnt解决方案
查看: 1309|回复: 0

[RouterOS] ADSL 双线拨号PCC负载均衡宽带叠加脚本

[复制链接]

2

回帖

567

积分

52 小时

在线时间

中尉

注册时间
2016-1-6
金币
493 个
威望
0 个
荣誉
0 个
累计签到:35 天
连续签到:0 天
[LV.50]初入江湖
发表于 2016-9-28 17:58
近来遇到很多客户的反馈,拉双线了,但是不会做双线,特此写了几句脚本供各位复制,其实双线很简单的,各位自己配置好内网及外网之后,粘贴就好了,我这边实际环境是两条10M的宽带,看配置后的图 $ Y* o+ m+ S3 M* ]" S" L4 D( E
$ |2 S6 H( g& t
. l3 J. a- ^  c5 p

5 e$ E6 {) s0 ~0 P ) M% U. O  F! t9 c9 M
配置完之后用360测速,2.75MB/秒
9 V! c, q4 K0 o1 F
  J! C  x! a! `$ P7 P+ K+ K
6 ~( R6 |/ Q, V0 u. f下面就是脚本啦
/ \6 ]9 `/ o1 `6 h* }0 d( ?. I+ b& h; }% `
/ip firewall mangle$ D0 S+ h! \; Q/ l  a2 S
add action=mark-connection chain=prerouting  disabled=no new-connection-mark=1 passthrough=yes per-connection-classifier=both-addresses:2/0 src-address=192.168.2.0/24
! W2 ~$ o' e, j6 j$ cadd action=mark-connection chain=prerouting  disabled=no new-connection-mark=2 passthrough=yes per-connection-classifier=both-addresses:2/1 src-address=192.168.2.0/24+ ^! A+ H6 @$ `
add action=mark-routing chain=prerouting  connection-mark=1 disabled=no new-routing-mark=1 passthrough=yes src-address=192.168.2.0/24$ M* U: Z- a: T# F% Q
add action=mark-routing chain=prerouting  connection-mark=2 disabled=no new-routing-mark=2 passthrough=yes src-address=192.168.2.0/24/ip route
# Q: F' Z' ]( W8 `7 n& Nadd  disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out1 routing-mark=1
3 e. N7 |; g( ?/ w6 tadd  disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out2 routing-mark=2
2 L& m4 V# i1 ~
; ~5 E5 y8 c& q

' y' g" f  O3 d1 f

站点统计 | Archiver | 手机版 | 无线门户 ( 粤ICP备11076993号|粤公网安备44010602008359号 ) |网站地图

GMT+8, 2024-5-7 23:01

返回顶部 返回列表