Stacking Commands

stack enable

Command Purpose

The stack enable command is used to enable stacking functionality on the device. After executing this command, the device starts operating in stack mode, allowing multiple switches to be combined into a single logical system.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.4.0

Advanced

-

AQ-N5000

7.4.0

Advanced

-

AQ-N6000

7.4.0

Professional

-

Command Syntax

stack enable

Command Mode

Global config

Default

Disable

Usage

The stack enable command activates stack mode on the device. After execution, the device starts exchanging stack messages; however, the stack connection is fully established only after a device reboot.

Examples

Enabling stacking on the switch:

Switch# configure terminal
Switch(config)# stack enable

stack disable

Command Purpose

The stack disable command is used to disable stacking functionality on the device. After executing this command, the device exits stack mode and stops participating in stack message exchanges.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.4.0

Advanced

-

AQ-N5000

7.4.0

Advanced

-

AQ-N6000

7.4.0

Professional

-

Command Syntax

stack disable

Command Mode

Global config

Default

Disable

Usage

The stack disable command deactivates stacking functionality on the device. The changes take effect only after a device reboot.

Disabling stacking causes the switch to no longer be part of the unified stack system and instead function as an independent device.

Examples

Disabling stacking on the switch and rebooting the device to apply changes:

Switch# configure terminal
Switch(config)# stack disable

Related Commands

stack disable

stack slotid X priority Y

interface stack-X-Y

member-port eth-X-Y

show stack topology

stack slotid X priority Y

Command Purpose

The stack slotid X priority Y command is used to assign a specific slot number to the device within the stack and to set the priority for master selection.

The slot number (X) determines the logical position of the device in the stack.

The priority (Y) influences the master selection process: the higher the value, the higher the likelihood that the device will become the stack master in case of election.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.4.0

Advanced

-

AQ-N5000

7.4.0

Advanced

-

AQ-N6000

7.4.0

Professional

-

Command Syntax

stack slotid <X> priority <Y>

Parameter

Parameter Description

Parameter Value

<X>

The slot number assigned to the device within the stack.

1-16

<Y>

The priority value for master selection.

1-255

Command Mode

Global config

Default

By default, the slot number and priority are not manually assigned. The device automatically receives a slot number, and the priority is set to the minimum value.

Usage

The stack slotid X priority Y command is used in environments where manual control over stack devices and their roles is required.

If the priority (Y) is not set, the system automatically assigns a default priority. If multiple devices have the same priority, the system selects the master based on MAC address order.

For the changes to take effect, a device reboot is required.

Examples

Assign slot number 3 and priority 200 to a device:

Switch# configure terminal
Switch(config)# stack slotid 3 priority 200

Related Commands

stack disable

stack slotid X priority Y

interface stack-X-Y

member-port eth-X-Y

show stack topology

interface stack

Command Purpose

The interface stack-X-Y command is used to create a stack link between devices that are part of a stack.

X represents the slot number of the device within the stack, and Y specifies the stack link number that will be used for data transmission between switches.

After creating a stack interface, physical ports must be assigned to it using the member-port eth-X-Y command.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.4.0

Advanced

-

AQ-N5000

7.4.0

Advanced

-

AQ-N6000

7.4.0

Professional

-

Command Syntax

interface stack-<X>-<Y>

Parameter

Parameter Description

Parameter Value

<X>

Slot number of the device in the stack.

1-16

<Y>

Stack link number.

1-4

Command Mode

Global config

Default

By default, stack interfaces are not created.

Usage

The interface stack-X-Y command is used to establish a connection between devices in a stack. After executing the command, a virtual stack interface is created, to which physical ports can be assigned.

Configured stack interfaces ensure redundancy and load balancing between the devices in the stack.

Examples

Creating a stack connection stack-2-1 on a device with slot number 2:

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

Related Commands

stack enable

stack slotid X priority Y

member-port eth-X-Y

show stack link

member-port

Command Purpose

The member-port eth-X-Y command is used to assign a physical port of a device to a stack link.

After executing this command, the specified port (Y) of the device in slot (X) becomes part of the stack interface and is used for data transmission between stacked devices.

Only high-speed 40G or 100G interfaces can be used as physical ports for stack connections.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.4.0

Advanced

-

AQ-N5000

7.4.0

Advanced

-

AQ-N6000

7.4.0

Professional

-

