08-IRF快速配置指南
本章節下載 (260.64 KB)
IRF快速配置指南
Copyright © 2024 bobty下载软件 版權所有,保留一切權利。
非經本公司書麵許可,任何單位和個人不得擅自摘抄、複製本文檔內容的部分或全部,並不得以任何形式傳播。
除bobty下载软件 的商標外,本手冊中出現的其它公司的商標、產品標識及商品名稱,由各自權利人擁有。
本文檔中的信息可能變動,恕不另行通知。
目 錄
本案例介紹兩台成員設備的IRF的配置方法。
Device A為公司的核心設備,但由於公司網絡規模日益增大,Device A單台設備的轉發能力已無法達到公司網絡的需求。為了拓展核心設備的轉發能力,又盡量不改變現有網絡。現公司希望增加Device B,與Device A組成IRF,來滿足當前網絡的需求。
圖1 兩台成員設備的IRF典型配置組網圖
配置思路如下,數據規劃請參見表1:
(1) 配置成員編號
不同成員設備需要配置不同的成員編號。修改成員編號的配置需要重啟設備後生效。
(2) 配置成員優先級
在主設備選舉過程中,優先級數值大的成員設備將優先被選舉成為主設備。
(3) 配置IRF物理端口
(4) 保存配置
(5) 連接IRF物理鏈路
(6) 激活IRF端口配置
設備 |
成員編號 |
成員優先級 |
IRF端口及其綁定的物理端口 |
Device A |
1(缺省) |
32 |
IRF端口:irf-port 1/2 IRF物理接口: · Ten-GigabitEthernet 1/0/25 · Ten-GigabitEthernet 1/0/26 |
Device B |
2 |
1(缺省) |
IRF端口:irf-port 2/1 IRF物理接口: · Ten-GigabitEthernet 2/0/25 · Ten-GigabitEthernet 2/0/26 |
與IRF-Port1口綁定的IRF物理端口隻能和鄰居成員設備IRF-Port2口上綁定的IRF物理端口相連,本設備上與IRF-Port2口綁定的IRF物理端口隻能和鄰居成員設備IRF-Port1口上綁定的IRF物理端口相連。否則,不能形成IRF。
(1) Device A保留缺省編號為1,不需要進行配置
(2) 創建IRF端口2,並將它與物理端口Ten-GigabitEthernet 1/0/25和Ten-GigabitEthernet 1/0/26綁定
<DeviceA> system-view
[DeviceA] interface ten-gigabitethernet 1/0/25
[DeviceA-Ten-GigabitEthernet1/0/25] shutdown
[DeviceA-Ten-GigabitEthernet1/0/25] quit
[DeviceA] interface ten-gigabitethernet 1/0/26
[DeviceA-Ten-GigabitEthernet1/0/26] shutdown
[DeviceA-Ten-GigabitEthernet1/0/26] quit
[DeviceA] irf-port 1/2
[DeviceA-irf-port1/2] port group interface ten-gigabitethernet1/0/25
[DeviceA-irf-port1/2] port group interface ten-gigabitethernet1/0/26
[DeviceA-irf-port1/2] quit
[DeviceA] interface ten-gigabitethernet 1/0/25
[DeviceA-Ten-GigabitEthernet1/0/25] undo shutdown
[DeviceA-Ten-GigabitEthernet1/0/25] quit
[DeviceA] interface ten-gigabitethernet 1/0/26
[DeviceA-Ten-GigabitEthernet1/0/26] undo shutdown
[DeviceA-Ten-GigabitEthernet1/0/26] quit
(3) 配置Device A的成員優先級為32,以保證其成為IRF中的主設備。
[DeviceA] irf member 1 priority 32
(4) 保存配置
[DeviceA] save force
(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] quit
<DeviceB> reboot
(2) 創建設備的IRF端口1,並將它與物理端口Ten-GigabitEthernet 2/0/25和Ten-GigabitEthernet 2/0/26綁定
[DeviceB] interface ten-gigabitethernet 2/0/25
[DeviceB-Ten-GigabitEthernet2/0/25] shutdown
[DeviceB-Ten-GigabitEthernet2/0/25] quit
[DeviceB] interface ten-gigabitethernet 2/0/26
[DeviceB-Ten-GigabitEthernet2/0/26] shutdown
[DeviceB-Ten-GigabitEthernet2/0/26] quit
[DeviceB] irf-port 2/1
[DeviceB-irf-port2/1] port group interface ten-gigabitethernet2/0/25
[DeviceB-irf-port2/1] port group interface ten-gigabitethernet2/0/26
[DeviceB-irf-port2/1] quit
[DeviceB] interface ten-gigabitethernet 2/0/25
[DeviceB-Ten-GigabitEthernet2/0/25] undo shutdown
[DeviceB-Ten-GigabitEthernet2/0/25] quit
[DeviceB] interface ten-gigabitethernet 2/0/26
[DeviceB-Ten-GigabitEthernet2/0/26] undo shutdown
[DeviceB-Ten-GigabitEthernet2/0/26] quit
(3) 保存配置
[DeviceB] save force
(4) 參照1.2 圖1和端口連接表連接Device A和Device B之間的IRF端口
# 激活DeviceA的IRF端口配置。
[DeviceA] irf-port-configuration active
# 激活DeviceB的IRF端口配置。
[DeviceB] irf-port-configuration active
# 兩台設備間將會進行Master競選,競選失敗的一方將自動重啟,重啟完成後,IRF形成,係統名稱統一為DeviceA。
驗證IRF建立成功:
<DeviceA> display irf
MemberID Slot Role Priority CPU-Mac Description
*+1 0 Master 32 0210-fc01-0000 ---
2 0 Standby 1 0210-fc02-0000 ---
--------------------------------------------------
* indicates the device is the master.
+ indicates the device through which the user logs in.
The Bridge MAC of the IRF is: 3822-d60f-2800
Auto upgrade : yes
Mac persistent : always
Domain ID : 0
Auto merge : yes
從命令行的顯示看,當前兩台設備IRF成功建立。
· Device A:
#
irf-port 1/2
port group interface ten-gigabitethernet1/0/25
port group interface ten-gigabitethernet1/0/26
#
irf member 1 priority 32
irf-port-configuration active
#
· Device B:
#
irf-port 2/1
port group interface ten-gigabitethernet2/0/25
port group interface ten-gigabitethernet2/0/26
#
irf member 1 renumber 2
irf-port-configuration active
#
· 產品配套“虛擬化技術配置指導”中的“IRF”。
· 產品配套“虛擬化技術命令參考”中的“IRF”。
本案例介紹通過BFD MAD檢測IRF的配置方法。
設備Device A和Device B配置IRF,為了防止萬一IRF鏈路故障導致IRF分裂、網絡中存在兩個配置衝突的IRF,需要啟用MAD檢測功能,采用BFD MAD檢測方式來監測IRF的狀態,IRF分裂後,通過分裂檢測機製IRF會檢測到網絡中存在其它處於Active狀態,衝突處理會讓Master成員編號最小的IRF繼續正常工作,其它IRF會遷移到Recovery狀態(表示IRF處於禁用狀態),並關閉Recovery狀態IRF中所有成員設備上除保留端口以外的其它所有物理端口。
圖2 BFD MAD組網連接圖
· BFD MAD和STP功能互斥,用於BFD MAD檢測的端口不能使能STP功能。
· 使能BFD MAD檢測功能的三層接口隻能專用於BFD MAD檢測,不允許運行其它業務。如果配置了其它業務,可能會影響該業務以及BFD MAD檢測功能的運行。
具體配置可參考1 配置兩台成員設備的IRF。
# 創建VLAN 3,並將Device A上的端口GigabitEthernet1/0/1和Device B上的端口GigabitEthernet2/0/1加入VLAN3中。
<IRF> system-view
[IRF] vlan 3
[IRF-vlan3] port gigabitethernet 1/0/1 gigabitethernet 2/0/1
[IRF-vlan3] quit
# 創建VLAN接口3,並配置MAD IP地址。
[IRF] interface vlan-interface 3
[IRF-Vlan-interface3] mad bfd enable
[IRF-Vlan-interface3] mad ip address 192.168.2.1 24 member 1
[IRF-Vlan-interface3] mad ip address 192.168.2.2 24 member 2
[IRF-Vlan-interface3] quit
# 因為BFD MAD和生成樹功能互斥,所以在GigabitEthernet1/0/1和GigabitEthernet2/0/1上關閉生成樹協議。
[IRF] interface gigabitethernet 1/0/1
[IRF-gigabitethernet1/0/1] undo stp enable
[IRF-gigabitethernet1/0/1] quit
[IRF] interface gigabitethernet 2/0/1
[IRF-gigabitethernet2/0/1] undo stp enable
# 當IRF分裂時,在Device A上執行display mad verbose命令,可以看到一台設備Multi-active recovery state為No,Device A正常工作。
<DeviceA> display mad
MAD ARP disabled.
MAD ND disabled.
MAD LACP disabled.
MAD BFD enabled.
<DeviceA> display mad verbose
Multi-active recovery state: No
Excluded ports (user-configured):
Excluded ports (system-configured):
Ten-GigabitEthernet1/1/1
MAD ARP disabled.
MAD ND disabled.
MAD LACP disabled.
MAD BFD enabled interface: Vlan-interface3
MAD status : Faulty
Member ID MAD IP address Neighbor MAD status
1 192.168.2.1/24 2 Faulty
# 當Device B為Recovery狀態時,使用display interface brief down查看Device B端口時發現端口全部被關閉,狀態為mad shutdown。
<DeviceB> display interface brief down
Brief information on interfaces in route mode:
Link: ADM - administratively down; Stby - standby
Interface Link Cause
GE2/0/2 DOWN MAD ShutDown
GE2/0/3 DOWN MAD ShutDown
#
vlan 3
port gigabitethernet 1/0/1 gigabitethernet 2/0/1
#
interface vlan-interface 3
mad bfd enable
mad ip address 192.168.2.1 24 member 1
mad ip address 192.168.2.2 24 member 2
#
interface gigabitethernet 1/0/1
undo stp enable
#
interface gigabitethernet 2/0/1
undo stp enable
#
· 產品配套“虛擬化技術配置指導”中的“IRF”。
· 產品配套“虛擬化技術命令參考”中的“IRF”。
不同款型規格的資料略有差異, 詳細信息請向具體銷售和400谘詢。H3C保留在沒有任何通知或提示的情況下對資料內容進行修改的權利!