-
#
对于多线接入情况下,不同
ISP
接入线路是不能做流量合并的这一说法,一直谬误至今。
#
以下的方法我很早就开始使用了,最近有朋友问起,我
#
索性做出一个文档,让有需要的人也能获益。
一,(我这里就不再详细写出如何
架设
pppoe
服务了,如有需要在文库里搜索
ROS
设置
pppoe
服务就
可以有不少相关文档)假设你的内网用户为
pppoe
拨号上网
方式,服务配置
文
件
为
profile1,
用
户
地<
/p>
址
池
为
pool
1,
联
通
dns
地
址
为
221.5.88.88,<
/p>
电
信
dns
地<
/p>
址
为
202.96.128.86
,那么只需指定其中一个为主
dns
地址就可
以了,我这里设为联通的
dns
地址
,
在
winbox
里打开
ppp->profile
,找到你的服务配置文件,设置如下图
1
所示:
或者按下面第二步的方法输入脚本命令也可以:
#
脚本代码
/ppp
profile
add
change-tcp-mss=no
dns-
server=”221.5.88.88”
local
-
address=”10.0.
0.1”
name=profile1 only-one=yes remote-
address=pool1
二,你先自行在
winbox
建立好各个宽带连接,以六条
adsl
宽带为例,假设宽带线路
pppoe-out1,pppoe-
out3,pppoe-out5
为电信,
pppoe-out2
pppoe-out4
pppoe-out6
为联通,你可以按正常的
PCC
六线合并的方法先做好,
或者你也可以进入
p>
winbox
,在菜单打开
New Ter
minal
,复制下面
#####
开头
,
至
#####
结尾部
份的内容,粘贴进去就可以了。如下图
2
所标的:
#####
以下代码为
pcc
的
6
线合并做法,连
接标记是大写
C
开头,路由标记是大写
R
开头
(你若果有其它做法,也可以,这里你需要记住连接标记
的名字,一会在
NAT
会用到)
/ip
firewall
mangle
add
action=
chain=prerouting
dst-address-
type=
new-
connection-
mark=
per-
connection-classifier=
/ip
firewall
mangle
add
action=
chain=prerouting
connection-
mark=
dst-
address-
type=
/ip
firewall
mangle
add
action=
chain=prerouting
dst-address-
type=
new-connection-mark=
per-connection-
classifier=
/ip
firewall
mangle
add
action=
chain=prerouting
connection-
mark=
dst-
address-
type=
/ip
firewall
mangle
add
action=
chain=prerouting
dst-address-
type=
new-connection-mark=
per-connection-
classifier=
/ip
firewall
mangle
add
action=
chain=prerouting
connection-
mark=
dst-
address-
type=
/ip
firewall
mangle
add
action=
chain=prerouting
dst-address-
type=
new-connection-mark=
per-connection-
classifier=
/ip
firewall
mangle
add
action=
chain=prerouting
connection-
mark=
dst-
address-
type=
/ip
firewall
mangle
add
action=
chain=prerouting
dst-address-
type=
new-connection-mark=
per-connection-
classifier=
/ip
firewall
mangle
add
action=
chain=prerouting
connection-
mark=
dst-
address-
type=
/ip
firewall
mangle
add
action=
chain=prerouting
dst-address-
type=
new-connection-mark=
per-connection-
classifier=
/ip
firewall
mangle
add
action=
chain=prerouting
connection-
mark=
dst-
address-
type=
#
以下代码为标记各线路返程数据
的连接和路由标记,
in
开头为连接标记,
o1-o6
是路由
标记
/ip
firewall
mangle
add
action=
chain=input
in-
interface=
new-
connection-
mark=
/ip firewall mangle
add action=
mark=
/ip
firewall
mangle
add
action=
chain=input
in-
interface=
new-
connection-
mark=
/ip firewall mangle
add action=
mark=
/ip
firewall
mangle
add
action=
chain=input
in-
interface=
new-
connection-
mark=
/ip firewall mangle
add action=
mark=
/ip
firewall
mangle
add
action=
chain=input
in-
interface=
new-
connection-
mark=
/ip firewall mangle
add action=
mark=
/ip
firewall
mangle
add
action=
chain=input
in-
interface=
new-
connection-
mark=
/ip firewall mangle
add action=
mark=
/ip
firewall
mangle
add
action=
chain=input
in-
interface=
new-
connection-
mark=
/ip firewall mangle
add action=
mark=
#
下面是给所标记的数据指定路由出口
/ip route add distance=1
dst-address=
/ip route add distance=1
dst-address=
-
-
-
-
-
-
-
-
-
上一篇:Timeout expired 解决思路
下一篇:各个国家及国人的英文汇总