天天看點

H3C裝置——IRF2應用

IRF2應用

文章目錄

    • IRF2應用
      • 一、IRF 2.0概述
        • 1、IRF(智能彈性架構)
        • 2、IRF的基本概念
      • 二、IRF配置思路和步驟
        • 1、配置裝置編号
        • 2、修改IRF優先級為5
        • 3、建立IRF端口,并綁定
        • 4、激活IRF端口配置
      • 三、配置LACP MAD檢測
        • 1、建立兩個動态聚合端口,并配置trunk
        • 2、建立相應的聚合端口組,并配置trunk
        • 3、在聚合接口上添加成員,并配置trunk
      • 四、檢視IRF和MAD配置的顯示和維護資訊
        • 1、檢視裝置的IRF配置資訊
        • 2、檢視IRF的端口資訊
        • 3、檢視IRF的拓撲資訊
        • 4、檢視目前MAD的狀态資訊
        • 5、檢視LACP的鍊路聚合資訊

一、IRF 2.0概述

1、IRF(智能彈性架構)

它的核心思想是将多台裝置通過IRF實體端口連接配接在—起進行必要的配置後,虛拟化成 —台分布式裝置。使用這種虛拟化技術可以集合多台裝置的硬體資源和軟體處理能力實作多台裝置的協同工作統—管理和不間斷維護。

2、IRF的基本概念

1、角色

IRF中每台裝置都稱為成員裝置 ,成員裝置按照功能不同分為兩種角色。

Master負責管理整個IRF。

Slave作為Master的備份裝置運作。當Master故障時系統會自動從Slave中選舉一個新的Master接替原Master工作。

Master和Slave均由成員裝置選舉産生。—個IRF中同時隻能存在—台Master,其他成員裝置都是Slave。

2、IRF端口

— 種專用于IRF的邏輯接口,分為IRF-Port1和IRF-Port2, 需要和IRF實體端口綁定之後才能生效。

3、IRF 實體端口

裝置上可以用于IRF連接配接的實體端口。 IRF實體端口可能是IRF專用接口以太網接口或者光口。

二、IRF配置思路和步驟

1、配置裝置編号

[sw2]irf member 1 renumber 2     //更改裝置編号為2
Renumbering the member ID may result in configuration change or loss. Continue?[Y/N]:y
[sw2]save     //儲存
The current configuration will be written to the device. Are you sure? [Y/N]:y
Please input the file name(*.cfg)[flash:/startup.cfg]
(To leave the existing filename unchanged, press the enter key):
Validating file. Please wait...
Saved the current configuration to mainboard device successfully.
[sw2]reboot     //重新開機裝置以啟動設定
           

2、修改IRF優先級為5

[sw1]irf member 1 priority 5     //讓其在競選Master時獲勝
           

3、建立IRF端口,并綁定

[sw1]int Ten-GigabitEthernet 1/0/49
[sw1-Ten-GigabitEthernet1/0/49]shutdown
[sw1-Ten-GigabitEthernet1/0/49]quit
[sw1]irf-port 1/2     //建立裝置的IRF端口1
[sw1-irf-port1/2]port group interface Ten-GigabitEthernet 1/0/49     //與實體端口Ten-GigabitEthernet 1/0/49綁定
You must perform the following tasks for a successful IRF setup:
Save the configuration after completing IRF configuration.
Execute the "irf-port-configuration active" command to activate the IRF ports.
[sw1-irf-port1/2]quit
[sw1]int Ten-GigabitEthernet 1/0/49
[sw1-Ten-GigabitEthernet1/0/49]un sh
[sw1-Ten-GigabitEthernet1/0/49]quit
[sw1]save
The current configuration will be written to the device. Are you sure? [Y/N]:y
Please input the file name(*.cfg)[flash:/startup.cfg]
(To leave the existing filename unchanged, press the enter key):
flash:/startup.cfg exists, overwrite? [Y/N]:y
Validating file. Please wait...
Saved the current configuration to mainboard device successfully.
           
