1. 程式人生 > >使用H3C模擬器HCL完成基礎的IRF實施

使用H3C模擬器HCL完成基礎的IRF實施

步驟1. 確定IRF裝置角色,配置裝置的IRF優先順序和編號
[IRF2]irf member 1 renumber 2 //將IRF2(即SW2)的成員編號設定為2,預設為1
Renumbering the member ID may result in configuration change or loss. Continue?[Y/N]:y
[IRF2]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.
[IRF2]quit
<IRF2>reboot //必須重啟裝置
Start to check configuration with next startup configuration file, please wait.........DONE!
This command will reboot the device. Continue? [Y/N]:y
Now rebooting, please wait...
%Nov 25 22:02:11:207 2018 IRF2 DEV/5/SYSTEM_REBOOT: System is rebooting now.


[H3C]sysname IRF1
[IRF1]irf member 1 priority 32 //設定IRF1(SW1)的IRF優先順序為32,該值已經最大,保證IRF1裝置成為主裝置
[IRF1]int r te 1/0/50 to t 1/0/51
[IRF1-if-range]shu //把交換機互聯介面關閉,這是必須的一部
[IRF1-if-range]quit
[IRF1]irf-port 1/2 //設定IRF1的邏輯介面2
[IRF1-irf-port1/2]port g int te 1/0/50 //把物理介面加入邏輯介面
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.
[IRF1-irf-port1/2]port g int te 1/0/51 //把物理介面加入邏輯介面
[IRF1-irf-port1/2]quit
[IRF1]int r te 1/0/50 to t 1/0/51
[IRF1-if-range]un sh //開啟物理介面

步驟2. Slave裝置加入物理成員介面
[IRF2]int r t 2/0/50 to t 2/0/51
[IRF2-if-range]shu //IRF2裝置重啟後關閉物理介面
[IRF2-if-range]quit
[IRF2]irf-port 2/1 //注意,特別推薦使用交叉互聯,請對比IRF1裝置,否則可能造成堆疊失敗
[IRF2-irf-port2/1]port g int t 2/0/50 //把物理介面加入邏輯介面
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.
[IRF2-irf-port2/1]port g int t 2/0/51 //把物理介面加入邏輯介面
[IRF2-irf-port2/1]quit
[IRF2]int r t 2/0/50 to t 2/0/51
[IRF2-if-range]un shu //開啟物理介面
%Nov 25 22:06:39:426 2018 IRF2 IFNET/3/PHY_UPDOWN: Physical state on the interface Ten-GigabitEthernet2/0/50 changed to up.
%Nov 25 22:06:39:474 2018 IRF2 IFNET/5/LINK_UPDOWN: Line protocol state on the interface Ten-GigabitEthernet2/0/50 changed to up.
%Nov 25 22:06:39:495 2018 IRF2 LLDP/6/LLDP_CREATE_NEIGHBOR: Nearest bridge agent neighbor created on port Ten-GigabitEthernet2/0/50 (IfIndex 179), neighbor's chassis ID is 90c6-26d7-0100, port ID is Ten-GigabitEthernet1/0/50.

%Nov 25 22:06:39:648 2018 IRF2 IFNET/3/PHY_UPDOWN: Physical state on the interface Ten-GigabitEthernet2/0/51 changed to up.
[IRF2-if-range]%Nov 25 22:06:39:659 2018 IRF2 IFNET/5/LINK_UPDOWN: Line protocol state on the interface Ten-GigabitEthernet2/0/51 changed to up.
%Nov 25 22:06:39:663 2018 IRF2 LLDP/6/LLDP_CREATE_NEIGHBOR: Nearest bridge agent neighbor created on port Ten-GigabitEthernet2/0/51 (IfIndex 180), neighbor's chassis ID is 90c6-26d7-0100, port ID is Ten-GigabitEthernet1/0/51.

[IRF2]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.

<IRF1>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.
<IRF1>
步驟3.啟用IRF配置

[IRF1]irf-port-configuration active //請在啟用IRF配置前確保已經儲存配置
[IRF1]%Nov 25 22:08:28:132 2018 IRF1 STM/6/STM_LINK_UP: IRF port 2 came up.
%Nov 25 22:08:45:321 2018 IRF1 STM/4/STM_MERGE: IRF merge occurred.
%Nov 25 22:08:47:660 2018 IRF1 IFNET/3/PHY_UPDOWN: Physical state on the interface Ten-GigabitEthernet1/0/51 changed to down.
%Nov 25 22:08:47:668 2018 IRF1 IFNET/5/LINK_UPDOWN: Line protocol state on the interface Ten-GigabitEthernet1/0/51 changed to down.
%Nov 25 22:08:49:594 2018 IRF1 STM/3/STM_LINK_DOWN: IRF port 2 went down.
%Nov 25 22:08:49:606 2018 IRF1 IFNET/3/PHY_UPDOWN: Physical state on the interface Ten-GigabitEthernet1/0/50 changed to down.
%Nov 25 22:08:49:612 2018 IRF1 IFNET/5/LINK_UPDOWN: Line protocol state on the interface Ten-GigabitEthernet1/0/50 changed to down.

[IRF1]

[IRF2]%Nov 25 22:08:46:254 2018 IRF2 STM/6/STM_LINK_UP: IRF port 1 came up.//已經重啟
<IRF2>system-view //在IRF裝置重啟後,暫時不會完成IRF,此時依舊顯示“IRF2”
System View: return to User View with Ctrl+Z.
[IRF2]int r t 2/0/50 to t 2/0/51
[IRF2-if-range]shu
[IRF2-if-range]und shu //收到關閉,開啟介面。此時可能已經重啟
啟動後,如果成功那麼IRF2會變成IRF1
步驟4,IRF實施完畢後的驗證
[IRF1]display irf
MemberID Role Priority CPU-Mac Description
*+1 Master 32 90c6-26d7-0104 ---
2 Standby 1 90c6-2ea5-0204 ---

  • indicates the device is the master.
  • indicates the device through which the user logs in.

    The bridge MAC of the IRF is: 90c6-26d7-0100
    Auto upgrade : yes
    Mac persistent : 6 min
    Domain ID : 0

[IRF1]dis irf link
Member 1
IRF Port Interface Status
1 disable --
2 Ten-GigabitEthernet1/0/50 UP
Ten-GigabitEthernet1/0/51 UP
Member 2
IRF Port Interface Status
1 Ten-GigabitEthernet2/0/50 UP
Ten-GigabitEthernet2/0/51 DOWN
2 disable --

[IRF1]dis irf topology
Topology Info

           IRF-Port1                IRF-Port2

MemberID Link neighbor Link neighbor Belong To
1 DIS --- UP 2 90c6-26d7-0104
2 UP 1 DIS --- 90c6-26d7-0104
[IRF1]dis irf conf
MemberID NewID IRF-Port1 IRF-Port2
1 1 disable Ten-GigabitEthernet1/0/50
Ten-GigabitEthernet1/0/51
2 2 Ten-GigabitEthernet2/0/50 disable
Ten-GigabitEthernet2/0/51

chassis convert mode irf //切換到IRF工作模式(模擬器不支援)