信创交换机(S5300G/S6300G、S3200G)

信锐技术自主研发的千兆盒式交换机产品,支持主流协议标准和应用程序,可方便快速的部署和管理,满足下一代企业网、数据中心、城域网和超融合等多种应用场合需求。
{{sendMatomoQuery("信创交换机(S5300G/S6300G、S3200G)","堆叠命令")}}

堆叠命令

更新时间:2025-07-14

21.1堆叠命令

21.1.1stack enable

命令功能

使用这个命令来使能stacking,使用相应的no命令去使能stacking,重启生效。

命令语法

stack enable

no stack enable

命令模式

全局配置模式

默认配置

默认stacking enable不使能。

使用说明

使能stack或者去使能stack后并重启,端口相关的配置将被清空。

举例说明

Switch# configure terminal
Switch(config)# stack enable

相关命令

21.1.2stack slot

命令功能

使用这个命令来配置slot编号,使用相应的no 命令来删除这个规则。

命令语法

stack slot SLOTID

no stack slot

参数

参数说明

参数取值

SLOTID

指定slot id的值

<1-15>

命令模式

全局配置模式

默认配置

默认stack slot id不设置。

使用说明

举例说明

Switch# configure terminal
Switch(config)# stack slot 15

相关命令

21.1.3stack domain

命令功能

使用这个命令来配置设备的堆叠域编号,使用相应的no命令去配置默认堆叠域编号。

命令语法

stack slot ( SLOTID | all ) domain DOMAINID

no stack slot ( SLOTID | all ) domain

参数

参数说明

参数取值

SLOTID

指定slot id的值

<1-15>

DOMAINID

指定堆叠域编号

<1-65535>

命令模式

全局配置模式

默认配置

使用说明

举例说明

Switch# configure terminal
Switch(config)# stack slot 1 domain 10

相关命令

21.1.4stack priority

命令功能

使用这个命令来配置stacking member的优先级,值越大优先级越高,在进行stacking角色协商的时候会根据member之间的prioritymac地址大小来进行角色选举,重启生效.

命令语法

stack slot ( SLOTID | all ) priority PRIORITY

no stack slot ( SLOTID | all ) priority

参数

参数说明

参数取值

SLOTID

指定slot id的值

<1-15>

PRIORITY

优先级的大小

<100-65535>

命令模式

全局配置模式

默认配置

默认优先级为500

使用说明

举例说明

Switch# configure terminal
Switch(config)# stack slot 1 priority 1000

相关命令

21.1.5stack competition-delay

命令功能

使用这个命令来配置堆叠竞争延迟时长,使用相应的no命令去配置默认堆叠竞争延迟时长。

命令语法

stack slot ( SLOTID | all ) competition-delay TIME

no stack slot ( SLOTID | all ) competition-delay

参数

参数说明

参数取值

SLOTID

指定slot id的值

<1-15>

TIME

指定堆叠竞争延迟时长

<0-60>

命令模式

全局配置模式

默认配置

0

使用说明

举例说明

Switch# configure terminal
Switch(config)# stack slot 1 competition-delay 30

相关命令

21.1.6stack connect slot

命令功能

使用这个命令连到指定的stack成员设备。

命令语法

stack connect slot SLOTID

参数

参数说明

参数取值

SLOTID

slotid

<1-15>

命令模式

用户模式

默认配置

使用说明

举例说明

Switch# stack connect slot 2

相关命令

21.1.7stack release slot

命令功能

使用这个命令删除指定的线卡。

命令语法

stack release slot SLOTID

参数

参数说明

参数取值

SLOTID

slotid

<1-15>

命令模式

全局配置模式

默认配置

默认stack release slot不设置。

使用说明

使用stack release slot 1 命令删除线卡后,如果堆叠口连线没有断开,slot 1重启后仍会加入堆叠。如果堆叠系统需要恢复为单机环境,可以进行拆分堆叠操作。拆分堆叠首先需要去使能设备的堆叠功能,然后配置好每台设备的管理IP并保存配置。拆除线缆后,手动重启即可拆分堆叠。启动之后的设备将保存stacking系统下的非端口业务配置,端口相关的配置将被清空。

举例说明

Switch# configure terminal
Switch(config)# stack release slot 1

相关命令

21.1.8stack mac-address

命令功能

使用这个命令配置堆叠系统的MAC地址。

命令语法

stack mac-address slot SLOTID

参数

参数说明

参数取值

SLOTID

slotid

<1-15>

命令模式

