IRF運行模式於配置

設備支持兩種運行模式:IRF模式和獨立運行模式。

  如果設備當前處於獨立運行模式,且需要加入IRF,必須將運行模式切換到IRF模式,才能形成IRF。
  當設備處於IRF模式時,即便只有一臺設備也會形成IRF,也需要耗費一定的系統資源來管理和維護IRF。因此,如果當前組網中設備不需要和別的設備IRF時,建議將運行模式配置爲獨立運行模式。
設備出廠時處於獨立運行模式。修改運行模式,設備會自動重啓使新的模式生效。如果沒有修改運行模式,則下次啓動會延用本次啓動的運行模式。請根據組網需要來配置設備的運行模式。
IRF有兩種配置方式:預配置方式和非預配置方式。採用預配置方式,整個過程設備只需要一次重啓,所以推薦採用預配置的方式配置IRF。
預配置方式是在獨立運行模式的設備上配置IRF端口、成員編號、成員優先級,這些配置不會影響本設備的運行,只有設備切換到IRF模式下才會生效。在組建IRF前,通常使用該方式配置。成員編號必須在獨立運行模式時預配置,設備才能切換到IRF模式,與別的設備組成IRF;將成員優先級配置爲較大值,當多臺設備初次形成IRF時,該設備就能在角色選舉中獲勝,成爲Master;配置IRF端口,以便將運行模式切換到IRF模式後,就能直接和別的設備形成IRF(最終組成IRF只需要一次重啓)。
非預配置方式是在獨立運行模式的設備上配置成員編號,然後切換到IRF模式,再配置IRF端口、成員優先級等相關參數。該配置方式通常用於修改當前配置。比如,將某個成員設備的編號修改爲指定值(請注意修改後的編號需要重啓該成員設備才能生效,而且重啓後會導致原編號相關配置失效);修改成員設備的優先級,讓該設備在下次IRF競選時成爲Master;修改IRF端口的已有綁定關係(刪除某個綁定或者添加新的綁定),IRF端口的配置可能會影響本設備的運行(比如引起IRF分裂、IRF合併)。
TOP:
 

 
配置步驟
配置Device A。
# 設置Device A的成員編號爲1,成員優先級爲20,創建IRF端口2,並將它與物理端口Ten-GigabitEthernet3/0/1綁定。
<Sysname> system-view
[Sysname] irf member 1
[Sysname] irf priority 20
[Sysname] irf-port 2
[Sysname-irf-port 2] port group interface Ten-Gigabitethernet 3/0/1
[Sysname-Ten-GigabitEthernet3/0/1]undo shutdown
將當前配置保存到下次啓動配置文件。
[Sysname] quit
<Sysname> save
將設備的運行模式切換到IRF模式。
<Sysname> system-view
[Sysname] chassis convert mode irf
The device will switch to IRF mode and reboot. You are recommended to save the current running configuration and specify the configuration file for the next startup. Continue? [Y/N]:y
 Do you want to convert the content of the next startup configuration file flash:/startup.cfg to make it available in IRF mode? [Y/N]:y
 Please wait...
 Saving the converted configuration file to the main board succeeded.
Slot 1:
 Saving the converted configuration file succeeded.
 Now rebooting, please wait...
設備重啓後Device A組成了只有一臺成員設備的IRF。
Device B上的配置。
# 配置Device B的成員編號爲2,成員優先級爲10,創建IRF端口1,並將它與物理端口Ten-GigabitEthernet3/0/1綁定。
<Sysname> system-view
[Sysname] irf member 2
[Sysname] irf priority 10
[Sysname] irf-port 1
[Sysname-irf-port 1] port group interface Ten-Gigabitethernet 3/0/1
[Sysname-Ten-GigabitEthernet3/0/1]undo shutdown
# 將當前配置保存到下次啓動配置文件。
[Sysname] quit
<Sysname> save
# 參照圖進行物理連線。
# 將設備的運行模式切換到IRF模式。
<Sysname> system-view
[Sysname] chassis convert mode irf
The device will switch to IRF mode and reboot. You are recommended to save the current running configuration and specify the configuration file for the next startup. Continue? [Y/N]:y
 Do you want to convert the content of the next startup configuration file flash:/startup.cfg to make it available in IRF mode? [Y/N]:y
 Please wait...
 Saving the converted configuration file to the main board succeeded.
Slot 1:
 Saving the converted configuration file succeeded.
 Now rebooting, please wait...
設備B重啓後與設備A形成IRF。
 
配置步驟
設備B重啓後與設備A形成IRF。
配置BFD MAD檢測
# 創建VLAN 3,並將Device A(成員編號爲1)上的端口1/4/0/1和Device B(成員編號爲2)上的端口2/4/0/1加入VLAN中。
<Sysname> system-view
[Sysname] vlan 3
[Sysname-vlan3] port Gigabitethernet 1/4/0/1 Gigabitethernet 2/4/0/1
[Sysname-vlan3] quit
# 創建VLAN接口3,並配置MAD IP地址。
[Sysname] interface vlan-interface 3
[Sysname-Vlan-interface3] mad bfd enable
[Sysname-Vlan-interface3] mad ip add 192.168.2.1 24 chassis 1
[Sysname-Vlan-interface3] mad ip add 192.168.2.2 24 chassis 2
[Sysname-Vlan-interface3] undo shutdown
# 因爲BFD MAD和STP功能互斥,所以在GigabitEthernet1/4/0/1和GigabitEthernet2/4/0/1上關閉MSTP協議。
[Sysname] interface Gigabitethernet 1/4/0/1
[Sysname-Gigabitethernet1/4/0/1] undo stp enable
[Sysname-Gigabitethernet1/4/0/1] undo shutdown
[Sysname] interface Gigabitethernet 2/4/0/1
[Sysname-Gigabitethernet2/4/0/1] undo stp enable
[Sysname-Gigabitethernet2/4/0/1] undo shutdow
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章