[sw2]int Ten-GigabitEthernet 2/0/49     
[sw2-Ten-GigabitEthernet2/0/49]shutdown
[sw2-Ten-GigabitEthernet2/0/49]quit
[sw2]irf-port 2/1    //建立裝置的IRF端口2
[sw2-irf-port2/1]port group interface Ten-GigabitEthernet 2/0/49    //與實體端口Ten-GigabitEthernet 2/0/49綁定
You must perform the following tasks for a successful IRF setup:
Save the configuration after completing IRF configuration.
Execute the "irf-port-configuration active" command to activate the IRF ports.
[sw2-irf-port2/1]quit
[sw2]int Ten-GigabitEthernet 2/0/49
[sw2-Ten-GigabitEthernet2/0/49]un sh
[sw2-Ten-GigabitEthernet2/0/49]quit
[sw2]save
The current configuration will be written to the device. Are you sure? [Y/N]:y
Please input the file name(*.cfg)[flash:/startup.cfg]
(To leave the existing filename unchanged, press the enter key):
flash:/startup.cfg exists, overwrite? [Y/N]:y
Validating file. Please wait...
Saved the current configuration to mainboard device successfully.
           

4、激活IRF端口配置

[sw1]irf-port-configuration active
           
[sw2]irf-port-configuration active
           

三、配置LACP MAD檢測

1、建立兩個動态聚合端口,并配置trunk

[sw1]interface Bridge-Aggregation 2
[sw1-Bridge-Aggregation2]port link trunk
[sw1-Bridge-Aggregation2]port trunk permit vlan all
[sw1-Bridge-Aggregation2]link-aggregation mode dynamic
[sw1-Bridge-Aggregation2]mad enable
You need to assign a domain ID (range: 0-4294967295)
[Current domain is: 0]:
The assigned domain ID is: 0
MAD LACP only enable on dynamic aggregation interface.
[sw1-Bridge-Aggregation2]quit
           
[sw1]int Bridge-Aggregation 3
[sw1-Bridge-Aggregation3]port link trunk
[sw1-Bridge-Aggregation3]port trunk permit vlan all
[sw1-Bridge-Aggregation3]link-aggregation mode dynamic
[sw1-Bridge-Aggregation3]mad enable
You need to assign a domain ID (range: 0-4294967295)
[Current domain is: 0]:
The assigned domain ID is: 0
MAD LACP only enable on dynamic aggregation interface.
[sw1-Bridge-Aggregation3]quit
           

2、建立相應的聚合端口組,并配置trunk

[SW3]interface Bridge-Aggregation 2
[SW3-Bridge-Aggregation2]port link trunk
[SW3-Bridge-Aggregation2]port trunk permit vlan all
[SW3-Bridge-Aggregation2]link-aggregation mode dynamic
[SW3-Bridge-Aggregation2]quit
           

3、在聚合接口上添加成員,并配置trunk

[sw1]interface GigabitEthernet 1/0/1
[sw1-GigabitEthernet1/0/1]port link-type trunk
[sw1-GigabitEthernet1/0/1]port trunk permit vlan all
[sw1-GigabitEthernet1/0/1]port link-aggregation group 2    //加入2組(要相應的組号)
[sw1-GigabitEthernet1/0/1]quit
           

四、檢視IRF和MAD配置的顯示和維護資訊

1、檢視裝置的IRF配置資訊

[sw1]display irf
MemberID    Role    Priority  CPU-Mac         Description
 *+1        Master  5         2c63-c480-0304  ---
   2        Standby 1         2c63-c8c5-0404  ---
--------------------------------------------------
 * indicates the device is the master.
 + indicates the device through which the user logs in.

 The bridge MAC of the IRF is: 2c63-c480-0300
 Auto upgrade                : yes
 Mac persistent              : 6 min
 Domain ID                   : 0
           
