ROS PCC负载均衡
:标记PCC和路由:
/ip firewall mangle add chain=forward tcp-flags=syn action=change-mss new-mss=1440 comme nt="Ch g-mark=pcc_route_5 passthrough=no
注:在标记PCC时将“ in-interface=lan ”取消并换成 “ src-address=网段” 效果好
像比较好。
:伪装:
/ip firewall nat add cha in=srcnat out- in terface= 出口一 /ip firewall nat add cha in=srcnat out- in terface= 出口二 /ip firewall nat add cha in=srcnat out- in terface= 出口三 /ip firewall nat add cha in=srcnat out- in terface= 出口四 /ip firewall nat add cha in=srcnat out- in terface= 出口五 三:设置路由:
acti on=masquerade acti on=masquerade acti on=masquerade acti on=masquerade acti on=masquerade
仲 route add dst-address= routi ng-mark=pcc_route_1
仲 route add dst-address=
routi ng-mark=pcc_route_1
仲 route add dst-address=
gateway=
出
口 一
check-gateway=p ing
gateway=
出
口 二
check-gateway=p ing
gateway=
出
口三
check-gateway=p ing
routi ng-mark=pcc_route_1
/ip route add dst-address= gateway= 出 口 四 check-gateway=p ing
routi ng-mark=pcc_route_1
/ip route add dst-address= gateway= 出 口五 check-gateway=p ing
rout in g-mark=pcc_route_5
四:设置默认路由:
/ip route add dst-address= gateway=出口一
/ip route add dst-address= gateway=出口二
/ip route add dst-address= gateway=出口三
/ip route add dst-addr
负载均衡 来自淘豆网www.taodocs.com转载请标明出处.