华为S系列网管交换机堆叠配置教程

配置堆叠口
配置堆叠口就是在使用业务口组建堆叠时将业务口配置为堆叠成员口。
例如:将业务口XGE0/0/1配置为堆叠成员口。

V200R002之后的版本
system-view
[HUAWEI] interface stack-port 0/1
[HUAWEI-stack-port0/1] port interface xgigabitethernet 0/0/1 enable //将接口XGE0/0/1接口加入堆叠口,使业务口变为堆叠成员口,一次可以加入多个
Warning: Enabling stack function may cause configuration loss on the interface. Continue? [Y/N]:y
Info: This operation may take a few seconds. Please wait…….

V200R002及之前的版本
system-view
[HUAWEI] stack port interface xgigabitethernet 0/0/1 enable //配置接口XGE0/0/1为堆叠口
Warning: This operation will clear all configurations on these interfaces, continue? [Y/N]:y
Info: This operation may take a few seconds. Please wait for a moment…
[HUAWEI] interface stack-port 0/1
[HUAWEI-stack-port0/1] port member-group interface xgigabitethernet 0/0/1 //将接口XGE0/0/1加入堆叠口
注:
交换机一共支持两个堆叠口,分别是Stack-Portn/1和Stack-Portn/2,n表示交换机的堆叠ID。
业务口配置为堆叠成员口后,仅支持堆叠相关业务功能,其他业务功能不可用。接口下与堆叠不相关的命令会被屏蔽,仅保留description(接口视图)等接口基本命令。

修改堆叠口
将逻辑堆叠口stack-port0/1中的成员端口XGE0/0/1修改为XGE0/0/3。

V200R002之后的版本
system-view
[HUAWEI] interface stack-port 0/1
[HUAWEI-stack-port0/1] shutdown interface xgigabitethernet0/0/1 //为避免环路,先将成员口设置为down
[HUAWEI-stack-port0/1] undo port interface xgigabitethernet0/0/1 enable //将原来成员端口XGE0/0/1退出堆叠口,恢复为业务口
[HUAWEI-stack-port0/1] port interface xgigabitethernet0/0/3 enable //将接口XGE0/0/3设置为堆叠口

V200R002及之前的版本
system-view
[HUAWEI] interface stack-port 0/1
[HUAWEI-stack-port0/1] undo port member-group interface xgigabitethernet 0/0/1 //将原来的堆叠口删除
[HUAWEI-stack-port0/1] quit
[HUAWEI] undo stack port interface xgigabitethernet 0/0/1 enable //将接口恢复为业务口
[HUAWEI] stack port interface xgigabitethernet 0/0/3 enable //将接口XGE0/0/3使能为堆叠口
[HUAWEI] interface stack-port 0/1
[HUAWEI-stack-port0/1] port member-group interface xgigabitethernet 0/0/3 //将接口加入堆叠口

删除堆叠口
删除堆叠口就是将业务口从堆叠口中退出,恢复为正常的业务口。
例如:将堆叠成员口XGE0/0/1从堆叠口中删除。

V200R002之后的版本
system-view
[HUAWEI] interface stack-port 0/1
[HUAWEI-stack-port0/1] shutdown interface xgigabitethernet0/0/1 //为避免环路,先将成员口设置为down
[HUAWEI-stack-port0/1] undo port interface xgigabitethernet0/0/1 enable //将成员端口XGE0/0/1退出堆叠口,恢复为业务口

V200R002及之前的版本
system-view
[HUAWEI] interface stack-port 0/1
[HUAWEI-stack-port0/1] undo port member-group interface xgigabitethernet 0/0/1 //将接口XGE0/0/1从堆叠口中退出
[HUAWEI-stack-port0/1] quit
[HUAWEI] undo stack port interface xgigabitethernet 0/0/1 enable //将接口XGE0/0/1恢复为业务口

查看堆叠配置
堆叠的配置不会记录在配置文件中,所以无法通过display current-configuration查看配置。 执行命令display stack可以查看堆叠系统的信息。
执行命令display stack configurationdisplay stack current-configuration可以查看堆叠的相关配置,以V200R012C00版本为例。

如果堆叠成员端口带有*号,表示当前配置不生效,不生效的可能原因为:
1、当前配置为没有生效的配置。
2、堆叠成员端口为子卡上的接口,当前子卡不在位。
3、如果堆叠成员端口带有#号,表示当前配置是专用堆叠线缆自动生成但未执行save stack configuration或save命令把配置写入Flash。

使能和去使能堆叠
对于S5700EI和S5700SI设备,可以在系统视图下执行命令stack enableundo stack enable使能和去使能堆叠。使能和去使能堆叠都需要重启设备才生效。
对于除S5700EI和S5700SI之外支持堆叠的设备,堆叠功能默认使能,无法通过命令去使能。
可以通过删除堆叠口或拔掉堆叠线缆的方式取消堆叠。删除堆叠口的方法如下:

清除堆叠配置
对于V200R011C10及之后版本的设备,执行命令reset stack configuration可以清除堆叠相关配置。包括:交换机槽位号、堆叠优先级、堆叠保留VLAN、系统MAC切换时间、堆叠口配置、堆叠口速率配置。

对于V200R011C10之前版本的设备及,需要根据配置分别删除,配置删除后需要重启设备才生效。
恢复堆叠优先级:
system-view
[HUAWEI] stack slot 2 priority 100 //将2槽位号的优先级恢复为缺省值100
恢复槽位号:
system-view
[HUAWEI] stack slot 2 renumber 0 //将设备槽位号修改为0
恢复堆叠保留VLAN:
system-view
[HUAWEI] stack reserved-vlan 4093 //将堆叠保留VLAN恢复到缺省值4093
恢复系统MAC切换时间:
system-view
[HUAWEI] undo stack timer mac-address switch-delay
删除堆叠口
V200R002之后的版本
system-view
[HUAWEI] interface stack-port 0/1
[HUAWEI-stack-port0/1] shutdown interface xgigabitethernet0/0/1 //为避免环路,先将成员口设置为down
[HUAWEI-stack-port0/1] undo port interface xgigabitethernet0/0/1 enable //将成员端口XGE0/0/1退出堆叠口,恢复为业务口

V200R002及之前的版本
system-view
[HUAWEI] interface stack-port 0/1
[HUAWEI-stack-port0/1] undo port member-group interface xgigabitethernet 0/0/1 //将接口XGE0/0/1从堆叠口中退出
[HUAWEI-stack-port0/1] quit
[HUAWEI] undo stack port interface xgigabitethernet 0/0/1 enable //将接口XGE0/0/1恢复为业务口

ICP备案号:晋ICP备18007549号-1
站长微信:13613567205