字段 描述
Switch 本IRF中成員裝置的編号(如果編号前帶"*",表示該裝置是Master裝置;如果編号前帶"+",表示該裝置是使用者目前登入的、正在操作的裝置)
Role 本IRF中成員裝置的角色,取值可能如下:Slave: 備用裝置;Master: 主用裝置;Slave Wait: 正在加入IRF;Loading: 正在自動加載系統啟動檔案
Priority 成員裝置的優先級
CPU-MAC 裝置的CPUMAC位址
Description 裝置的描述資訊(沒有描述資訊時,Description字段顯示為"-----,。如果描述資訊較多,無法在終端上完整顯示,則以“…”結尾,省略後面的資訊
Bridge MAC of the IRF is RF的橋MAC位址
Auto upgrade 是否使能自動加載系統啟動檔案功能
MAC persistent 是否使能IRF橋MAC保留功能(6min表示IRF的橋MAC位址保留時間為6 min, always表示IRF的橋MAC位址永久保留不改變,no表示立即改變IRF的橋MAC位址
Domain ID RF的域編号(當網絡中存在多個IRF時, 用來唯 一 辨別 一 個IRF

2、檢視IRF的端口資訊

[sw1]display irf configuration
 MemberID NewID    IRF-Port1                     IRF-Port2
 1        1        disable                       Ten-GigabitEthernet1/0/49
 2        2        Ten-GigabitEthernet2/0/49     disable
           
字段 描述
MemberID 成員編号
NewID 裝置重新開機後将會使用的成員編号
IRF-Port1 裝置使用的IRF端口1的配置,即與IRF端口1綁定的實體端口
IRF-Port2 裝置使用的IRF端口2的配置,即與IRF端口1綁定的實體端口

3、檢視IRF的拓撲資訊

[sw1]display irf topology
                              Topology Info
 -------------------------------------------------------------------------
               IRF-Port1                IRF-Port2
 MemberID    Link       neighbor      Link       neighbor    Belong To
 1           DIS        ---           UP         2           2c63-c480-0304
 2           UP         1             DIS        ---         2c63-c480-0304
           
字段 描述
Switch 成員編号
IRF-Port1 IRF-Port1的資訊, 包括Link、 member和neighbor資訊
IRF-Port2 IRF-Port2的資訊, 包括Link、 member和neighbor資訊
Belong To 所屬IRF, 用目前IRF中Master裝置的CPU MAC位址來表示
Link IRF端口的鍊路狀态, 包括: UP:鍊路up;DOWN: 鍊路down;DIS: 沒有使能該IRF端口
neighbor 與該IRF端口直連的裝置的成員編号

4、檢視目前MAD的狀态資訊

[sw1]display mad
MAD ARP disabled.
MAD ND disabled.
MAD LACP enabled.
MAD BFD disabled.
           
[sw1]display mad verbose
Multi-active recovery state: No
Excluded ports (user-configured):
Excluded ports (system-configured):
  Ten-GigabitEthernet1/0/49
  Ten-GigabitEthernet2/0/49
MAD ARP disabled.
MAD ND disabled.
MAD LACP enabled interface: Bridge-Aggregation2
  MAD status                : Normal
  Member ID    Port                                    MAD status
  1            GigabitEthernet1/0/1                    Normal
  2            GigabitEthernet2/0/1                    Normal
MAD LACP enabled interface: Bridge-Aggregation3
  MAD status                : Normal
  Member ID    Port                                    MAD status
  1            GigabitEthernet1/0/2                    Normal
  2            GigabitEthernet2/0/2                    Normal
MAD BFD disabled.
           
字段 描述
MAD ARP enabled 關閉了ARPMAD檢測功能
MAD ND enabled 關閉了了NDMAD檢測功能
Excluded ports C configurable) 使用者配置的保留接口
Multi-active recovery state 目前IRF是否被MAD功能設定為Recovery狀态
MAD LACP enabled interface: Bridge-Aggregation2 使用了LACPMAD的聚合口
MAD LACP enabled interface: Bridge-Aggregation3 使用了LACPMAD的聚合口

5、檢視LACP的鍊路聚合資訊

[sw1]display link-aggregation verbose
           

繼續閱讀