H3C-S7506X-IRF配置教程(BFD MAD檢測)

序言:

測試的2臺H3C-S7506交換機被恢復出廠設定了,因業務需求2臺S7506X交換機做堆疊設定,整個過程下來,發現這種框式的交換機做堆疊比盒式的更簡單和方便,下面將整個配置思路、部署過程和驗證結果與大家分享一下。

一、實驗環境

兩臺H3C-S7506交換機,堆疊線2根、BFD檢測線1根。

二、網路拓撲

H3C-S7506X-IRF配置教程(BFD MAD檢測)

ps:拓撲僅供參考,實驗環境堆疊線是2組。

三、 配置思路

·Device A處於區域網的匯聚層,為了將匯聚層的轉發能力提高一倍,需要另外增加一臺裝置Device B。

·鑑於IRF技術具有管理簡便、網路擴充套件能力強、可靠性高等優點,所以本例使用IRF技術構建網路匯聚層(即在Device A和Device B上配置IRF功能),接入層裝置透過聚合雙鏈路上行。

·為了防止萬一IRF鏈路故障導致IRF分裂、網路中存在兩個配置衝突的IRF,需要啟用MAD檢測功能。因為成員裝置比較少,我們採用BFD MAD檢測方式來監測IRF的狀態。

堆疊口:0/0/39和0/0/40

BFD檢測口:5/0/1

四、配置步驟

1、配置Device A

(master)

# 設定Device A的成員編號為1,建立IRF埠2,並將它與物理埠Ten-GigabitEthernet0/0/39-Ten-GigabitEthernet0/0/40繫結。

system-view

[H3C]

irf member 1

[H3C]

irf priority 32

[H3C]

irf-port 2

[H3C-irf-port2]

port group interface ten-gigabitethernet 0/0/39

[H3C-irf-port2]

port group interface ten-gigabitethernet 0/0/40

[H3C-irf-port2] quit

ps:要保證39和40兩個介面是啟用狀態。

# 將當前配置儲存到下次啟動配置檔案。

[H3C] quit

save

# 將裝置的執行模式切換到IRF模式。

system-view

[H3C]

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

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。

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

Now rebooting, please wait。。。

裝置重啟後Device A組成了只有一臺成員裝置的IRF。

2、配置Device B

(standby)

# 配置Device B的成員編號為2,建立IRF埠1,並將它與物理埠Ten-GigabitEthernet0/0/39-Ten-GigabitEthernet0/0/40繫結。

system-view

[H3C]

irf member 2

[H3C]

irf-port 1

[H3C-irf-port2] port group interface ten-gigabitethernet 0/0/39

[H3C-irf-port2] port group interface ten-gigabitethernet 0/0/40

[H3C-irf-port1] quit

ps:要保證39和40兩個介面是啟用狀態。

# 將當前配置儲存到下次啟動配置檔案。

[H3C] quit

save

# 堆疊線物理連線:

1/0/0/39對應2/0/0/39,1/0/0/40對應2/0/0/40

# 將裝置的執行模式切換到IRF模式。

system-view

[H3C]

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

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。

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

Now rebooting, please wait。。。

裝置B重啟後與裝置A形成IRF。

3、配置BFD MAD檢測

# 修改IRF鏈路down延遲上報時間為。

system-view

[H3C] irf link-delay 0

# 建立VLAN 999,並將Device A(成員編號為1)上的埠1/5/0/1和Device B(成員編號為2)上的埠2/5/0/1加入VLAN中。

[H3C] vlan 999

[H3C-vlan999] port gigabitethernet 1/5/0/1 gigabitethernet 2/5/0/1

[H3C-vlan999] quit

# 建立VLAN介面999,並配置MAD IP地址。

[H3C] interface vlan-interface 999

[H3C-Vlan-interface999] mad bfd enable

[H3C-Vlan-interface999] mad ip address 192。168。99。1 24 member 1

[H3C-Vlan-interface999] mad ip address 192。168。99。2 24 member 2

[H3C-Vlan-interface999] quit

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

[H3C] interface gigabitethernet 1/5/0/1

[H3C-gigabitethernet-1/5/0/1] undo stp enable

[H3C-gigabitethernet-1/5/0/1] quit

[H3C] interface gigabitethernet 2/5/0/1

[H3C-gigabitethernet-2/5/0/1] undo stp enable

五、驗證結果

dis irf 檢視irf資訊,包含當前連線的是master還是standby,主的優先順序是32,備用預設是1。

H3C-S7506X-IRF配置教程(BFD MAD檢測)

dis irf configuration檢視irf配置資訊,包含主member號為1,port號為2,內有1/0/0/39和1/0/0、40埠;備用member號為2,port號為1,內有2/0/0/39和2/0/0/40埠。

dis irf link 檢視irf資訊,包含member號、port號和包含的介面及狀態。

一般檢視如上述顯示,表示IRF是正常工作的。

BFD工作原理:

1、當IRF正常執行時,只有主裝置上配置的MAD IP地址生效,從裝置上配置的MAD IP地址不生效,BFD會話處於down狀態;

2、分裂時變為兩臺裝置,bfd會瞬時up;mad檢測就會生效會讓其中一臺裝置失效,備機裝置irf變為recovery狀態,禁用埠後,bfd狀態就又會變為down

dis bfd session 檢視bfd情況,包含源地址192。168。99。1(主上面的介面地址)和192。168。99。2(備機上的介面地址)和當前狀態是DOWN。

bfd檢測機制:一直在ping對端MAD地址

第一種情況:IRF正常工作時,交換機上ping192。168。99。2是無法ping通的,bfd狀態是down;

第二種情況:IRF異常時,分裂成2個IRF,這樣ping192。168。99。2就能通了,bfd狀態就是up,然後mad將備機裝置變成recovery狀態,表示不工作;這樣只有主裝置正常工作。

dis mad verbose檢視mad狀態,包含IRF堆疊線介面、BFD介面和vlan,MAD BFD是啟用狀態,兩臺裝置的MAD IP地址等資訊。

H3C-S7506X-IRF配置教程(BFD MAD檢測)

六、總結

H3C交換機框式的相比較盒式的更容易配置IRF,這是因為框式裝置有IRF模式,想配置irf直接啟用變成IRF模式就好了;另外,BFD MAD檢測機制要理解,判斷IRF是否工作正常,多敲命令。

您點的每個贊,我都認真當成了喜歡

TAG: H3CIRFdeviceMAD