辰风云网络科技

Hi, 请登录

ROS软路由V6系列 pcc负载均衡

pcc负载均衡分类器的操作

第一组PCC标记
然后进入advanced菜单下,可以看到per-connection-classifier分类器,选择both-addresses,设置参数为2/0(both-addresses-and-ports)
进入action菜单设置action=mark-connection,并取名new-connection-mark=pcc1


排除本地

进入advanced菜单下,可以看到per-connection-classifier分类器,选择both-addresses-and-ports

在prerouting链表,标记第一条PCC连接标记策略,设置src-address=192.168.3.0/24




V6 pcc脚本如下

/ip firewall mangle
add chain=prerouting connection-mark=no-mark dst-address-type=!local action=mark-connection per-connection-classifier=both-addresses-and-ports:2/0 src-address=192.168.3.0/24 new-connection-mark=pcc1
add chain=prerouting action=mark-routing src-address=192.168.3.0/24 connection-mark=pcc1 new-routing-mark=route1
add chain=prerouting connection-mark=no-mark action=mark-connection in-interface=pppoe-out1 new-connection-mark=pcc1
add chain=output action=mark-routing connection-mark=pcc1 new-routing-mark=route1
add chain=prerouting connection-mark=no-mark dst-address-type=!local action=mark-connection per-connection-classifier=both-addresses-and-ports:2/1 src-address=192.168.3.0/24 new-connection-mark=pcc2
add chain=prerouting action=mark-routing src-address=192.168.3.0/24 connection-mark=pcc2 new-routing-mark=route2
add chain=prerouting connection-mark=no-mark action=mark-connection in-interface=pppoe-out2 new-connection-mark=pcc2
add chain=output action=mark-routing connection-mark=pcc2 new-routing-mark=route2
/ip route
add gateway=pppoe-out1 routing-mark=route1
add gateway=pppoe-out2 routing-mark=route2


相关推荐

添加图片注释,不超过 140 字(可选)

Routeros软路由v7 VXLAN 配置
二维码
评论