本文主要是介绍华为AR2220 配置以太链路+以太链路的负载分担接口备份,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
一、组网需求
1、如图所示,RouterA通过三个接口与RouterB直连,正常情况下,HostA通过RouterA的GE0/0/0接口与HostB进行数据传输。
为了提高HostA与HostB间数据传输的可靠性,用户希望当GE0/0/0接口上流量达到其最大可用带宽的80%时,优先启动GE0/0/1接口进行负载分担,当GE0/0/0接口上流量低于此带宽的20%时,关闭优先级较低的接口。
2、网络拓扑
3、配置思路
采用如下的思路在接口上配置负载分担接口备份:
配置各接口的IP地址及HostA与HostB之间的静态路由,实现网络层互通。
在RouterA上配置GE0/0/0作为主接口,GE0/0/1和GE0/0/2为GE0/0/0的备份接口,且GE0/0/1的优先级较高,实现主接口流量过高时,优先启用GE0/0/1进行负载分担。
配置主接口最大可用带宽及负载分担的百分比门限,确定启用备份接口的条件。
二、操作步骤
1、配置设备接口IP
<Huawei>system-view
[Huawei]sysname RouterA
[RouterA]interface GigabitEthernet 4/0/0
[RouterA-GigabitEthernet4/0/0]ip address 192.168.1.254 24
[RouterA-GigabitEthernet4/0/0]q
[RouterA]interface GigabitEthernet 0/0/0
[RouterA-GigabitEthernet0/0/0]ip address 1.1.1.1 24
[RouterA-GigabitEthernet0/0/0]q
[RouterA]interface GigabitEthernet 0/0/1
[RouterA-GigabitEthernet0/0/1]ip address 2.2.2.1 24
[RouterA-GigabitEthernet0/0/1]q
[RouterA]interface GigabitEthernet 0/0/2
[RouterA-GigabitEthernet0/0/2]ip address 3.3.3.1 24
[RouterA-GigabitEthernet0/0/2]q<Huawei>system-view
[Huawei]sysname RouterB
[RouterB]interface GigabitEthernet 4/0/0
[RouterB-GigabitEthernet4/0/0]ip address 192.168.2.254 24
[RouterB-GigabitEthernet4/0/0]q
[RouterB]interface GigabitEthernet 0/0/0
[RouterB-GigabitEthernet0/0/0]ip address 1.1.1.2 24
[RouterB-GigabitEthernet0/0/0]q
[RouterB]interface GigabitEthernet 0/0/1
[RouterB-GigabitEthernet0/0/1]ip address 2.2.2.2 24
[RouterB-GigabitEthernet0/0/1]q
[RouterB]interface GigabitEthernet 0/0/2
[RouterB-GigabitEthernet0/0/2]ip address 3.3.3.2 24
[RouterB-GigabitEthernet0/0/2]q
2、配置静态路由
[RouterA]ip route-static 192.168.2.0 24 1.1.1.2
[RouterA]ip route-static 192.168.2.0 24 2.2.2.2
[RouterA]ip route-static 192.168.2.0 24 3.3.3.2[RouterB]ip route-static 192.168.1.0 24 1.1.1.1
[RouterB]ip route-static 192.168.1.0 24 2.2.2.1
[RouterB]ip route-static 192.168.1.0 24 3.3.3.1
3、配置RouterA上主备接口及优先级
[RouterA]interface GigabitEthernet 0/0/0
[RouterA-GigabitEthernet0/0/0]standby interface GigabitEthernet 0/0/1 30
[RouterA-GigabitEthernet0/0/0]standby interface GigabitEthernet 0/0/2 20
[RouterA-GigabitEthernet0/0/0]q
4、配置RouterA上主接口的最大可用带宽为10000kbps
[RouterA]interface GigabitEthernet 0/0/0
[RouterA-GigabitEthernet0/0/0]standby bandwidth 10000
[RouterA-GigabitEthernet0/0/0]q
5、配置RouterA上负载分担的百分比阈值,上限阈值为80%,下限阈值为20%
[RouterA]interface GigabitEthernet 0/0/0
[RouterA-GigabitEthernet0/0/0]standby threshold 80 20
[RouterA-GigabitEthernet0/0/0]q
6、查看配置结果,看到“Loadstate”字段显示为:TO-HYPNOTIZE,表示接口处于负载分担方式。
[RouterA]display standby state
Interface Interfacestate Backupstate Backupflag Pri Loadstate
GigabitEthernet0/0/0 UP MUP MUD TO-HYPNOTIZE
GigabitEthernet0/0/1 STANDBY STANDBY BU 30
GigabitEthernet0/0/2 STANDBY STANDBY BU 20 Backup-flag meaning: M---MAIN B---BACKUP V---MOVED U---USEDD---LOAD P---PULLED ----------------------------------------------------------------------------
Below is track BFD information:
Bfd-Name Bfd-State BackupInterface State
----------------------------------------------------------------------------
Below is track IP route information:
Destination/Mask Route-State BackupInterface State
----------------------------------------------------------------------------
Below is track NQA Information:
Instance Name BackupInterface State
这篇关于华为AR2220 配置以太链路+以太链路的负载分担接口备份的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!