找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 5817|回复: 10

[负载平衡] 第一次发帖,甚是不懂,求解答,小生万分感激!

[复制链接]
发表于 2012-3-18 13:03:56 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

×
   条件:2条ADSL 4M 一条(不同端口,从电信盒子里接出来的)     ,刚恢复出厂设置的 ros 5.14系统  
做两条 pppoe PCC  后 只有pppoe -out1 又流量出口,另一口无流量.
3.jpg
2.jpg
1.jpg
有图 有设置,  求解答,小生万分感激!
routeros
 楼主| 发表于 2012-3-18 13:05:44 | 显示全部楼层
本帖最后由 zhy2155537 于 2012-3-18 13:59 编辑

这是 使用的脚本设置   



/ip firewall mangle
add action=mark-connection chain=input  disabled=no in-interface=pppoe-out1 new-connection-mark=pppoe-out1-conn \
    passthrough=yes
add action=mark-connection chain=input  disabled=no in-interface=pppoe-out2 new-connection-mark=pppoe-out2-conn \
    passthrough=yes
add action=mark-routing chain=output  connection-mark=pppoe-out1-conn disabled=no new-routing-mark=to-pppoe-out1 \
    passthrough=yes
add action=mark-routing chain=output  connection-mark=pppoe-out2-conn disabled=no new-routing-mark=to-pppoe-out2 \
    passthrough=yes
add action=accept chain=prerouting  disabled=no dst-address-type=local in-interface=LAN
add action=accept chain=prerouting  disabled=no dst-address-type=local in-interface=LAN
add action=mark-connection chain=prerouting  disabled=no dst-address-type=!local in-interface=LAN new-connection-mark=\
    pppoe-out1-conn passthrough=yes per-connection-classifier=src-address-and-port:2/0
add action=mark-connection chain=prerouting  disabled=no dst-address-type=!local in-interface=LAN new-connection-mark=\
    pppoe-out2-conn passthrough=yes per-connection-classifier=src-address-and-port:2/1
add action=mark-routing chain=prerouting  connection-mark=pppoe-out1-conn disabled=no in-interface=LAN \
    new-routing-mark=to-pppoe-out1 passthrough=yes
add action=mark-routing chain=prerouting  connection-mark=pppoe-out2-conn disabled=no in-interface=LAN \
    new-routing-mark=to-pppoe-out2 passthrough=yes

/ ip route
add dst-address=0.0.0.0/0 gateway=pppoe-out1 routing-mark=to-pppoe-out1 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=pppoe-out2 routing-mark=to-pppoe-out2 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=pppoe-out1 distance=1 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=pppoe-out2 distance=2 check-gateway=ping

/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
routeros
回复

使用道具 举报

 楼主| 发表于 2012-3-18 13:06:58 | 显示全部楼层
因为 身在 异乡, 在线求 解决方案!! 不胜感谢!!
routeros
回复

使用道具 举报

发表于 2012-3-18 13:23:04 | 显示全部楼层
src-address-and-port
routeros
回复

使用道具 举报

 楼主| 发表于 2012-3-18 13:52:45 | 显示全部楼层
routeros
回复

使用道具 举报

 楼主| 发表于 2012-3-18 14:07:26 | 显示全部楼层
:(:(:(:(:(:(:(
routeros
回复

使用道具 举报

 楼主| 发表于 2012-3-18 15:09:29 | 显示全部楼层
:Q:Q:Q:Q:Q
routeros
回复

使用道具 举报

 楼主| 发表于 2012-3-18 18:40:18 | 显示全部楼层
哎 ,沉了沉了
routeros
回复

使用道具 举报

发表于 2012-3-18 18:49:23 | 显示全部楼层
add action=mark-connection chain=prerouting  disabled=no dst-address-type=!local in-interface=LAN new-connection-mark=\
    pppoe-out1-conn passthrough=yes per-connection-classifier=src-address-and-port:2/0
add action=mark-connection chain=prerouting  disabled=no dst-address-type=!local in-interface=LAN new-connection-mark=\
    pppoe-out2-conn passthrough=yes per-connection-classifier=src-address-and-port:2/1
add action=mark-routing chain=prerouting  connection-mark=pppoe-out1-conn disabled=no in-interface=LAN \
    new-routing-mark=to-pppoe-out1 passthrough=yes
add action=mark-routing chain=prerouting  connection-mark=pppoe-out2-conn disabled=no in-interface=LAN \
    new-routing-mark=to-pppoe-out2 passthrough=yes


木有看到这几条规则,自己手动加上去
routeros
回复

使用道具 举报

发表于 2012-3-18 22:02:05 | 显示全部楼层
本帖最后由 fandl 于 2012-3-18 22:04 编辑

增加楼上提到的。

再删了路由表里的第3、第4条。
routeros
回复

使用道具 举报

 楼主| 发表于 2012-3-18 23:40:58 | 显示全部楼层
谢谢各位啊,明天再试试啦!!
routeros
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|小黑屋|软路由 ( 渝ICP备15001194号-1|渝公网安备 50011602500124号 )

GMT+8, 2024-5-17 11:16 , Processed in 0.113042 second(s), 5 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表