H3C交换机的irf配置

H3C交换机的irf配置

IRF(智能弹性架构),所谓的堆叠。H3C的IRF一般指的是第二代IRF。
IRF的优点:
1、降低网络复杂度
2、提高网络可靠性
3、提高网络运行效率
注意:
1、 IRF 物理端口必须工作在二层模式下,才能与 IRF 端口进行绑定。
2、与同一个 IRF 端口绑定的多个 IRF 物理端口必须工作在相同模式。
3、IRF 中成员设备间相连的 IRF 物理端口必须配置为同一种工作模式。
SWA和SWB连线如图:在这里插入图片描述
SWA配置:
[SWA]irf member 1 priority 10     #设置优先级10,越大越优先成为主
[SWA]interface range Ten-GigabitEthernet 1/0/51 to Ten-GigabitEthernet 1/0/52
[SWA-if-range]shutdown     #关闭物理端口才可以和逻辑口绑定
[SWA-if-range]quit

[SWA]irf-port 1/1
[SWA-irf-port1/1]port group interface Ten-GigabitEthernet 1/0/51
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.

[SWA-irf-port1/1]quit
[SWA]irf-port 1/2
[SWA-irf-port1/2]port group interface Ten-GigabitEthernet 1/0/52
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.

[SWA-irf-port1/2]quit

[SWA]interface range Ten-GigabitEthernet 1/0/51 to Ten-GigabitEthernet 1/0/52
[SWA-if-range]undo shutdown
[SWA]irf-port-configuration active     #激活IRF配置参数
[SWA]save     #保存,使得下次重启配置生效

SWB配置:

[SWB]irf member 1 priority 5
[SWB]irf member 1 renumber 2     #修改成员ID
[SWB]save
<SWB>reboot     #需要重启一次
Start to check configuration with next startup configuration file, please wait…DONE!
This command will reboot the device. Continue? [Y/N]:y

[SWB]interface range Ten-GigabitEthernet 2/0/51 to Ten-GigabitEthernet 2/0/52
[SWB-if-range]shutdown
[SWB-if-range]quit

[SWB]irf-port 2/1
[SWB-irf-port2/1]port group interface Ten-GigabitEthernet 2/0/51
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.

[SWB-irf-port2/1]quit
[SWB]irf-port 2/2
[SWB-irf-port2/2]port group interface Ten-GigabitEthernet 2/0/52
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.

[SWB-irf-port2/2]quit

[SWB]interface range Ten-GigabitEthernet 2/0/51 to Ten-GigabitEthernet 2/0/52
[SWB-if-range]undo shutdown
[SWB-if-range]quit

[SWB]irf-port-configuration active
<SWB>save

然后将万兆光纤线缆如上图51和51口交叉互联,等待8分钟备机自动重启后就完成了IRF。

[SWA]display irf
MemberID Role Priority CPU-Mac Description
*+1 Master 10 6e2b-a938-0104 —
2 Standby 5 6e2b-ac96-0204 —
--------------------------------------------------
* indicates the device is the master.
+ indicates the device through which the user logs in.

The bridge MAC of the IRF is: 6e2b-a938-0100
Auto upgrade : yes
Mac persistent : 6 min
Domain ID : 0

创建MAD检测:

BFD MAD是通过BFD Session会话建立的原理实现,当BFD MAD会话建立完成时,Master设备的MAD IP处于UP状态。Slave设备的MAD IP处于DOWN状态。当IRF分裂时,Slave设备会变成Master设备,同时MAD IP都处于UP状态,BFD MAD检测生效,这样Member ID大的设备将Shutdown除了IRF端口外的所有端口。这样避免多个地址冲突。
将Ge1/0/48和Ge2/0/48链接,
[SWA]vlan 255
[SWA-vlan255]description IRF_MAD
[SWA-vlan255]port GigabitEthernet 1/0/48
[SWA-vlan255]port GigabitEthernet 2/0/48
[SWA-vlan255]quit

#创建VLAN接口255,并配置MAD IP地址
[SWA]interface Vlan-interface 255
[SWA-Vlan-interface255]mad bfd enable
[SWA-Vlan-interface255]mad ip address 192.168.255.1 24 member 1
[SWA-Vlan-interface255]mad ip address 192.168.255.2 24 member 2
[SWA-Vlan-interface255]quit

[SWA]display bfd session
Total Session Num: 1 Up Session Num: 0 Init Mode: Active

IPv4 Session Working Under Ctrl Mode:

LD/RD SourceAddr DestAddr State Holdtime Interface
129/0 192.168.255.1 192.168.255.2 Down / Vlan255

[SWA]display bfd session verbose
Total Session Num: 1 Up Session Num: 0 Init Mode: Active

IPv4 Session Working Under Ctrl Mode:
Local Discr: 129                            Remote Discr: 0
Source IP: 192.168.255.1             Destination IP: 192.168.255.2
Session State: Down                     Interface: Vlan-interface255
Min Tx Inter: 400ms                       Act Tx Inter: 100ms
Min Rx Inter: 400ms                      Detect Inter: 5000ms
Rx Count: 0                                   Tx Count: 2922
Connect Type: Direct                     Running Up for: 00:00:00
Hold Time: 0ms                              Auth mode: None
Detect Mode: Async                       Slot: 1
Protocol: MAD
Version: 1
Diag Info: No Diagnostic

发布了57 篇原创文章 · 获赞 8 · 访问量 5538

猜你喜欢

转载自blog.csdn.net/zdl244/article/details/103413456
今日推荐