交换机堆叠配置案例(H3C)
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了交换机堆叠配置案例(H3C)相关的知识,希望对你有一定的参考价值。
配置思路
采用如下的思路配置:
- 为了能够在堆叠的成员设备间转发数据报文,配置堆叠物理成员端口,并加入堆叠端口。注意同一条堆叠链路上的两个堆叠物理成员端口需加入不同堆叠端口。
- 所有成员交换机下电,按照图1所示使用SFP+堆叠电缆连接各端口后依次上电。
操作步骤
- 配置堆叠端口
# 配置SwitchA的业务口GigabitEthernet0/0/27~GigabitEthernet0/0/28为堆叠物理成员端口,并加入堆叠端口。
<HUAWEI> system-view
[HUAWEI] sysname SwitchA
[SwitchA] interface stack-port 0/1
[SwitchA-stack-port0/1] port interface gigabitethernet 0/0/27 enable
Warning: Enabling stack port cause configuration loss on the interface, continue?[Y/N]:y
Info: This operation may take a few seconds. Please wait for a moment.......
[SwitchA-stack-port0/1] quit
[SwitchA] interface stack-port 0/2
[SwitchA-stack-port0/2] port interface gigabitethernet 0/0/28 enable
Warning: Enabling stack port cause configuration loss on the interface, continue?[Y/N]:y
Info: This operation may take a few seconds. Please wait for a moment.......
[SwitchA-stack-port0/2] quit
# 配置SwitchB的业务口GigabitEthernet0/0/27~GigabitEthernet0/0/28为堆叠物理成员端口,并加入堆叠端口。
<HUAWEI> system-view
[HUAWEI] sysname SwitchB
[SwitchB] interface stack-port 0/1
[SwitchB-stack-port0/1] port interface gigabitethernet 0/0/27 enable
Warning: Enabling stack port cause configuration loss on the interface, continue?[Y/N]:y
Info: This operation may take a few seconds. Please wait for a moment.......
[SwitchB-stack-port0/1] quit
[SwitchB] interface stack-port 0/2
[SwitchB-stack-port0/2] port interface gigabitethernet 0/0/28 enable
Warning: Enabling stack port cause configuration loss on the interface, continue?[Y/N]:y
Info: This operation may take a few seconds. Please wait for a moment.......
[SwitchB-stack-port0/2] quit
# 配置SwitchC的业务口GigabitEthernet0/0/27~GigabitEthernet0/0/28为堆叠物理成员端口,并加入堆叠端口。
<HUAWEI> system-view
[HUAWEI] sysname SwitchC
[SwitchC] interface stack-port 0/1
[SwitchC-stack-port0/1] port interface gigabitethernet 0/0/27 enable
Warning: Enabling stack port cause configuration loss on the interface, continue?[Y/N]:y
Info: This operation may take a few seconds. Please wait for a moment.......
[SwitchC-stack-port0/1] quit
[SwitchC] interface stack-port 0/2
[SwitchC-stack-port0/2] port interface gigabitethernet 0/0/28 enable
Warning: Enabling stack port cause configuration loss on the interface, continue?[Y/N]:y
Info: This operation may take a few seconds. Please wait for a moment.......
[SwitchC-stack-port0/2] quit
# 配置SwitchD的业务口GigabitEthernet0/0/27~GigabitEthernet0/0/28为堆叠物理成员端口,并加入堆叠端口。
<HUAWEI> system-view
[HUAWEI] sysname SwitchD
[SwitchD] interface stack-port 0/1
[SwitchD-stack-port0/1] port interface gigabitethernet 0/0/27 enable
Warning: Enabling stack port cause configuration loss on the interface, continue?[Y/N]:y
Info: This operation may take a few seconds. Please wait for a moment.......
[SwitchD-stack-port0/1] quit
[SwitchD] interface stack-port 0/2
[SwitchD-stack-port0/2] port interface gigabitethernet 0/0/28 enable
Warning: Enabling stack port cause configuration loss on the interface, continue?[Y/N]:y
Info: This operation may take a few seconds. Please wait for a moment.......
[SwitchD-stack-port0/2] quit
- 配置堆叠ID和堆叠优先级
# 配置SwitchA的堆叠优先级为200。
[SwitchA] stack slot 0 priority 200
Warning:Please do not frequently modify Priority, it will make the stack split! continue?[Y/N]:y
# 配置SwitchB的堆叠ID为1。
[SwitchB] stack slot 0 renumber 1
Warning: All the configurations related to the slot ID will be lost after the slot ID is modified.
Please do not frequently modify slot ID, it will make the stack split. Continue?[Y/N]:y
Info: Stack configuration has been changed, need reboot to take effect.
# 配置SwitchC的堆叠ID为2。
[SwitchC] stack slot 0 renumber 2
Warning: All the configurations related to the slot ID will be lost after the slot ID is modified.
Please do not frequently modify slot ID, it will make the stack split. Continue?[Y/N]:y
Info: Stack configuration has been changed, need reboot to take effect.
# 配置SwitchD的堆叠ID为3。
[SwitchD] stack slot 0 renumber 3
Warning: All the configurations related to the slot ID will be lost after the slot ID is modified.
Please do not frequently modify slot ID, it will make the stack split. Continue?[Y/N]:y
Info: Stack configuration has been changed, need reboot to take effect.
- SwitchA、SwitchB、SwitchC、SwitchD下电,使用SFP+电缆连接后再上电。
说明:
- 本设备的stack-port 0/1必须连接邻设备的stack-port 0/2,否则堆叠组建不成功。
- 下电前,请使用save命令保存配置。
- 为确保堆叠组建成功,可按照以下顺序进行连线上电:
- SwitchA~SwitchD下电;
- 连接SwitchA与SwitchB之间的堆叠线缆;
- 先为SwitchA上电,再为SwitchB上电;
- 连接SwitchD与SwitchB之间的堆叠线缆,再为SwitchD上电;同样,连接SwitchC与SwitchA和SwitchD之间的堆叠线缆,再为SwitchC上电。
说明:
如果用户希望某台交换机为主交换机可以先为其上电。例如,按以上连线上电顺序,SwitchA为主交换机。
- 验证配置结果
# 查看堆叠系统的基本信息。
<SwitchA> display stack
Stack topology type : Ring
Stack system MAC:0018-82d2-2e85
MAC switch delay time: 10 min
Stack reserved vlan : 4093
Slot of the active management port: --
Slot Role Mac address Priority Device type
-------------------------------------------------------------
0 Master 0018-82d2-2e85 200 S5700-28P-LI-AC
1 Standby 0018-82c6-1f44 100 S5700-28P-LI-AC
2 Slave 0018-82c6-1f4c 100 S5700-28P-LI-AC
3 Slave 0018-82b1-6eb8 100 S5700-28P-LI-AC
以上是关于交换机堆叠配置案例(H3C)的主要内容,如果未能解决你的问题,请参考以下文章
H3C交换机5560 在设备中把时间改好后,保存。为啥断电后时间回到初始时间