• 全部
  • 經驗案例
  • 典型配置
  • 技術公告
  • FAQ
  • 漏洞說明
  • 全部
  • 全部
  • 大數據引擎
  • 知了引擎
產品線
搜索
取消
案例類型
發布者
是否解決
是否官方
時間
搜索引擎
匹配模式
高級搜索

S5000PV3/5130/5150係列交換機IRF2堆疊配置方法(命令行版)

  • 0關注
  • 4收藏 8854瀏覽
粉絲:11人 關注:0人

組網及說明

1.1 適用產品係列

本案例適用於 S5024PV3-EI-HPWRS5048PV3-EIS5120V2-52P-LIS5120V2-28P-SIS5130-52S-EIS5130S-28S-EIS5150X-16ST-EIS5000PV3S5120V2S5130S5150係列支持IRF2款型的V7交換機,具體型號是否支持,對堆疊的物理連線、模塊是否有要求可以參考對應型號交換機操作手冊中的IRF配置指導。

1.2 配置需求及實現效果

由於網絡規模迅速擴大,當前中心交換機(Device A)轉發能力已經不能滿足需求,需要另外增加一台設備Device B。現需要將兩台設備配置IRF2堆疊,將網絡轉發能力提高一倍,並實現網絡易管理、易維護。Device ADevice B分別使用自帶的兩個萬兆口做堆疊口。也可以隻用一個接口堆疊,根據實際情況而定。

組網圖


配置步驟

3.1 配置IRF2

3.1.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]

3.1.2 配置堆疊口

#將兩台設備斷電後,按組網圖所示連接IRF鏈路,然後將兩台設備上電Device A上創建設備的IRF端口2,與物理端口Ten-GigabitEthernet1/0/25 Ten-GigabitEthernet1/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/25quit

[DeviceA] interface ten-gigabitethernet 1/0/26

[DeviceA-Ten-GigabitEthernet1/0/26] undo shutdown