全局配置模式

默认配置

堆叠系统未配置系统MAC地址

使用说明

举例说明

Switch# configure terminal
Switch(config)# stack mac-address slot 1

相关命令

21.1.9stack mac-address switch-delay

命令功能

使用这个命令配置堆叠系统MAC地址延迟切换时间。

命令语法

stack mac-address switch-delay ( TIME | immediately )

参数

参数说明

参数取值

TIME

指定延迟切换时间, 0代表不切换

<0-60>

immediately

立刻切换堆叠系统MAC地址

-

命令模式

全局配置模式

默认配置

默认不切换

使用说明

举例说明

Switch# configure terminal
Switch(config)# stack mac-address switch-delay 30

相关命令

21.1.10stack auto-merge enable

命令功能

使用这个命令来使能stacking自动合并,使用相应的no命令去使能stacking自动合并。

命令语法

stack auto-merge enable

no stack auto-merge enable

命令模式

全局配置模式

默认配置

默认stacking auto-merge enable使能。

使用说明

举例说明

Switch# configure terminal
Switch(config)# stack auto-merge enable

相关命令

21.1.11stack dual-active exlucde

命令功能

使用这个命令配置堆叠系统指定接口为保留端口

命令语法

stack dual-active exlucde interface IFPHYSICAL

参数

参数说明

参数取值

IFPHYSICAL

物理口

-

命令模式

全局配置模式

默认配置

使用说明

举例说明

Switch# configure terminal
Switch(config)# stack dual-active exlucde interface eth-1-12

相关命令

21.1.12stack dual-active backup ip address

命令功能

使用这个命令配置堆叠成员交换机配置备份IPv4地址。

命令语法

stack dual-active backup ip address ( A.B.C.D/M A.B.C.D A.B.C.D ) slot ( SLOTID | all )

参数

参数说明

参数取值

SLOTID

slotid

<1-15>

命令模式

全局配置模式

默认配置

堆叠系统未配置成员交换机配置备份IPv4地址

使用说明

举例说明

Switch# configure terminal
Switch(config)# stack dual-active backup ip address 9.9.9.1/24 slot 2

相关命令

21.1.13stack dual-active detect mode direct

命令功能

使用这个命令配置业务口的直连双主检测功能

命令语法

stack dual-active detect mode direct

命令模式

端口配置模式

默认配置

业务口的直连双主检测功能处于关闭状态

使用说明

举例说明

Switch# configure terminal
Switch(config)# interface eth-1-12
Switch(config)# stack dual-active detect mode direct

相关命令

21.1.14stack dual-active detect mode lacp

命令功能

使用这个命令配置聚合口的lacp双主检测功能

命令语法

stack dual-active detect mode lacp

命令模式

端口配置模式

默认配置

聚合口的lacp双主检测功能处于关闭状态

使用说明

配置前请确保domain id分配正确

举例说明

Switch# configure terminal
Switch(config)# interface agg12
Switch(config)# stack dual-active detect mode lacp

相关命令

21.1.15stack dual-active restore

命令功能

使用这个命令将堆叠分裂后进入Recovery状态的设备被关闭的所有端口重新恢复正常

命令语法

stack dual-active restore

命令模式

全局配置模式

默认配置

使用说明

举例说明

Switch# configure terminal
Switch(config)# stack dual-active restore

相关命令

21.1.16interface IFSTACK

命令功能

使用这个命令来创建stacking接口和进入stacking接口配置模式,no 命令来删除stacking接口。

命令语法

interface stack--

no interface stack--

参数

参数说明

参数取值

SLOTID

指定slot id

<1-15>

PORTNO

指定stacking接口的trunkid

<1-31>

命令模式

全局配置模式

默认配置

默认stacking接口不设置。

使用说明

举例说明

Switch# configure terminal
Switch(config)# interface stack-1-2
Switch(config-if)#

相关命令

21.1.17member-port IFPHYSICAL

命令功能

使用这个命令来指定stacking接口的成员端口,no 命令来删除这个规则。

命令语法

member-port IFPHYSICAL

no member-port IFPHYSICAL

参数

参数说明

参数取值

IFPHYSICAL

物理口

命令模式

端口配置模式

默认配置

默认stacking成员口不设置。

使用说明

举例说明

Switch# configure terminal
Switch(config)# interface stack-1-2
Switch(config-if)# member-port eth-1-1

相关命令

21.1.18show stack

命令功能

使用这个命令来显示stacking member基本信息。

命令语法

show stack

