一、实验目的¶
掌握H3C交换机堆叠操作步骤
二、实验拓扑¶

三、实验说明¶
1、将S5820V2-54QS-GE_1和S5820V2-54QS-GE_2堆叠成一台。 2、S5820V2-54QS-GE_1和S5820V2-54QS-GE_2通过两条链路相连,接口分别是XGE0/49和XGE0/50。
四、实验步骤¶
1、在S5820V2-54QS-GE_1设置选举优先级为32,选举S5820V2-54QS-GE_1为堆叠主设备。
[H3C]sys Master
[Master]irf member 1 priority 32 //设置选举主备优先级,默认为1,越大越优先
2、在S5820V2-54QS-GE_2设置成员编号为2(默认为1),避免冲突。这里需要注意的是,成员编号修改完成后,需要重启方可生效。
[H3C]sys Backup
[Backup]irf member 1 renumber 2
Renumbering the member ID may result in configuration change or loss. Continue?[Y/N]:y
[Backup]quit
<Backup>reboot
Start to check configuration with next startup configuration file, please wait.........DONE!
Current configuration may be lost after the reboot, save current configuration? [Y/N]:y
Please input the file name(*.cfg)[flash:/startup.cfg]
(To leave the existing filename unchanged, press the enter key): //直接回车
Validating file. Please wait...
Saved the current configuration to mainboard device successfully.
This command will reboot the device. Continue? [Y/N]:y
Now rebooting, please wait...
%Aug 13 09:36:10:922 2022 Backup DEV/5/SYSTEM_REBOOT: System is rebooting now.
3、继续在S5820V2-54QS-GE_2上使用dis int bri查看接口状态。观察到,重启后的S5820V2-54QS-GE_2接口编号由GE1/0/X改为GE2/0/X了。此时代表这个renumber 2已生效。
<Backup>dis int bri
Brief information on interfaces in route mode:
Link: ADM - administratively down; Stby - standby
Protocol: (s) - spoofing
Interface Link Protocol Primary IP Description
InLoop0 UP UP(s) --
MGE0/0/0 DOWN DOWN --
NULL0 UP UP(s) --
REG0 UP -- --
Brief information on interfaces in bridge mode:
Link: ADM - administratively down; Stby - standby
Speed: (a) - auto
Duplex: (a)/A - auto; H - half; F - full
Type: A - access; T - trunk; H - hybrid
Interface Link Speed Duplex Type PVID Description
FGE2/0/53 DOWN 40G A A 1
FGE2/0/54 DOWN 40G A A 1
GE2/0/1 DOWN auto A A 1
GE2/0/2 DOWN auto A A 1
GE2/0/3 DOWN auto A A 1
GE2/0/4 DOWN auto A A 1
GE2/0/5 DOWN auto A A 1
GE2/0/6 DOWN auto A A 1
GE2/0/7 DOWN auto A A 1
GE2/0/8 DOWN auto A A 1
GE2/0/9 DOWN auto A A 1
GE2/0/10 DOWN auto A A 1
GE2/0/11 DOWN auto A A 1
GE2/0/12 DOWN auto A A 1
GE2/0/13 DOWN auto A A 1
GE2/0/14 DOWN auto A A 1
GE2/0/15 DOWN auto A A 1
GE2/0/16 DOWN auto A A 1
GE2/0/17 DOWN auto A A 1
GE2/0/18 DOWN auto A A 1
GE2/0/19 DOWN auto A A 1
GE2/0/20 DOWN auto A A 1
GE2/0/21 DOWN auto A A 1
GE2/0/22 DOWN auto A A 1
GE2/0/23 DOWN auto A A 1
GE2/0/24 DOWN auto A A 1
GE2/0/25 DOWN auto A A 1
GE2/0/26 DOWN auto A A 1
GE2/0/27 DOWN auto A A 1
GE2/0/28 DOWN auto A A 1
GE2/0/29 DOWN auto A A 1
GE2/0/30 DOWN auto A A 1
GE2/0/31 DOWN auto A A 1
GE2/0/32 DOWN auto A A 1
GE2/0/33 DOWN auto A A 1
GE2/0/34 DOWN auto A A 1
GE2/0/35 DOWN auto A A 1
GE2/0/36 DOWN auto A A 1
GE2/0/37 DOWN auto A A 1
GE2/0/38 DOWN auto A A 1
GE2/0/39 DOWN auto A A 1
GE2/0/40 DOWN auto A A 1
GE2/0/41 DOWN auto A A 1
GE2/0/42 DOWN auto A A 1
GE2/0/43 DOWN auto A A 1
GE2/0/44 DOWN auto A A 1
GE2/0/45 DOWN auto A A 1
GE2/0/46 DOWN auto A A 1
GE2/0/47 DOWN auto A A 1
GE2/0/48 DOWN auto A A 1
XGE2/0/49 UP 10G F A 1
XGE2/0/50 UP 10G F A 1
XGE2/0/51 DOWN 10G F A 1
XGE2/0/52 DOWN 10G F A 1
4、在S5820V2-54QS-GE_1上关闭堆叠物理端口XGE0/49和XGE0/50。此时关闭的目的是方便后面做堆叠配置。
[Master]int Ten-GigabitEthernet 1/0/49
[Master-Ten-GigabitEthernet1/0/49]shutdown
[Master-Ten-GigabitEthernet1/0/49]quit
[Master]int Ten-GigabitEthernet1/0/50
[Master-Ten-GigabitEthernet1/0/50]shutdown
5、继续在S5820V2-54QS-GE_1上做ISTACK的配置,即先创建逻辑堆叠端口并把逻辑堆叠端口和物理端口进行绑定。这里需要注意的是:堆叠的每台交换机上支持2个逻辑堆叠端口,n/1其中n为成员交换机的堆叠ID。
[Master]irf-port 1/1
[Master-irf-port1/1]port group interface Ten-GigabitEthernet 1/0/49
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.
[Master-irf-port1/1]quit
[Master]irf
[Master]irf-port 1/2
[Master-irf-port1/2]po
[Master-irf-port1/2]port gro
[Master-irf-port1/2]port group in
[Master-irf-port1/2]port group interface ten
[Master-irf-port1/2]port group interface Ten-GigabitEthernet 1/0/50
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.
[Master-irf-port1/2]quit
6、在S5820V2-54QS-GE_2上关闭堆叠物理端口XGE0/49和XGE0/50。此时关闭的目的是方便后面做堆叠配置。
[Backup]int Ten-GigabitEthernet 2/0/49
[Backup-Ten-GigabitEthernet2/0/49]shutdown
[Backup-Ten-GigabitEthernet2/0/49]quit
[Backup]int Ten-GigabitEthernet 2/0/50
[Backup-Ten-GigabitEthernet2/0/50]shutdown
7、在S5820V2-54QS-GE_2上做ISTACK的配置,即先创建逻辑堆叠端口并把逻辑堆叠端口和物理端口进行绑定。这里需要注意的是:堆叠端口需要交叉使用的。
[Backup]irf-port 2/2
[Backup-irf-port2/2]port group interface Ten-GigabitEthernet 2/0/49
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.
[Backup-irf-port2/2]quit
[Backup]irf-port 2/1
[Backup-irf-port2/1]port group interface Ten-GigabitEthernet 2/0/50
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.
[Backup-irf-port2/1]quit
8、以上操作完成后,把S5820V2-54QS-GE_1和S5820V2-54QS-GE_2关闭的堆叠物理接口开启。
[Master]int range Ten-GigabitEthernet 1/0/49 to Ten-GigabitEthernet 1/0/50
[Master-if-range]undo shutdown
[Backup]int range Ten-GigabitEthernet 2/0/49 to Ten-GigabitEthernet 2/0/50
[Backup-if-range]undo shutdown
9、保存S5820V2-54QS-GE_1和S5820V2-54QS-GE_2的配置。
<Master>save
The current configuration will be written to the device. Are you sure? [Y/N]:y
Please input the file name(*.cfg)[flash:/startup.cfg]
(To leave the existing filename unchanged, press the enter key):
Validating file. Please wait...
Saved the current configuration to mainboard device successfully.
<Backup>save
The current configuration will be written to the device. Are you sure? [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.
10、在S5820V2-54QS-GE_1和S5820V2-54QS-GE_2上,开启堆叠配置,使其生效。
[Master]irf-port-configuration active
[Backup]irf-port-configuration active
11、当从设备重启后,堆叠成功,两边都显示Master。使用dis irf configuration命令,查看IRF端口与IRF物理端口的绑定关系。
<Master>dis irf configuration
MemberID NewID IRF-Port1 IRF-Port2
1 1 Ten-GigabitEthernet1/0/49 Ten-GigabitEthernet1/0/50
2 2 Ten-GigabitEthernet2/0/50 Ten-GigabitEthernet2/0/49
12、使用dis irf topology命令,查看主从设备关系。
<Master>dis irf topology
Topology Info
-------------------------------------------------------------------------
IRF-Port1 IRF-Port2
MemberID Link neighbor Link neighbor Belong To
1 UP 2 UP 2 4a34-e9f5-0104
2 UP 1 UP 1 4a34-e9f5-0104
13、使用dis irf命令,查看当前登录设备。其中+号代表你目前登录的是那台设备。
<Master>dis irf
MemberID Role Priority CPU-Mac Description
*+1 Master 32 4a34-e9f5-0104 ---
2 Standby 1 4a35-0a55-0204 ---
--------------------------------------------------
* indicates the device is the master.
+ indicates the device through which the user logs in.
The bridge MAC of the IRF is: 4a34-e9f5-0100
Auto upgrade : yes
Mac persistent : 6 min
Domain ID : 0
<Master>dis irf
MemberID Role Priority CPU-Mac Description
*1 Master 32 4a34-e9f5-0104 ---
+2 Standby 1 4a35-0a55-0204 ---
--------------------------------------------------
* indicates the device is the master.
+ indicates the device through which the user logs in.
The bridge MAC of the IRF is: 4a34-e9f5-0100
Auto upgrade : yes
Mac persistent : 6 min
Domain ID : 0
14、使用dis interface brief命令,查看端口状态信息。这里观察到,端口已扩容。
<Master>dis int br
Brief information on interfaces in route mode:
Link: ADM - administratively down; Stby - standby
Protocol: (s) - spoofing
Interface Link Protocol Primary IP Description
InLoop0 UP UP(s) --
MGE0/0/0 DOWN DOWN --
NULL0 UP UP(s) --
REG0 UP -- --
Brief information on interfaces in bridge mode:
Link: ADM - administratively down; Stby - standby
Speed: (a) - auto
Duplex: (a)/A - auto; H - half; F - full
Type: A - access; T - trunk; H - hybrid
Interface Link Speed Duplex Type PVID Description
FGE1/0/53 DOWN 40G A A 1
FGE1/0/54 DOWN 40G A A 1
FGE2/0/53 DOWN 40G A A 1
FGE2/0/54 DOWN 40G A A 1
GE1/0/1 DOWN auto A A 1
GE1/0/2 DOWN auto A A 1
GE1/0/3 DOWN auto A A 1
GE1/0/4 DOWN auto A A 1
GE1/0/5 DOWN auto A A 1
GE1/0/6 DOWN auto A A 1
GE1/0/7 DOWN auto A A 1
GE1/0/8 DOWN auto A A 1
GE1/0/9 DOWN auto A A 1
GE1/0/10 DOWN auto A A 1
GE1/0/11 DOWN auto A A 1
GE1/0/12 DOWN auto A A 1
GE1/0/13 DOWN auto A A 1
GE1/0/14 DOWN auto A A 1
GE1/0/15 DOWN auto A A 1
GE1/0/16 DOWN auto A A 1
GE1/0/17 DOWN auto A A 1
GE1/0/18 DOWN auto A A 1
GE1/0/19 DOWN auto A A 1
GE1/0/20 DOWN auto A A 1
GE1/0/21 DOWN auto A A 1
GE1/0/22 DOWN auto A A 1
GE1/0/23 DOWN auto A A 1
GE1/0/24 DOWN auto A A 1
GE1/0/25 DOWN auto A A 1
GE1/0/26 DOWN auto A A 1
GE1/0/27 DOWN auto A A 1
GE1/0/28 DOWN auto A A 1
GE1/0/29 DOWN auto A A 1
GE1/0/30 DOWN auto A A 1
GE1/0/31 DOWN auto A A 1
GE1/0/32 DOWN auto A A 1
GE1/0/33 DOWN auto A A 1
GE1/0/34 DOWN auto A A 1
GE1/0/35 DOWN auto A A 1
GE1/0/36 DOWN auto A A 1
GE1/0/37 DOWN auto A A 1
GE1/0/38 DOWN auto A A 1
GE1/0/39 DOWN auto A A 1
GE1/0/40 DOWN auto A A 1
GE1/0/41 DOWN auto A A 1
GE1/0/42 DOWN auto A A 1
GE1/0/43 DOWN auto A A 1
GE1/0/44 DOWN auto A A 1
GE1/0/45 DOWN auto A A 1
GE1/0/46 DOWN auto A A 1
GE1/0/47 DOWN auto A A 1
GE1/0/48 DOWN auto A A 1
GE2/0/1 DOWN auto A A 1
GE2/0/2 DOWN auto A A 1
GE2/0/3 DOWN auto A A 1
GE2/0/4 DOWN auto A A 1
GE2/0/5 DOWN auto A A 1
GE2/0/6 DOWN auto A A 1
GE2/0/7 DOWN auto A A 1
GE2/0/8 DOWN auto A A 1
GE2/0/9 DOWN auto A A 1
GE2/0/10 DOWN auto A A 1
GE2/0/11 DOWN auto A A 1
GE2/0/12 DOWN auto A A 1
GE2/0/13 DOWN auto A A 1
GE2/0/14 DOWN auto A A 1
GE2/0/15 DOWN auto A A 1
GE2/0/16 DOWN auto A A 1
GE2/0/17 DOWN auto A A 1
GE2/0/18 DOWN auto A A 1
GE2/0/19 DOWN auto A A 1
GE2/0/20 DOWN auto A A 1
GE2/0/21 DOWN auto A A 1
GE2/0/22 DOWN auto A A 1
GE2/0/23 DOWN auto A A 1
GE2/0/24 DOWN auto A A 1
GE2/0/25 DOWN auto A A 1
GE2/0/26 DOWN auto A A 1
GE2/0/27 DOWN auto A A 1
GE2/0/28 DOWN auto A A 1
GE2/0/29 DOWN auto A A 1
GE2/0/30 DOWN auto A A 1
GE2/0/31 DOWN auto A A 1
GE2/0/32 DOWN auto A A 1
GE2/0/33 DOWN auto A A 1
GE2/0/34 DOWN auto A A 1
GE2/0/35 DOWN auto A A 1
GE2/0/36 DOWN auto A A 1
GE2/0/37 DOWN auto A A 1
GE2/0/38 DOWN auto A A 1
GE2/0/39 DOWN auto A A 1
GE2/0/40 DOWN auto A A 1
GE2/0/41 DOWN auto A A 1
GE2/0/42 DOWN auto A A 1
GE2/0/43 DOWN auto A A 1
GE2/0/44 DOWN auto A A 1
GE2/0/45 DOWN auto A A 1
GE2/0/46 DOWN auto A A 1
GE2/0/47 DOWN auto A A 1
GE2/0/48 DOWN auto A A 1
XGE1/0/49 UP 10G F -- --
XGE1/0/50 UP 10G F -- --
XGE1/0/51 DOWN 10G F A 1
XGE1/0/52 DOWN 10G F A 1
XGE2/0/49 UP 10G F -- --
XGE2/0/50 UP 10G F -- --
XGE2/0/51 DOWN 10G F A 1
XGE2/0/52 DOWN 10G F A 1