最佳答案
一、 组网需求:
通过两条10G链路将两台S5820V2虚拟化成一台逻辑设备
二、 组网图:
三、 配置步骤:
1、配置S5820V2_1
# 选择一组SFP+端口作为IRF物理端口,本文中为Ten-GigabitEthernet1/0/1~Ten-GigabitEthernet1/0/4。关闭该组中所有端口。为便于配置,下文中将使用接口批量配置功能关闭和开启物理端口。
[H3C] interface range name irf interface ten-gigabitethernet 1/0/1 to ten-gigabitethernet 1/0/4
[H3C-if-range-irf] shutdown
[H3C-if-range-irf] quit
# 配置IRF端口1/1,并将它与物理端口Ten-GigabitEthernet1/0/1、Ten-GigabitEthernet1/0/2、Ten-GigabitEthernet1/0/3和Ten-GigabitEthernet1/0/4绑定。
[H3C] irf-port 1/1
[H3C-irf-port1/1] port group interface ten-gigabitethernet 1/0/1
[H3C-irf-port1/1] port group interface ten-gigabitethernet 1/0/2
[H3C-irf-port1/1] port group interface ten-gigabitethernet 1/0/3
[H3C-irf-port1/1] port group interface ten-gigabitethernet 1/0/4
[H3C-irf-port1/1] quit
# 开启Ten-GigabitEthernet1/0/1~Ten-GigabitEthernet1/0/4端口,并保存配置。
[H3C] interface range name irf interface ten-gigabitethernet 1/0/1 to ten-gigabitethernet 1/0/4
[H3C-if-range-irf] undo shutdown
[H3C-if-range-irf] quit
[H3C] save
# 激活IRF端口下的配置。
[H3C] irf-port-configuration active
2、 配置S5820V2_2
# 将S5820V2_2的成员编号配置为2,并重启设备使新编号生效。
[H3C] irf member 1 renumber 2
Renumbering the member ID may result in configuration change or loss. Continue? [Y/N]:y
[H3C] quit
选择一组SFP+端口作为IRF物理端口,本文中为Ten-GigabitEthernet2/0/1~Ten-GigabitEthernet2/0/4为例。
# 重新登录到设备,关闭选定端口组中的所有端口。
[H3C] interface range name irf interface ten-gigabitethernet 2/0/1 to ten-gigabitethernet 2/0/4
[H3C-if-range-irf] shutdown
[H3C-if-range-irf] quit
# 配置IRF端口2/2,并将它与物理端口Ten-GigabitEthernet2/0/1和Ten-GigabitEthernet2/0/4绑定。
[H3C] irf-port 2/2
[H3C-irf-port2/2] port group interface ten-gigabitethernet 2/0/1
[H3C-irf-port2/2] port group interface ten-gigabitethernet 2/0/2
[H3C-irf-port2/2] port group interface ten-gigabitethernet 2/0/3
[H3C-irf-port2/2] port group interface ten-gigabitethernet 2/0/4
[H3C-irf-port2/2] quit
# 开启Ten-GigabitEthernet2/0/1~Ten-GigabitEthernet2/0/4端口,并保存配置。
[H3C] interface range name irf interface ten-gigabitethernet 2/0/1 to ten-gigabitethernet 2/0/4
[H3C-if-range-irf] undo shutdown
[H3C-if-range-irf] quit
[H3C] save
# 激活IRF端口下的配置。
[H3C] irf-port-configuration active
3、S5820V2_1和S5820V2_2间将会进行Master竞选,竞选失败的一方将重启,重启完成后,IRF形成。
4、配置验证:
[H3C]display irf
MemberID Role Priority CPU-Mac Description
*1 Master 1 5866-ba8c-142d ---
+2 Standby 1 5866-ba8c-1496 ---
--------------------------------------------------
* indicates the device is the master.
+ indicates the device through which the user logs in.
The Bridge MAC of the IRF is: 5866-ba8c-142c
Auto upgrade : yes
Mac persistent : 6 min
Domain ID : 0
[H3C]display irf link
Member 1
IRF Port Interface Status
1 Ten-GigabitEthernet1/0/1 UP
Ten-GigabitEthernet1/0/2 UP
Ten-GigabitEthernet1/0/3 DOWN
Ten-GigabitEthernet1/0/4 DOWN
2 disable --
Member 2
IRF Port Interface Status
1 disable --
2 Ten-GigabitEthernet2/0/1 UP
Ten-GigabitEthernet2/0/2 UP
Ten-GigabitEthernet2/0/3 DOWN
Ten-GigabitEthernet2/0/4 DOWN
可见堆叠成功。
四、 配置关键点:
1、S5820V2-52QF/S5820V2-54QS-GE交换机上的所有SFP+口/QSFP+口以及S5830V2-24S交换机上的所有SFP+口都可以用于IRF连接。如果选择S5820V2-52QF/S5830V2-24S设备的SFP+口作为IRF物理端口,需要注意的是:
· 设备上的SFP+口根据端口编号进行分组,从编号1开始,按端口编号由小到大的顺序,每4个SFP+口分为一组。同一组中的所有端口用途必须相同,即当某一端口与IRF端口绑定后,该组内其它端口将不能再作为普通业务端口使用,反之亦然。
· 在将某个SFP+口与IRF端口进行绑定或取消绑定之前,必须先对该SFP+口所在组内的所有SFP+口执行shutdown操作;在完成绑定或取消绑定操作后,再对同组内所有SFP+口执行undo shutdown操作。使用接口批量配置功能可以更快捷的完成以上操作。
2、在将物理口跟堆叠逻辑口绑定前,必须将一组的四个端口全部shutdown,否则会报如下错误:
Check Failed For Reason:
Interfaces Ten-GigabitEthernet1/0/1 to Ten-GigabitEthernet1/0/4 belong to a port group,Please shutdown all of them before changing the working mode.
3、堆叠时必须将该组的四个物理口全部跟一个或两个逻辑口绑定,否则会报错:
Bind all interfaces in the same group to one or two IRF ports or cancel the bindings on all of them.Configuration terminated because it failed on Ten-GigabitEthernet1/0/1.
(0)
感谢大佬 非常详细
优先级越大越优
主
irf member 1 priority 15
irf member 1 description 1
int range ten 1/0/49 to ten 1/0/50
shutdown
irf-port 1/2
port group int ten 1/0/49
port group int ten 1/0/50
int range ten 1/0/49 to ten 1/0/50
no shutdown
Sa f
Irf-port-con ac
备
irf member 1 renumber 2
y
qui
Reboot
irf member 2 priority 10
irf member 2 description 2
int range ten 2/0/49 to ten 2/0/50
shutdown
irf-port 2/1
port group int ten 2/0/49
port group int ten 2/0/50
int range ten 2/0/49 to ten 2/0/50
no shutdown
Sa f
Irf-port-con ac
(0)
感谢大佬 非常详细
感谢大佬 非常详细
您好,请知:
以下是IRF的配置案例:
H3C HCL S5820配置IRF的案例:
网络拓扑图:
图中两台S5820交换机都分别使用万兆口50口、51口进行互联,其中1号设备、2号设备均已在拓扑图中标识清楚,1代表成员1、2代表成员2
1、1号设备设定为IRF 1号成员,2号设备设定为IRF 2号成员。
2、绑定IRF端口。
3、激活IRF功能。
4、检查设备是否已堆叠完成。
1、1号设备关键配置如下:
[H3C]irf member 1 renumber 1 //将1号设备设定为成员1
Renumbering the member ID may result in configuration change or loss. Continue?[Y/N]:y
[H3C]int range Ten-GigabitEthernet 1/0/50 to Ten-GigabitEthernet 1/0/51
[H3C-if-range]shutdown
[H3C-if-range]quit
[H3C]irf-port 1/1 //将物理端口绑定到IRF端口
[H3C-irf-port1/1]port group interface Ten-GigabitEthernet 1/0/50
[H3C-irf-port1/1]port group interface Ten-GigabitEthernet 1/0/51
[H3C-irf-port1/1]quit
[H3C]int range Ten-GigabitEthernet 1/0/50 to Ten-GigabitEthernet 1/0/51
[H3C-if-range]undo shutdown
[H3C-if-range]quit
[H3C]irf-port-configuration active //激活IRF
[H3C]save
2、2号设备关键配置点如下:
[H3C]irf member 1 renumber 2 //将2号设备设定为成员2
[H3C]int range Ten-GigabitEthernet 1/0/50 to Ten-GigabitEthernet 1/0/51
[H3C-if-range]shutdown
[H3C-if-range]quit
[H3C]irf-port 1/2 //将物理端口绑定到IRF端口
[H3C-irf-port1/2]port group interface Ten-GigabitEthernet 1/0/50
[H3C-irf-port1/2]port group interface Ten-GigabitEthernet 1/0/51
[H3C-irf-port1/2]quit
[H3C]int range Ten-GigabitEthernet 1/0/50 to Ten-GigabitEthernet 1/0/51
[H3C-if-range]undo shutdown
[H3C-if-range]quit
[H3C]irf-port-configuration active //激活IRF
[H3C]save
3、分别将成员1设备、成员2设备重启
4、测试
<H3C>dis irf //查看IRF的信息,看到成员1和成员2的设备信息都在一起
MemberID Role Priority CPU-Mac Description
*+1 Master 1 30bd-490a-0104 ---
2 Standby 1 30bd-525e-0204 ---
--------------------------------------------------
* indicates the device is the master.
+ indicates the device through which the user logs in.
The bridge MAC of the IRF is: 30bd-490a-0100
Auto upgrade : yes
Mac persistent : 6 min
Domain ID : 0
<H3C>
<H3C>dis irf link //查看成员1、成员2 IRF链路的状态均为UP
Member 1
IRF Port Interface Status
1 Ten-GigabitEthernet1/0/50 UP
Ten-GigabitEthernet1/0/51 UP
2 disable --
Member 2
IRF Port Interface Status
1 disable --
2 Ten-GigabitEthernet2/0/50 UP
Ten-GigabitEthernet2/0/51 UP
<H3C>
<H3C>dis irf configuration //查看IRF的配置信息
MemberID NewID IRF-Port1 IRF-Port2
1 1 Ten-GigabitEthernet1/0/50 disable
Ten-GigabitEthernet1/0/51
2 2 disable Ten-GigabitEthernet2/0/50
Ten-GigabitEthernet2/0/51
<H3C>
<H3C>dis irf topology //查看IRF的拓扑信息
Topology Info
-------------------------------------------------------------------------
IRF-Port1 IRF-Port2
MemberID Link neighbor Link neighbor Belong To
2 DIS --- UP 1 30bd-490a-0104
1 UP 2 DIS --- 30bd-490a-0104
<H3C>
至此S5820交换机的IRF已配置完成!
(0)
你好,配置案例如下:
IRF配置参考链接:
https://www.h3c.com/cn/d_202004/1284814_30005_0.htm#_Toc37771865
(0)
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
感谢大佬 非常详细