Bootstrap

H3C交换机配置堆叠(环形)举例

1.环形堆叠(如图)
在这里插入图片描述
2.配置交换机1
[SW1]irf member 1 priority 32(将master的优先级设置最大)
[SW1]int range Ten-GigabitEthernet 1/0/49 to Ten-GigabitEthernet 1/0/50(配置堆叠需要先将接口shutdown)
[SW1-if-range]shutdown
irf-port 1/1(前面数字1代表的是设备接口编号,后面的1代表的是逻辑接口编号)
port group interface Ten-GigabitEthernet1/0/49(将物理接口加入到逻辑堆叠口)
port group interface Ten-GigabitEthernet1/0/50
[SW1]int range Ten-GigabitEthernet 1/0/49 to Ten-GigabitEthernet 1/0/50(将接口取消shutdown)
[SW1-if-range]undo shutdown

[SW1]int range Ten-GigabitEthernet 1/0/51 to Ten-GigabitEthernet 1/0/52(配置堆叠需要先将接口shutdown)
[SW1-if-range]shutdown
irf-port 1/2(前面数字1代表的是设备接口编号,后面的1代表的是逻辑接口编号)
port group interface Ten-GigabitEthernet1/0/51(将物理接口加入到逻辑堆叠口)
port group interface Ten-GigabitEthernet1/0/52
[SW1]int range Ten-GigabitEthernet 1/0/51to Ten-GigabitEthernet 1/0/52(将接口取消shutdown)
[SW1-if-range]undo shutdown
[SW1]sa force(保存配置)
[SW1]irf-port-configuration active(激活堆叠配置)
3.配置交换机2
irf member 1 renumber 2(修改接口物理编号为2)
save force
reboot
int range Ten-GigabitEthernet 2/0/49 to Ten-GigabitEthernet 2/0/50
shutdown
quit
irf-port 2/1
port group interface Ten-GigabitEthernet2/0/51
port group interface Ten-GigabitEthernet2/0/52
quit
int range Ten-GigabitEthernet 2/0/51 to Ten-GigabitEthernet 2/0/52
shutdown
quit
irf-port 2/2
port group interface Ten-GigabitEthernet2/0/49
port group interface Ten-GigabitEthernet2/0/50
quit
int range Ten-GigabitEthernet 2/0/49 to Ten-GigabitEthernet 2/0/50
undo shutdown
quit
int range Ten-GigabitEthernet 2/0/51 to Ten-GigabitEthernet 2/0/52
undo shutdown
quit
save force
irf-port-conf active
4.配置交换机3
irf member 1 renumber 3(修改接口物理编号为3)
save force
reboot
int range Ten-GigabitEthernet 3/0/49 to Ten-GigabitEthernet 3/0/50
shutdown
quit
int range Ten-GigabitEthernet 3/0/51 to Ten-GigabitEthernet 3/0/52
shutdow
quit
irf-port 3/1
port group interface Ten-GigabitEthernet3/0/49
port group interface Ten-GigabitEthernet3/0/50
quit
irf-port 3/2
port group interface Ten-GigabitEthernet3/0/51
port group interface Ten-GigabitEthernet3/0/52
quit
int range Ten-GigabitEthernet 3/0/49 to Ten-GigabitEthernet 3/0/50
undo shutdown
quit
int range Ten-GigabitEthernet 3/0/51 to Ten-GigabitEthernet 3/0/52
undo shutdown
quit
save force
irf-port-conf active
配置交换机4
int range Ten-GigabitEthernet 4/0/49 to Ten-GigabitEthernet 4/0/50
shutdown
quit
int range Ten-GigabitEthernet 4/0/51 to Ten-GigabitEthernet 4/0/52
shutdown
quit
irf-port 4/1
port group interface Ten-GigabitEthernet4/0/51
port group interface Ten-GigabitEthernet4/0/52
quit
irf-port 4/2
port group interface Ten-GigabitEthernet4/0/49
port group interface Ten-GigabitEthernet4/0/50
quit
int range Ten-GigabitEthernet 4/0/49 to Ten-GigabitEthernet 4/0/50
undo shutdown
quit
int range Ten-GigabitEthernet 4/0/51 to Ten-GigabitEthernet 4/0/52
undo shutdown
quit
save force
irf-port-conf active
6.验证结果
在这里插入图片描述

;