H3C_IRF2配置案例

S7506交換機實現交換機虛擬化的詳細配置


一、升級設備到最新版本,重啓多次檢測設備是否正常,主備切換測試

二、設備的虛擬化配置

拓撲圖如下

 

 

 

採用BFD MAD檢測方式
配置步驟:
(1) 7506 A和7506 B不連堆疊線,分別上電,分別配置

# 配置Device A的成員編號爲1,創建IRF端口2,並將它與物理端口Ten-GigabitEthernet8/0/1,Ten-GigabitEthernet8/0/2綁定。
<Sysname> system-view
[Sysname] irf member 1 //配置成員編號
[Sysname] irf priority 10 //配置該設備的優先級
[Sysname] irf-port 2 //創建IRF端口
[Sysname-irf-port2] port group interface ten-gigabitethernet 8/0/1 //將IRF端口與物理端口綁定
[Sysname-irf-port2] port group interface ten-gigabitethernet 8/0/2
[Sysname-irf-port2] quit

# 將當前配置保存到下次啓動配置文件。
[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...


(2)       配置Device B

# 配置Device B的成員編號爲2,創建IRF端口1,並將它與物理端口Ten-GigabitEthernet8/0/1,Ten-GigabitEthernet8/0/2綁定。
<Sysname> system-view
[Sysname] irf member 2
 Info: Member ID change will take effect after the switch reboots and operates in IRF mode.
[Sysname] irf-port 1
[Sysname-irf-port1] port group interface ten-gigabitethernet 8/0/1
[Sysname-irf-port1] port group interface ten-gigabitethernet 8/0/2
[Sysname-irf-port1] quit

# 將當前配置保存到下次啓動配置文件。
[Sysname] quit
<Sysname> save

#將兩臺設備IRF接口連接好堆疊線纜。

# 將設備的運行模式切換到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...

 

(3)配置BFD MAD檢測
# 創建一個動態聚合接口,並使能BFD MAD檢測功能。
<Sysname> system-view

# 創建VLAN 999,並將Device A(成員編號爲1)上的端口1/2/0/12和Device B(成員編號爲2)上的端口2/2/0/12加入VLAN中。
<DeviceA> system-view
[DeviceA] vlan 999
[DeviceA-vlan999] port gigabitethernet 1/2/0/12 gigabitethernet 2/2/0/12
[DeviceA-vlan999] quit

# 創建VLAN接口999,並配置MAD IP地址。
[DeviceA] interface vlan-interface 999
[DeviceA-Vlan-interface999] mad bfd enable
[DeviceA-Vlan-interface999] mad ip address 172.16.255.253 255.255.255.0 member 1
[DeviceA-Vlan-interface999] mad ip address 172.16.255.254 255.255.255.0 member 2
[DeviceA-Vlan-interface999] quit

# 因爲BFD MAD和MSTP功能互斥,所以在GigabitEthernet1/2/0/12和GigabitEthernet2/2/0/12上關閉MSTP協議。
[DeviceA] interface gigabitethernet 1/2/0/12
[DeviceA-gigabitethernet-1/2/0/12] undo stp enable
[DeviceA-gigabitethernet-1/2/0/12] quit
[DeviceA] interface gigabitethernet 2/2/0/12
[DeviceA-gigabitethernet-2/2/0/12] undo stp enable
[DeviceA-gigabitethernet-2/2/0/12] quit

交換機虛擬化配置完成。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章