null
现场配置了基于ISP的出链路负载均衡,拥有联通、移动、电信三条链路。反馈在链路状态均正常的情况下电信链路没有任何流量。
1、
2、确认现场各链路的router ip配置正确且可达,健康性检测无误,链路状态均为active。
3、清空测试的电信DNS地址访问会话,通过loadbalance schedule-test命令确认该地址的链路负载情况。
< l1000e>reset session table ipv4 destination-ip 202.xxx.xx.68
This operation might cause session inconsistency between the master and backup devices or service interruption. Continue? [Y/N]:y
< l1000e>loadbalance schedule-test ip protocol icmp destination 202.xxx.xx.68 source 10.x.xxx.1
Matched virtual server: vs
Matched the default class.
Forward type: Forward all
发现访问该电信地址的流量匹配了缺省default的class,执行了现场配置的forward all的转发动作,所以走移动出口的原因是该流量未匹配到电信的ISP表项,走路由转发到了移动出口。
loadbalance action default type link-generic
forward all
#
loadbalance policy default type link-generic
class chinatel action chinatel
class cucc action cucc
class cmcc action cmcc
default-class action default
#
4、
loadbalance class chinatel type link-generic
match 1 isp chinatel
match 2 isp educn
match 3 isp cn
#
loadbalance class cmcc type link-generic
match 1 isp cmcc
#
loadbalance class cucc type link-generic
match 1 isp cnc
在电信loadbalance class配置中增加match-any参数。match-any表示只需匹配任一规则就算匹配该类。在负载均衡类中存在多个匹配条件的时候我们需要注意该参数的配置。
该案例暂时没有网友评论
✖
案例意见反馈
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作