华为交换机堆叠配置(2台)

配置交换机A
stack
stack member 1 priority 150
stack member 1 domain 10
stack link-type linecard-direct
quit

#配置SwitchA的堆叠优先级为150,Domain ID为10。
linecard-direct是使用业务板堆叠。
如果是主控板,则命令为:stack link-type mainboard-direct
interface stack-port 1
port member-group interface 10ge 1/0/47 to 1/0/48
port member-group interface 10ge 1/0/49 to 1/0/50
commit
return
commit
save

配置交换机B
配置SwitchB的堆叠成员ID为2,优先级为120,Domain ID为10。
因为修改堆叠成员ID时指定了inherit-config参数,所以SwitchB重启后会继承member 1的堆叠配置;如果不指定inherit-config参数,那么SwitchB重启后不会继承member 1的堆叠配置,需要使用member 2重新进行堆叠配置。
stack
stack member 2 priority 100
stack member 2 domain 10
stack link-type linecard-direct
quit

interface stack-port 2
port member-group interface 10ge 2/0/47 to 2/0/48
port member-group interface 10ge 2/0/49 to 2/0/50
commit
return
commit
save

—————————————————————————
1、配置完成后保存交换机A和B的配置,然后关机;
2、连接4条堆叠线;
3、先开启交换机A,启动完成后,再开启交换机B(启动优先级高的交换机);
4、使用验证命令查看堆叠是否正常,保存配置。

堆叠验证命令
display stack configuration
display stack
display stack topology

H3C交换机堆叠配置(3台)

光纤连线方式(建议配置完交换机后再连接)
A:port-49—-B:port-50
B:port-49—-C:port-50
C:port-49—-A:port-50

交换机A配置如下:
interface range ten-gigabitethernet 1/0/49 to ten-gigabitethernet 1/0/50
shutdown
irf-port 1/1
port group interface Ten-GigabitEthernet1/0/49
#
irf-port 1/2
port group interface Ten-GigabitEthernet1/0/50
#
interface range ten-gigabitethernet 1/0/49 to ten-gigabitethernet 1/0/50
undo shutdown
quit
save
irf-port-configuration active

交换机B配置如下:
irf member 1 renumber 2
reboot
interface range ten-gigabitethernet 2/0/49 to ten-gigabitethernet 2/0/50
shutdown
irf-port 2/1
port group interface Ten-GigabitEthernet2/0/49
#
irf-port 2/2
port group interface Ten-GigabitEthernet2/0/50
#
interface range ten-gigabitethernet 2/0/49 to ten-gigabitethernet 2/0/50
undo shutdown
quit
save
irf-port-configuration active

交换机C配置如下:
irf member 1 renumber 3
reboot

interface range ten-gigabitethernet 3/0/49 to ten-gigabitethernet 3/0/50
shutdown
irf-port 3/1
port group interface Ten-GigabitEthernet3/0/49
#
irf-port 3/2
port group interface Ten-GigabitEthernet3/0/50
#

interface range ten-gigabitethernet 3/0/49 to ten-gigabitethernet 3/0/50
undo shutdown
quit
save
irf-port-configuration active

H3C交换机堆叠配置(2台)

光纤连线方式(建议配置完交换机后再连接)
A:port-23—-B:port-24
A:port-23—-B:port-24
交换机A配置如下:

interface range gigabitethernet 1/0/23 to gigabitethernet 1/0/24
shutdown

irf-port 1/1
port group interface gigabitethernet 1/0/23
port group interface gigabitethernet 1/0/24

interface range gigabitethernet 1/0/23 to gigabitethernet 1/0/24
undo shutdown
quit
save
irf-port-configuration active

交换机B配置如下:

irf member 1 renumber 2
reboot

interface range interface gigabitethernet 2/0/23 to interface gigabitethernet 2/0/24
shutdown

irf-port 2/2
port group interface interface gigabitethernet 2/0/23
port group interface interface gigabitethernet 2/0/24

interface range interface gigabitethernet 2/0/23 to interface gigabitethernet 2/0/24
undo shutdown
quit
save
irf-port-configuration active

最记得把线接好即可