hotspot 能否做多线ads的lPCc叠加脚本
我这里给小区接入方式是 hotspot 带web proxy 加代理后开qq空间速度很快外网接入方式为俩条adsl 但做PCC 叠加后,无法打开网站
在ros 的ip- routes加入如下俩条路由
/ip route
add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=\
pppoe-out1 routing-mark=1st_route
add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=\
pppoe-out2 routing-mark=2st_route
只要将一条禁用 就可以上网 但是浏览只走一条adsl外线
另一条无浏览
当把hotspot 禁用 后可以正常上网
如下为完整的脚本
/ip address add address=10.0.11.254/255.255.255.0 interface=lan comment=lan
/ip dns set allow-remote-requests=yes cache-max-ttl=1w cache-size=2048KiB max-udp-packet-size=512 se=202.99.224.8,202.99.224.168
/ interface pppoe-client
add name="pppoe-out1" max-mtu=1440 max-mru=1440 interface=wlan \
user="047202699487" password="222" profile=default \
service="" ac-name="" add-default-route=yes dial-on-demand=no \
allow=pap,chap,mschap1,mschap2 disabled=no
add name="pppoe-out2" max-mtu=1440 max-mru=1440 interface=wlan2 \
user="047202536727" password="333^" profile=default \
ac-name="" add-default-route=yes dial-on-demand=no \
allow=pap,chap,mschap1,mschap2 disabled=no
/ ip firewall mangle
add chain=prerouting dst-address-type=!local in-interface=lan per-connection-classifier=both-addresses:2/0 \
action=mark-connection new-connection-mark=1st_conn passthrough=yes comment="PCC1"
add chain=prerouting connection-mark=1st_conn in-interface=lan action=mark-routing new-routing-mark=1st_route
add chain=prerouting dst-address-type=!local in-interface=lan per-connection-classifier=both-addresses:2/1 \
action=mark-connection new-connection-mark=2st_conn passthrough=yes comment="PCC2"
add chain=prerouting connection-mark=2st_conn in-interface=lan action=mark-routing new-routing-mark=2st_route
add chain=input in-interface=wlan2 action=mark-connection new-connection-mark=1st_conn
add chain=input in-interface=wlan action=mark-connection new-connection-mark=2st_conn
add chain=output connection-mark=1st_conn action=mark-routing new-routing-mark=1st_route
add chain=output connection-mark=2st_conn action=mark-routing new-routing-mark=2st_route
/ip route
add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=\
pppoe-out1 routing-mark=1st_route
add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=\
pppoe-out2 routing-mark=2st_route
/ip firewall nat
add action=masquerade chain=srcnat comment=1 out-interface=pppoe-out1
add action=masquerade chain=srcnat comment=2 out-interface=pppoe-out2
本帖最后由 qile 于 2011-2-19 08:28 编辑
用软件生成的脚本 执行有点问题 自己又修改了一下
我ros版本为3.30
我也遇到了同样的问题,有哪位前辈可以帮忙解释一下吗 我帮下你 ?楼上的 ,如果用代理的话 就比较麻烦 我招待关闭代理 用 tow address and port 这个流量均衡很多 both address 这个流量不均匀 代理照开
页:
[1]