ROS软路由论坛 ROSABC.com 网络方案网络工程交流

 找回密码
 会员注册

QQ登录

只需一步,快速开始

查看: 10803|回复: 2

[交流] PCC和NTH负载均衡稳定性问题请教

[复制链接]
发表于 2006-5-28 20:58:38 | 显示全部楼层
请教下斑竹,为什么我加了src-address地址后

双线就可以负载均衡呢?ping断线了?

这个到底是为什么呢,我做PCC不需要加入src-address就可以了,正常啊。

为什么NTH就需要加入src-address才可以稳定呢?
发表于 2006-5-30 00:30:28 | 显示全部楼层
你的NTH里将src-address的地址范围填写上
 楼主| 发表于 2006-5-22 01:29:16 | 显示全部楼层 |阅读模式

马上注册成为ROSABC会员,随时发帖回复。

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

x
101103013662df5ed2c475b0fd.png 2010-11-3 01:36 上传
下载附件 (30.99 KB)




以下是我的NTH负载均衡代码
/ip firewall mangle
add action=mark-connection chain=prerouting comment=NTH-1 connection-state=new disabled=no new-connection-mark=
1st_conn nth=2,1 passthrough=yes
add action=mark-routing chain=prerouting comment="" connection-mark=1st_conn disabled=no new-routing-mark=
1st_route passthrough=yes
add action=mark-connection chain=prerouting comment=NTH-2 connection-state=new disabled=no new-connection-mark=
2st_conn nth=2,1 passthrough=yes
add action=mark-routing chain=prerouting comment="" connection-mark=2st_conn disabled=no new-routing-mark=
2st_route passthrough=yes
add action=mark-routing chain=prerouting comment="" disabled=no new-routing-mark=1st_route passthrough=no
protocol=tcp src-port=443,8443

/ip route
add check-gateway=ping comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out1
add check-gateway=ping comment="" disabled=no distance=2 dst-address=0.0.0.0/0 gateway=pppoe-out2
add check-gateway=ping comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out1 routing-mark=1st_route
add check-gateway=ping 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



请各位高手看看,而且我连接上去后,NTH去ping外网,经常2个包掉一个包,PCC完全正常。
您需要登录后才可以回帖 登录 | 会员注册

本版积分规则

不良信息举报Q:2000617

软路由

不良信息举报Q:2000617|Archiver|ROS软路由论坛 ROSABC.com 网络方案网络工程交流

GMT+8, 2024-5-19 00:50 , Processed in 0.153990 second(s), 22 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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