最佳答案
您好,请知:
可以参考下防火墙的出方向负载均衡,实际上防火墙就比路由器多配置了安全策略或域间策略。
https://www.h3c.com/cn/d_202006/1308501_30005_0.htm#_Toc43379813
用户从两个运营商ISP 1和ISP 2处分别租用了链路Link 1和Link 2,这两条链路的路由器跳数、带宽和成本均相同,但Link 1的网络延迟小于Link 2。通过配置链路负载均衡,使Host访问Server时优先选择这两条链路中的最优链路。
图3-4 出方向链路负载均衡基本组网配置组网图
?
(1) 配置接口IP地址、路由、安全域及域间策略保证网络可达,具体配置步骤略。
(2) 配置链路组
# 创建ICMP类型的NQA模板t1,并配置每次探测结果发送机制。
[Device] nqa template icmp t1
[Device-nqatplt-icmp-t1] reaction trigger per-probe
[Device-nqatplt-icmp-t1] quit
# 指定缺省就近性探测方法为t1,并配置就近性计算的网络延迟权值为200。
[Device] loadbalance proximity
[Device-lb-proximity] match default probe t1
[Device-lb-proximity] rtt weight 200
[Device-lb-proximity] quit
# 创建链路组lg,并开启就近性功能。
[Device] loadbalance link-group lg
[Device-lb-lgroup-lg] proximity enable
# 关闭NAT功能。
[Device-lb-lgroup-lg] transparent enable
[Device-lb-lgroup-lg] quit
(3) 配置链路
# 创建链路link1,配置其下一跳IPv4地址为10.1.1.2,并加入链路组lg。
[Device] loadbalance link link1
[Device-lb-link-link1] router ip 10.1.1.2
[Device-lb-link-link1] link-group lg
[Device-lb-link-link1] quit
# 创建链路link2,配置其下一跳IPv4地址为20.1.1.2,并加入链路组lg。
[Device] loadbalance link link2
[Device-lb-link-link2] router ip 20.1.1.2
[Device-lb-link-link2] link-group lg
[Device-lb-link-link2] quit
(4) 配置虚服务器
# 创建LINK-IP类型的虚服务器vs,配置其VSIP为通配0.0.0.0/0,指定其缺省主用链路组为lg,并开启此虚服务器。
[Device] virtual-server vs type link-ip
[Device-vs-link-ip-vs] virtual ip address 0.0.0.0 0
[Device-vs-link-ip-vs] default link-group lg
[Device-vs-link-ip-vs] service enable
[Device-vs-link-ip-vs] quit
# 显示所有链路的简要信息。
[Device] display loadbalance link brief
Link ????????????Route IP???????? ????State??????? VPN instance? ?Link group
link1??????????? 10.1.1.2 ????????????Active???????? ?????????????lg
link2??????????? 20.1.1.2 ????????????Active???????? ?????????????lg
# 显示所有链路组的详细信息。
[Device] display loadbalance link-group
Link group: lg
? Description:
? Predictor: Round robin
? Proximity: Enabled
? NAT: Disabled
? SNAT pool:
? Failed action: Keep
? Active threshold: Disabled
? Slow-online: Disabled
? Selected link: Disabled
? Probe information:
??? Probe success criteria: All
??? Probe method:
?? ?t1
? Total link: 2
? Active link: 2
? Link list:
? Name????????? State???????? VPN instance? Router IP??????????? Weight Priority
? link1???????? Active?????? ???????????????10.1.1.2? ???????????100?? ?4
? link2???????? Active?????? ???????????????20.1.1.2 ????????????100?? ?4
# 显示所有虚服务器的详细信息。
[Device] display virtual-server
Virtual server: vs
? Description:
? Type: LINK-IP
? State: Active
? VPN instance:
? Virtual IPv4 address: 0.0.0.0/0
? Virtual IPv6 address: --
? Port: 0
? Primary link group: lg (in use)
? Backup link group:
? Sticky:
? LB policy:
? LB limit-policy:
? Connection limit: --
? Rate limit:
??? Connections: --
??? Bandwidth: --
??? Inbound bandwidth: --
??? Outbound bandwidth: --
? Connection synchronization: Disabled
? Sticky synchronization: Disabled
? Bandwidth busy protection: Disabled
? Interface bandwidth statistics: Disabled
? Route advertisement: Disabled
# 显示所有IPv4就近性表项的简要信息。
[Device] display loadbalance proximity ip
(*) - Real server object
Slot 1:
??? IPv4 address/Mask length?????? Timeout???? Best link
??? ------------------------------------------------------------
??? 10.1.0.0/24??????????????????? 50????????? link1
?
(0)
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论