简介
本案例介绍两台成员设备的IRF的配置方法
组网需求
Device A为公司的核心设备,但由于公司网络规模日益增大,Device A单台设备的转发能力已无法达到公司网络的需求。为了拓展核心设备的转发能力,又尽量不改变现有网络。现公司希望增加Device B,与Device A组成IRF,来满足当前网络的需求。
图1 两台成员设备的IRF典型配置组网图
配置思路与数据规划
配置思路如下,数据规划请参见表1:
(1) 配置成员编号
不同成员设备需要配置不同的成员编号。修改成员编号的配置需要重启设备后生效。
(2) 配置成员优先级
在主设备选举过程中,优先级数值大的成员设备将优先被选举成为主设备。
(3) 配置IRF物理端口
(4) 保存配置
(5) 连接IRF物理链路
(6) 激活IRF端口配置
表1 数据规划表
配置注意事项
与IRF-Port1口绑定的IRF物理端口只能和邻居成员设备IRF-Port2口上绑定的IRF物理端口相连,本设备上与IRF-Port2口绑定的IRF物理端口只能和邻居成员设备IRF-Port1口上绑定的IRF物理端口相连。否则,不能形成IRF。
配置步骤
Device A的配置
(1) Device A保留缺省编号为1,不需要进行配置
(2) 创建IRF端口2,并将它与物理端口Ten-GigabitEthernet 1/0/25和Ten-GigabitEthernet 1/0/26绑定
<DeviceA> system-view
[DeviceA] interface ten-gigabitethernet 1/0/25
[DeviceA-Ten-GigabitEthernet1/0/25] shutdown
[DeviceA-Ten-GigabitEthernet1/0/25] quit
[DeviceA] interface ten-gigabitethernet 1/0/26
[DeviceA-Ten-GigabitEthernet1/0/26] shutdown
[DeviceA-Ten-GigabitEthernet1/0/26] quit
[DeviceA] irf-port 1/2
[DeviceA-irf-port1/2] port group interface ten-gigabitethernet1/0/25
[DeviceA-irf-port1/2] port group interface ten-gigabitethernet1/0/26
[DeviceA-irf-port1/2] quit
[DeviceA] interface ten-gigabitethernet 1/0/25
[DeviceA-Ten-GigabitEthernet1/0/25] undo shutdown
[DeviceA-Ten-GigabitEthernet1/0/25] quit
[DeviceA] interface ten-gigabitethernet 1/0/26
[DeviceA-Ten-GigabitEthernet1/0/26] undo shutdown
[DeviceA-Ten-GigabitEthernet1/0/26] quit
(3) 配置Device A的成员优先级为32,以保证其成为IRF中的主设备。
[DeviceA] irf member 1 priority 32
(4) 保存配置
[DeviceA] save force
Device B的配置
(1) 设置Device B的成员编号为2,并重启设备使配置生效。
<DeviceA> system-view
[DeviceB] irf member 1 renumber 2
Warning: Renumbering the switch number may result in configuration change or loss. Continue? [Y/N]:y
[DeviceB] quit
reboot
(2) 创建设备的IRF端口1,并将它与物理端口Ten-GigabitEthernet 2/0/25和Ten-GigabitEthernet 2/0/26绑定
[DeviceB] interface ten-gigabitethernet 2/0/25
[DeviceB-Ten-GigabitEthernet2/0/25] shutdown
[DeviceB-Ten-GigabitEthernet2/0/25] quit
[DeviceB] interface ten-gigabitethernet 2/0/26
[DeviceB-Ten-GigabitEthernet2/0/26] shutdown
[DeviceB-Ten-GigabitEthernet2/0/26] quit
[DeviceB] irf-port 2/1
[DeviceB-irf-port2/1] port group interface ten-gigabitethernet2/0/25
[DeviceB-irf-port2/1] port group interface ten-gigabitethernet2/0/26
[DeviceB-irf-port2/1] quit
[DeviceB] interface ten-gigabitethernet 2/0/25
[DeviceB-Ten-GigabitEthernet2/0/25] undo shutdown
[DeviceB-Ten-GigabitEthernet2/0/25] quit
[DeviceB] interface ten-gigabitethernet 2/0/26
[DeviceB-Ten-GigabitEthernet2/0/26] undo shutdown
[DeviceB-Ten-GigabitEthernet2/0/26] quit
(3) 保存配置
[DeviceB] save force
(4) 参照1.2 图1和端口连接表连接Device A和Device B之间的IRF端口
激活配置
激活DeviceA的IRF端口配置。
[DeviceA] irf-port-configuration active
激活DeviceB的IRF端口配置。
[DeviceB] irf-port-configuration active
两台设备间将会进行Master竞选,竞选失败的一方将自动重启,重启完成后,IRF形成,系统名称统一为DeviceA。
验证配置
验证IRF建立成功:
<DeviceA> display irf
MemberID Slot Role Priority CPU-Mac Description
*+1 0 Master 32 0210-fc01-0000 ---
2 0 Standby 1 0210-fc02-0000 ---
● indicates the device is the master.
● indicates the device through which the user logs in.
The Bridge MAC of the IRF is: 3822-d60f-2800
Auto upgrade : yes
Mac persistent : always
Domain ID : 0
Auto merge : yes
从命令行的显示看,当前两台设备IRF成功建立。
【公 众 号:xmwisdom】
标签:H3C,26,Ten,25,堆叠,交换机,DeviceA,IRF,DeviceB From: https://blog.51cto.com/u_16331325/8088907