找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 4496|回复: 2

[负载平衡] 我用VRRP单线拨了4个号,但发现PPPoE_out4总是没有流量,为什么呢?

[复制链接]
发表于 2013-2-3 13:15:53 | 显示全部楼层 |阅读模式

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

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

×
按论坛上的方法设置,现在用迅雷可以叠加带宽,但只有PPPoE_out1--out3 有流量 ,out4 总是没有,若断开前三个连接,则out4 有流量 ,另外 ,我开了upnp nat 里也有记录了,但电驴还是提示LowID 为什么呢?请大大们指教。

Route:
/ip route
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=PPPoE_out1 \
    routing-mark=1st_route scope=30 target-scope=10
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=PPPoE_out2 \
    routing-mark=2st_route scope=30 target-scope=10
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=PPPoE_out3 \
    routing-mark=3st_route scope=30 target-scope=10
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=PPPoE_out4 \
    routing-mark=4st_route scope=30 target-scope=10
add disabled=no distance=2 dst-address=0.0.0.0/0 gateway=PPPoE_out1 scope=30 \
    target-scope=10
add disabled=no distance=2 dst-address=0.0.0.0/0 gateway=PPPoE_out2 scope=30 \
    target-scope=10
add disabled=no distance=2 dst-address=0.0.0.0/0 gateway=PPPoE_out3 scope=30 \
    target-scope=10
add disabled=no distance=2 dst-address=0.0.0.0/0 gateway=PPPoE_out4 scope=30 \
    target-scope=10

NAT:
/ip firewall nat
add action=masquerade chain=srcnat comment="default configuration" disabled=\
    no out-interface=PPPoE_out1
add action=masquerade chain=srcnat disabled=no out-interface=PPPoE_out2
add action=masquerade chain=srcnat disabled=no out-interface=PPPoE_out3
add action=masquerade chain=srcnat disabled=no out-interface=PPPoE_out4

Mangle:
/ip firewall mangle
add action=mark-connection chain=prerouting disabled=no in-interface=\
    LAN_2-master-local new-connection-mark=1st_conn passthrough=yes \
    per-connection-classifier=src-address-and-port:4/1
add action=mark-routing chain=prerouting connection-mark=1st_conn disabled=no \
    in-interface=LAN_2-master-local new-routing-mark=1st_route passthrough=no
add action=mark-connection chain=prerouting disabled=no in-interface=\
    LAN_2-master-local new-connection-mark=2st_conn passthrough=yes \
    per-connection-classifier=src-address-and-port:4/2
add action=mark-routing chain=prerouting connection-mark=2st_conn disabled=no \
    in-interface=LAN_2-master-local new-routing-mark=2st_route passthrough=no
add action=mark-connection chain=prerouting disabled=no in-interface=\
    LAN_2-master-local new-connection-mark=3st_conn passthrough=yes \
    per-connection-classifier=src-address-and-port:4/3
add action=mark-connection chain=prerouting disabled=no in-interface=\
    LAN_2-master-local new-connection-mark=4st_conn passthrough=yes \
    per-connection-classifier=src-address-and-port:4/4
add action=mark-routing chain=prerouting connection-mark=3st_conn disabled=no \
    in-interface=LAN_2-master-local new-routing-mark=3st_route passthrough=no
add action=mark-routing chain=prerouting connection-mark=4st_conn disabled=no \
    in-interface=LAN_2-master-local new-routing-mark=4st_route passthrough=no
routeros
发表于 2013-2-3 22:58:30 | 显示全部楼层
per-connection-classifier=src-address-and-port:4/1用错了,应该是从4/0开始

断开前三个会走默认路由,就是第四个pppoe
routeros
回复

使用道具 举报

发表于 2013-2-3 23:07:51 | 显示全部楼层
楼上正解,PCC标记从0记数。所以4线是没有流量的。
routeros
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-6-13 15:43 , Processed in 0.077613 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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