命令模式

用户模式

默认配置

使用说明

举例说明

Switch# show stack
SlotID Role    Board         MAC             State           Description
================================================================================
*+1    MASTER  48T4X         001E.0813.C6E3  RUNNING         --
  2    STANDBY 24X2C-D       001E.0813.C490  RUNNING         --
--------------------------------------------------------------------------------
* indicates the device is the master.
+ indicates the device through which the user logs in.

The System MAC of the Stacking is: 001E.0813.C6E3
Mac persistent                   : yes
Domain ID                        : --

相关命令

21.1.19show stack link

命令功能

使用这个命令来显示stacking trunk member状态信息。

命令语法

show stack link

命令模式

用户模式

默认配置

_

使用说明

举例说明

Switch# show stack link
Stack Interface Status      Member          Member Status
=========================================================
stack-1-1       up          eth-1-1         up        
stack-2-1       up          eth-2-1         up        

相关命令

21.1.20show stack configuration

命令功能

使用这个命令来显示堆叠的配置信息。

命令语法

show stack configuration

命令模式

用户模式

默认配置

使用说明

举例说明

Switch# show stack configuration
Oper          : Operation
Conf          : Configuration
*             : Offline configuration

Attribute Configuration:
-----------------------------------------
MemberID        Domain         Priority  
Oper(Conf)      Oper(Conf)     Oper(Conf) 
-----------------------------------------
1(1)           --(--)         1000(1000) 
2(2)           --(--)         500(500)   
-----------------------------------------

Stack-Port Configuration:
SlotID(Conf) Stack Interface      Member             
============ ==================== ===================
1(1)         stack-1-1            eth-1-1
2(2)         stack-2-1            eth-2-1

相关命令

21.1.21show stack topology

命令功能

使用这个命令来显示stacking基本拓扑信息。

命令语法

show stack topology

命令模式

用户模式

默认配置

使用说明

举例说明

Switch# show stack topology
      M         S 
    +---+     +---+
    | 1 |1***1| 2 |
    +---+     +---+

Known Ucast Forward:

                       Forward       
SlotID Stack Interface Remote SlotID 
====== =============== ===============
1      stack-1-1       2             
2      stack-2-1       1             

Stack Blocked Interface:

BUM: The broadcast, unknown unicast or multicast packets

                       Block           Block     Block     
SlotID Stack Interface Remote SlotID   Direction Packet-Type
====== =============== =============== ========= ===========

相关命令

21.1.22show stack dual-active

命令功能

使用这个命令来显示双主检测配置信息。

命令语法

show stack dual-active

命令模式

用户模式

默认配置

使用说明

举例说明

Switch# show stack dual-active
Stack domainID: --
Dual-active recovery state: No
Excluded Ports(configurable):
- $$
Excluded Ports(can not be configured):
eth-1-1
eth-2-1
Dual-active direct detect mode: Disable
Dual-active lacp detect mode: Disable

相关命令

21.1.23copy GFILENAME GSTACKALL

命令功能

使用此命令将本地flash的文件拷到ftp服务器。

命令语法

copy GFILENAME GSTACKALL

参数

参数说明

参数取值

GFILENAME

本地文件

完整的文件路径和文件名,不超过255字符

GSTACKALL

所有堆叠设备

文件路径和文件名,不超过255字符

命令模式

用户模式

默认配置

使用说明

举例说明

下面的例子显示如何把本地的flash文件拷贝到所有堆叠设备

Switch# copy flash:/test all#boot:/test

Switch# copy flash:/test all#flash:/test

相关命令

21.1.24stack description

命令功能

使用这个命令来配置stacking member的描述信息.

命令语法

stack slot SLOTID description LINE

no stack slot SLOTID description

参数

参数说明

参数取值

SLOTID

指定slot id的值

<1-15>

LINE

描述符的值

不超过80个字符的字符串

命令模式

全局配置模式

默认配置

使用说明

举例说明

下面的例子显示如何配置描述信息

Switch# configure terminal
Switch(config)# stack slot 1 description slot1_master

相关命令


图片包含 游戏机, 画, 灯

描述已自动生成

中国广东省深圳市南山区学苑大道1001号南山智园A1栋

Block A1, Nanshan iPark,

No.1001 Xueyuan Road, Nanshan District, Shenzhen,

Guangdong Province, P. R. China (518055)

售前咨询热线:400-878-3313

售后服务热线:400-878-3389

网址:www.sundray.com.cn

顶底图片顶底图片顶底图片