某局点有两条出口链路,用L5000-S做出方向链路负载均衡,测试一个业务时走一条链路,将这个出接口shutdown后业务中断,业务没有正常切换到另外一条链路。
无
1.查看出方向负载均衡配置,发现没有错误:
#
nqa template icmp out
reaction trigger per-probe
#
loadbalance link-group out
transparent enable
probe out
#
loadbalance class out type link-generic match-any
match 1 acl 2000
#
loadbalance action out type link-generic
link-group out
#
loadbalance policy out type link-generic
class out action out
#
virtual-server out type link-ip
virtual ip address 0.0.0.0 0
lb-policy out
service enable
connection-sync enable
sticky-sync enable
bandwidth busy-protection enable
#
loadbalance link out1
router ip 218.246.84.254
link-group out
probe out
#
loadbalance link out2
router ip 114.242.134.254
link-group out
probe out
#
return
2.查看虚服务器和链路信息,发现都正常。
[H3C]dis virtual-server
Virtual server: out
Description:
Type: LINK-IP
State: Active
VPN instance:
Virtual IPv4 address: 0.0.0.0/0
Virtual IPv6 address: --
Port: 0
Primary link group:
Backup link group:
Sticky:
LB policy: out
LB limit-policy:
Connection limit: --
Rate limit:
Connections: --
Bandwidth: --
Inbound bandwidth: --
Outbound bandwidth: --
Connection synchronization: Enabled
Sticky synchronization: Enabled
Bandwidth busy protection: Enabled
Interface bandwidth statistics: Disabled
Route advertisement: Disabled
[H3C]dis loadbalance link-group
Link group: out
Description:
Predictor: Round robin
Proximity: Disabled
NAT: Disabled
SNAT pool:
Failed action: Keep
Active threshold: Disabled
Slow-online: Disabled
Selected link: Disabled
Probe information:
Probe success criteria: All
Probe method:
out
Total link: 2
Active link: 2
Link list:
Name State Router IP Weight Priority
out1 Active 218.246.84.254 100 4
out2 Active 114.242.134.254 100 4
3.将一条链路出口shutdown后,发现一个业务没有切换,查看链路情况,发现两条链路依然处于激活状态。
[H3C]dis loadbalance link-group
Link group: out
Description:
Predictor: Round robin
Proximity: Disabled
NAT: Disabled
SNAT pool:
Failed action: Keep
Active threshold: Disabled
Slow-online: Disabled
Selected link: Disabled
Probe information:
Probe success criteria: All
Probe method:
out
Total link: 2
Active link: 2
Link list:
Name State Router IP Weight Priority
out1 Active 218.246.84.254 100 4
out2 Active 114.242.134.254 100 4
4.将连接218.246.84.254的接口shutdown了后链路还处于Active,测试ping发现还能通,检查配置,发现有两条静态路由:
ip route-static 0.0.0.0 0 114.242.134.254
ip route-static 0.0.0.0 0 218.246.84.254
应该是从114.242.134.254到218.246.84.254路由通导致检测218网段的下一跳依然可达导致两条链路还是Active状态。
将静态路由删除,发现出方向链路负载均衡正常。
做出方向链路负载均衡的时候不需要写静态路由。
该案例暂时没有网友评论
✖
案例意见反馈
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作