[DeviceA-Ten-GigabitEthernet1/0/26quit

[DeviceA] save force

Device B上創建設備的IRF端口1,與物理端口Ten-GigabitEthernet2/0/25Ten-GigabitEthernet2/0/26綁定,並保存配置。

<DeviceB> system-view

[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/25quit

[DeviceB] interface ten-gigabitethernet 2/0/26

[DeviceB-Ten-GigabitEthernet2/0/26] undo shutdown

[DeviceB-Ten-GigabitEthernet2/0/26quit

[DeviceB] save force

激活DeviceAIRF端口配置。

[DeviceA] irf-port-configuration active

激活DeviceBIRF端口配置。

[DeviceB] irf-port-configuration active

#兩台設備間將會進行Master競選,競選失敗的一方將自動重啟,重啟完成後,IRF形成,係統名稱統一為DeviceA

3.2 BFD分裂檢測(選配)

IRF設備一旦分裂,會變成兩台配置完全相同的設備,導致業務轉發有問題。為了避免此類問題出現,可以配置分裂檢測。設備一旦檢測到IRF2分裂,則自動關閉備設備的所有非保留端口。在此介紹BFD MAD分裂檢測配置方法。使用網線Device A上的端口GigabitEthernet1/0/1Device B上的端口GigabitEthernet2/0/1連接起來。

創建VLAN 3,並將Device A上的端口GigabitEthernet1/0/1Device B上的端口GigabitEthernet2/0/1加入VLAN中。

<DeviceA> system-view

[DeviceA] vlan 3

[DeviceA-vlan3] port gigabitethernet 1/0/1 gigabitethernet 2/0/1

[DeviceA-vlan3] quit

創建VLAN接口3,並配置MAD IP地址。

[DeviceA] interface vlan-interface 3

[DeviceA-Vlan-interface3] mad bfd enable

[DeviceA-Vlan-interface3] mad ip address 192.168.2.1 24 member 1

[DeviceA-Vlan-interface3] mad ip address 192.168.2.2 24 member 2

[DeviceA-Vlan-interface3] quit

按組網圖所示連接BFD MAD鏈路。

因為BFD MAD和生成樹功能互斥,所以在GigabitEthernet1/0/1GigabitEthernet2/0/1上關閉生成樹協議。

[DeviceA] interface gigabitethernet 1/0/1

[DeviceA-Gigabitethernet1/0/1] undo stp enable

[DeviceA-Gigabitethernet1/0/1] quit

[DeviceA] interface gigabitethernet 2/0/1

[DeviceA-Gigabitethernet2/0/1] undo stp enable


配置關鍵點

1IRF-port端口編號說明,irf-port 1/2中,第一個數字代表的是設備成員編號,第二個數字是接口編號。堆疊要求使用邏輯端口1對接邏輯端口2。即,如若第一台配置irf-port1/2,則第二台需要是用irf-port2/1對接。如若第一台使用irf-port1/1,則第二台需要配置irf-port2/2

2)設備配置好IRF2配置後,要先保存再激活配置。


該案例對您是否有幫助:

您的評價:1

若您有關於案例的建議,請反饋:

作者在2019-06-10對此案例進行了修訂
0 個評論

該案例暫時沒有網友評論

編輯評論

舉報

×

侵犯我的權益 >
對根叔知了社區有害的內容 >
辱罵、歧視、挑釁等(不友善)

侵犯我的權益

×

泄露了我的隱私 >
侵犯了我企業的權益 >
抄襲了我的內容 >
誹謗我 >
辱罵、歧視、挑釁等(不友善)
騷擾我

泄露了我的隱私

×

您好,當您發現根叔知了上有泄漏您隱私的內容時,您可以向根叔知了進行舉報。 請您把以下內容通過郵件發送到pub.zhiliao@h3c.com 郵箱,我們會盡快處理。
  • 1. 您認為哪些內容泄露了您的隱私?(請在郵件中列出您舉報的內容、鏈接地址,並給出簡短的說明)
  • 2. 您是誰?(身份證明材料,可以是身份證或護照等證件)

侵犯了我企業的權益

×

您好,當您發現根叔知了上有關於您企業的造謠與誹謗、商業侵權等內容時,您可以向根叔知了進行舉報。 請您把以下內容通過郵件發送到 pub.zhiliao@h3c.com 郵箱,我們會在審核後盡快給您答複。
  • 1. 您舉報的內容是什麼?(請在郵件中列出您舉報的內容和鏈接地址)
  • 2. 您是誰?(身份證明材料,可以是身份證或護照等證件)
  • 3. 是哪家企業?(營業執照,單位登記證明等證件)
  • 4. 您與該企業的關係是?(您是企業法人或被授權人,需提供企業委托授權書)
我們認為知名企業應該坦然接受公眾討論,對於答案中不準確的部分,我們歡迎您以正式或非正式身份在根叔知了上進行澄清。

抄襲了我的內容

×

原文鏈接或出處

誹謗我

×

您好,當您發現根叔知了上有誹謗您的內容時,您可以向根叔知了進行舉報。 請您把以下內容通過郵件發送到pub.zhiliao@h3c.com 郵箱,我們會盡快處理。
  • 1. 您舉報的內容以及侵犯了您什麼權益?(請在郵件中列出您舉報的內容、鏈接地址,並給出簡短的說明)
  • 2. 您是誰?(身份證明材料,可以是身份證或護照等證件)
我們認為知名企業應該坦然接受公眾討論,對於答案中不準確的部分,我們歡迎您以正式或非正式身份在根叔知了上進行澄清。

對根叔知了社區有害的內容

×

垃圾廣告信息
色情、暴力、血腥等違反法律法規的內容
政治敏感
不規範轉載 >
辱罵、歧視、挑釁等(不友善)
騷擾我
誘導投票

不規範轉載

×

舉報說明

提出建議

    +

親~登錄後才可以操作哦!

確定

親~檢測到您登陸的賬號未在http://hclhub.h3c.com進行注冊

注冊後可訪問此模塊

跳轉hclhub

你的郵箱還未認證,請認證郵箱或綁定手機後進行當前操作