一、組網需求
由於公司人員激增,接入層交換機提供的端口數目已經不能滿足PC的接入需求。現需要在保護現有投資的基礎上擴展端口接入數量,並要求網絡易管理、易維護。
二、組網圖

三、配置思路
Device A提供的接入端口數目已經不能滿足網絡需求,需要另外增加一台設備Device B。(本文以兩台設備組成IRF為例,在實際組網中可以根據需要,將多台設備組成IRF,配置思路和配置步驟與本例類似) 。鑒於第二代智能彈性架構IRF 技術具有管理簡便、網絡擴展能力強、可靠性高等優點,所以本例使用IRF技術構建接入層(即在Device A和Device B上配置IRF功能)。為了防止萬一IRF鏈路故障導致IRF分裂、網絡中存在兩個配置沖突的IRF,需要啟用MAD檢測功能。因為接入層設備較多,我們采用LACP MAD檢測。
四、配置步驟
為便於區分,下文配置中假設IRF形成前Device A的系統名稱為DeviceA,Device B的系統名稱為Device B;中間設備Device C的系統名稱為DeviceC。
(1)配置設備編號
# Device A保留缺省編號為1,不需要進行配置。
# 在Device B上將設備的成咒編號修改為2。
<DeviceB> system-view [DeviceB] irf member 1 renumber 2 Warning: Renumbering the switch number may result in configuration change or loss. Continue? [Y/N]:y [DeviceB]
(2)將兩台設備斷電后,按圖所示連接IRF鏈路,然后將兩台設備上電。
# 在Device A上創建設備的IRF端口2,與物理端口Ten-GigabitEthernet1/1/2綁定,並保存配置。
<DeviceA> system-view [DeviceA] interface ten-gigabitethernet 1/1/2 [DeviceA-Ten-GigabitEthernet1/1/2] shutdown [DeviceA] irf-port 1/2 [DeviceA-irf-port1/2] port group interface ten-gigabitethernet 1/1/2 [DeviceA-irf-port1/2] quit [DeviceA] interface ten-gigabitethernet 1/1/2 [DeviceA-Ten-GigabitEthernet1/1/2] undo shutdown [DeviceA-Ten-GigabitEthernet1/1/2] save
# 在Device B上創建設備的IRF端口1,與物理端口Ten-GigabitEthernet2/1/1綁定,並保存配置。
<DeviceB> system-view [DeviceB] interface ten-gigabitethernet 2/1/1 [DeviceB-Ten-GigabitEthernet2/1/1] shutdown [DeviceB] irf-port 2/1 [DeviceB-irf-port2/1] port group interface ten-gigabitethernet 2/1/1 [DeviceB-irf-port2/1] quit [DeviceB] interface ten-gigabitethernet 2/1/1 [DeviceB-Ten-GigabitEthernet2/1/1] undo shutdown [DeviceB-Ten-GigabitEthernet2/1/1] save
# 激活Device A的IRF端口配置。
[DeviceA-Ten-GigabitEthernet1/1/2] quit [DeviceA] irf-port-configuration active
# 激活Device B的IRF端口配置。
[DeviceA-Ten-GigabitEthernet2/1/1] quit [DeviceA] irf-port-configuration active
(3)兩台設備間將會進行Master競選,競選失敗的一方將自動重啟,重啟完成后,IRF形成,系統名稱統一為Device A。
(4)配置LACP MAD檢測
# 創建一個動態聚合端口,並使能LACP MAD檢測功能。
<DeviceA> system-view [DeviceA] interface bridge-aggregation 2 [DeviceA-Bridge-Aggregation2] link-aggregation mode dynamic [DeviceA-Bridge-Aggregation2] mad enable [DeviceA-Bridge-Aggregation2] quit
# 在聚合端口中添加成員端口GigabitEthernet1/0/1和GigabitEthernet2/0/1,專用於兩台IRF成員設備與中間設備進行LACP MAD檢測。
[DeviceA] interface gigabitethernet 1/0/1 [DeviceA-GigabitEthernet1/0/1] port link-aggregation group 2 [DeviceA-GigabitEthernet1/0/1] quit [DeviceA] interface gigabitethernet 2/0/1 [DeviceA-GigabitEthernet2/0/1] port link-aggregation group 2
(5)中間設備Device C的配置,Device C作為一台中間設備需要支持LACP功能,用來轉發、處理LACP協議報文,協助Device A和Device B進行多Active檢測。從節約成本的角度考慮,使用一台支持LACP功能的交換機即可。
# 創建一個動態聚合端口
<DeviceC> system-view [DeviceC] interface bridge-aggregation 2 [DeviceC-Bridge-Aggregation2] link-aggregation mode dynamic [DeviceC-Bridge-Aggregation2] quit
# 在聚合端口中添加成員端口GigabitEthernet1/0/1和GigabitEthernet1/0/2,用於進行LACP MAD檢測。
[DeviceC] interface gigabitethernet 1/0/1 [DeviceC-GigabitEthernet1/0/1] port link-aggregation group 2 [DeviceC-GigabitEthernet1/0/1] quit [DeviceC] interface gigabitethernet 1/0/2 [DeviceC-GigabitEthernet1/0/2] port link-aggregation group 2