Command Syntax

interface stack-<X>-<Y>

Parameter

Parameter Description

Parameter Value

<X>

Slot number of the device in the stack.

1-16

<Y>

Physical port number of the device.

1-48 (depending on device model)

Command Mode

Global config

Default

By default, physical ports are not assigned to stack links.

Usage

The member-port eth-X-Y command assigns a physical port to a stack link, enabling data transmission between switches in the stack.

To successfully create a stack link, a stack interface must first be created using the interface stack-X-Y command, after which one or more physical ports can be assigned to it.

For proper operation, all ports within the same stack link must operate at the same speed.

Examples

Assigning the physical port eth-2-5 to a stack link:

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

Related Commands

interface stack-X-Y

stack enable

member-port speed 40G

show stack link

member-port speed

Command Purpose

The member-port speed command is used to configure the data transmission speed of a stack link.

On AQ-N3000 series devices, the default stack port speed is 40G. On AQ-N5000 series devices, the default speed is 100G, but it can be changed to 40G.

All ports in the same stack link must operate at the same speed.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.4.0

Advanced

-

AQ-N5000

7.4.0

Advanced

-

AQ-N6000

7.4.0

Professional

-

Command Syntax

member-port speed {40G|100G}

Parameter

Parameter Description

Parameter Value

<X>

Sets the stack link speed to 40 Gbps.

Supported on all devices.

<Y>

Sets the stack link speed to 100 Gbps.

Supported on AQ-N5000 and AQ-N6000.

Command Mode

Global config

Default

On AQ-N3000 devices, stack links operate at 40G by default.

On AQ-N5000 and AQ-N6000 devices, stack links operate at 100G by default.

Usage

The member-port speed 40G command allows modifying the speed of stack links based on network requirements.

When changing the speed, it is crucial to ensure that all ports within the same stack link operate at the same speed.

If a stack link contains ports with different speeds, the link will not function.

Examples

Setting the stack link speed to 40G:

Switch# configure terminal
Switch(config)# interface stack-1-1
Switch(config-if)# member-port speed 40G

Related Commands

member-port eth-X-Y

interface stack-X-Y

show stack link

show stack topology

Command Purpose

The show stack topology command is used to display the current stack topology. It allows users to check which devices are part of the stack, their slot numbers, connection statuses, and roles within the stacking system.

The command output provides details about the master device, standby/slave nodes, and the structure of connections between them.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.4.0

Advanced

-

AQ-N5000

7.4.0

Advanced

-

AQ-N6000

7.4.0

Professional

-

Command Syntax

show stack topology

Command Mode

Privileged EXEC

Default

Нет

Usage

The show stack topology command is used to monitor the structure and current state of the stack. The command output includes information about the number of devices in the stack, their slot numbers, connection statuses, and assigned roles.

It is used for diagnostics and verification of the stack system, checking whether switches are properly connected and identifying potential configuration or connection issues.

Examples

Displaying the current stack topology:

Switch# show stack topology
Slot   Role     MAC Address        Status    Master
-------------------------------------------------
1      Master   00:1A:2B:3C:4D:5E  Active    Yes
2      Standby  00:1A:2B:3C:4D:5F  Active    No
3      Slave    00:1A:2B:3C:4D:60  Active    No

Related Commands

show stack link

stack slotid X priority Y

reboot slot all

reboot slot all

Command Purpose

The reboot slot all command is used to restart all devices in the stack. The command is executed from the stack master and triggers a simultaneous reboot of all subordinate (slave) devices.

It is applied when a full stack system restart is required without rebooting individual switches.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.4.0

Advanced

-

AQ-N5000

7.4.0

Advanced

-

AQ-N6000

7.4.0

Professional

-

Command Syntax

show stack link

Command Mode

Privileged EXEC

Default

Нет

Usage

The reboot slot all command is executed on the stack master and results in a restart of all devices within the stack. During the execution of this command, the stack becomes temporarily unavailable until all devices complete the boot process. After the reboot, the master device is re-elected based on priority settings.

Before executing this command, it is recommended to verify that the stack system is prepared for a restart, as the process temporarily disrupts network operations.

Examples

Restarting all devices in the stack:

Switch# reboot slot all
This command will reboot all stack members. Continue? [Y/N]: Y

Related Commands

stack enable

stack disable

stack slotid X priority Y

show stack topology

show stack link