CloudEngine 9800, 8800, 6800, and 5800 V200R020C10 Command Reference
Stack Configuration Commands
The CE9860EI does not support the stack function.
- description (stack port view)
- display dual-active
- display interface stack-port
- display stack
- display stack blocked-interface
- display stack configuration
- display stack link-state last-down-reason
- display stack port event
- display stack statistics
- display stack topology
- display stack troubleshooting
- display stack upgrade status
- display stack upgrade fast rollback-timer
- display system internal stack
- dual-active backup address
- dual-active detect enable
- dual-active detect mode direct
- dual-active detect mode relay
- dual-active exclude
- dual-active restore
- dual-active proxy
- interface stack-port
- load-balance profile (stack management view)
- load-balance profile (stack port view)
- load-balance (stack load balancing profile view)
- load-balance (stack port view)
- mac-address (management interface view)
- port copper mode
- port member-group
- port mode stack
- port mode stack interface
- reset stack troubleshooting history
- reset stack statistics
- set system mac-address
- set system mac-address switch-delay
- set system mac-address inconsistence-alarm
- stack
- stack alarm link-topology enable
- stack alarm single-link enable
- stack competition-delay
- stack description
- stack domain
- stack dual-active detect enhanced
- stack (load-balance-profile view)
- stack member
- stack-port
- stack port-link threshold
- stack priority
- stack upgrade fast
- stack upgrade fast rollback-timer
- uplink-port enable
description (stack port view)
Function
The description command configures a description for a stack port.
The undo description command deletes the description of a stack port.
By default, no description is configured for a stack port.
Parameters
Parameter | Description | Value |
---|---|---|
description | Specifies the description. | The value is a string of 1 to 242 case-sensitive characters with spaces supported. |
display dual-active
Usage Guidelines
You can use the display dual-active command to view the DAD configuration.
When DAD in relay mode is configured, you can use the display dual-active proxy command to view information about the proxy device.
Example
# Display DAD configuration.
<HUAWEI> display dual-active Stack domainID: 10 Dual-active status: Normal Dual-active detect mode: Relay Dual-active detect configuration of MEth: Disable Dual-active direct detect interfaces configured: -- Dual-active relay detect interfaces configured: Eth-Trunk10 10GE1/0/13 up (Physical) up (Protocol) 10 (PeerDomain) 10GE2/0/13 up (Physical) up (Protocol) 10 (PeerDomain) Excluded ports(configurable): -- Excluded ports(can not be configured): 10GE1/0/1 10GE1/0/2 10GE1/0/3 10GE1/0/4 10GE2/0/1 10GE2/0/2 10GE2/0/3 10GE2/0/4
# Display information about the specified proxy device.
<HUAWEI> display dual-active proxy
Dual-active proxy interfaces configured:
Eth-Trunk10
10GE1/0/13 up
10GE1/0/14 up
Item |
Description |
---|---|
Stack domainID |
Stack domain ID. |
Dual-active status |
Current DAD status:
|
Dual-active detect mode |
DAD mode:
|
Dual-active detect configuration of MEth |
Whether DAD is enabled on the management interface:
|
Dual-active direct detect interfaces configured |
Interface on which DAD in direct mode is configured. In the command output, Physical indicates the interface physical status, Protocol indicates the interface protocol status, and PeerDomain indicates the stack domain to which the peer end belongs to. |
Dual-active relay detect interfaces configured |
Interface on which DAD in relay mode is configured. In the command output, Physical indicates the interface physical status, Protocol indicates the interface protocol status, and PeerDomain indicates the stack domain to which the peer end belongs to. |
Excluded ports(configurable) |
Interfaces excluded from error-down. |
Excluded ports(can not be configured) |
Default interfaces excluded from error-down. |
Dual-active proxy interfaces configured |
Interface on which the relay function is configured. |
display interface stack-port
Function
The display interface stack-port command displays the running status and statistics on a stack port.
Parameters
Parameter | Description | Value |
---|---|---|
member-id |
Specifies a stack member ID. |
The value is an integer that ranges from 1 to 9 or 1 to 16. You can enter ? to select a value as prompted. |
port-id |
Specifies a stack port ID. If no port ID is specified, the running status and statistics on all static ports are displayed. |
The value is 1 or 2. |
Usage Guidelines
When monitoring the static port status or locating faults on a static port, you can run the display interface stack-port command to obtain the running status and statistics on the static port. You can collect traffic statistics and locate faults on the static port according to the command output.
Example
# Display the running status and statistics about packets received and sent on a specified static port.
<HUAWEI> display interface stack-port 1/1
Stack-Port1/1 current state : UP (ifindex: 58)
Line protocol current state : UP
Description:
Stack Port, Hash arithmetic : According to SIP-XOR-DIP, The Maximum Frame Length is 12288
Internet protocol processing : disabled
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 0025-9e95-7c31
Current system time: 2014-03-14 16:20:42
Physical is STACK_PORT
Last 300 seconds input rate 81123 bits/sec, 27 packets/sec
Last 300 seconds output rate 705237 bits/sec, 60 packets/sec
Input: 7784 packets,2833662 bytes
7617 unicast,8 broadcast,128 multicast
30 errors,0 drops
Output: 16748 packets,24560682 bytes
10784 unicast,13 broadcast,563 multicast
0 errors,0 drops
Last 300 seconds input utility rate: 0.01%
Last 300 seconds output utility rate: 0.01%
---------------------------------------------
PortName Status
---------------------------------------------
10GE1/0/13 up
---------------------------------------------
The Number of Ports in Stack-Port : 1
The Number of UP Ports in Stack-Port : 1
Item |
Description |
---|---|
current state |
Physical status of the interface:
|
Line protocol current state |
Link layer protocol status of the interface.
|
Description |
Description of the interface. |
Hash arithmetic |
Load balancing mode of the interface. NOTE:
Only the CE6870EI does not support this field. |
The Maximum Frame Length |
Maximum frame length allowed by the interface. |
Internet protocol processing |
Internet protocol processing status. The value disabled indicates that the network protocol is disabled. |
IP Sending Frames' Format |
Encapsulation format of IP packets, which can be PKTFMT_ETHNT_2, Ethernet_802.3, or Ethernet_SNAP. |
Hardware address |
MAC address of the interface. |
Current system time |
Current system time. |
Last 300 seconds input rate |
Packet receiving rate (bits per second and packets per second) in the last 5 minutes. |
Last 300 seconds output rate |
Packet sending rate (bits per second and packets per second) in the last 5 minutes. |
Input |
Total number of packets and bytes received by the interface. |
Output |
Total number of packets and bytes sent by the interface. |
packets |
Total number of packets received or sent by the interface. |
bytes |
Total number of bytes received or sent by the interface. |
unicast |
Number of unicast packets received or sent by the interface. |
broadcast |
Number of broadcast packets received or sent by the interface. |
multicast |
Number of multicast packets received or sent by the interface. |
errors |
Number of error packets detected at the physical layer. |
drops |
Number of packets discarded at the physical layer. |
Last 300 seconds input utility rate |
Inbound bandwidth usage in the last 5 minutes. |
Last 300 seconds output utility rate |
Outbound bandwidth usage in the last 5 minutes. |
PortName |
Name of the member port. |
Status |
Status of the member port. |
The Number of Ports in Stack-Port |
Number of member ports. |
The Number of UP Ports in Stack-Port |
Number of member ports in Up state. |
display stack
Parameters
Parameter | Description | Value |
---|---|---|
member member-id |
Displays information about the specified member switch. |
The value is an integer that ranges from 1 to 9 or 1 to 16. You can enter ? to select a value as prompted. |
Usage Guidelines
You can run the display stack command to view information about the member switches in a stack, including the ID and device type of member devices.
Example
# Display information about the member switches in a stack.
<HUAWEI> display stack -------------------------------------------------------------------------------- MemberID Role MAC Priority DeviceType Description -------------------------------------------------------------------------------- 1 Slave 006c-2003-0740 100 CE6865-48S8CQ-EI 2 Slave 006c-2003-0780 150 CE6865-48S8CQ-EI 3 Standby 006c-2003-0730 100 CE6865-48S8CQ-EI 4 Master 006c-2003-0760 200 CE6865-48S8CQ-EI --------------------------------------------------------------------------------
Item |
Description |
---|---|
MemberID |
ID of the member switch. |
Role |
Member switch role:
|
MAC |
MAC address of the member switch. |
Priority |
Stack priority. |
DeviceType |
Device model of the member switch. |
Description |
Description of the member switch. |
display stack blocked-interface
Function
The display stack blocked-interface command displays packet congestion information on stack ports in a stack system.
Parameters
Parameter | Description | Value |
---|---|---|
member member-id |
Displays packet congestion information on ports of a specified member switch. |
The value is an integer that ranges from 1 to 9 or 1 to 16. You can enter ? to select a value as prompted. |
Example
# Display packet congestion information on stack ports in a stack.
<HUAWEI> display stack blocked-interface
Stack Blocked Interface:
-----------------------------------------------------------------
Status Block
Interface Physical Protocol MemberID Direction Packet-Type
-----------------------------------------------------------------
Stack-Port1/2 down down ALL both ALL
Stack-Port2/2 down down ALL both ALL
-----------------------------------------------------------------
Item |
Description |
---|---|
Interface |
Interface number. |
Status |
Interface status. |
Physical |
Interface physical status:
|
Protocol |
Interface protocol status:
|
Block |
Packet congestion state. |
MemberID |
Source member device ID of packets. This field displays ALL for all member devices. |
Direction |
Packet congestion direction:
|
Packet-Type |
Packet type:
|
display stack configuration
Parameters
Parameter | Description | Value |
---|---|---|
member member-id |
Displays the configuration of a specified member switch. member-id specifies the stack ID of a member switch. |
The value is an integer that ranges from 1 to 9 or 1 to 16. You can enter ? to select a value as prompted. |
all |
Displays the stack configurations of all member switches, including information about switches that are not present but have offline configurations. |
- |
Usage Guidelines
You can use the display stack configuration command to view the stack configuration of member switches, including the stack ID, domain ID, and stack priority for the current and the next startup of the member switch, and member port information of the stack port.
Example
# Display the stack configuration.
<HUAWEI> display stack configuration
Oper : Operation
Conf : Configuration
* : Offline configuration
Isolated Port : The port is in stack mode, but does not belong to any Stack-Port
Attribute Configuration:
-----------------------------------------
MemberID Domain Priority
Oper(Conf) Oper(Conf) Oper(Conf)
-----------------------------------------
1(1) 8811(8811) 255(255)
2(2) 8811(8811) 100(100)
-----------------------------------------
Stack-Port Configuration:
--------------------------------------------------------------------------------
Stack-Port Member Ports
--------------------------------------------------------------------------------
Stack-Port1/1 10GE1/0/16 10GE1/0/18
Stack-Port1/2 100GE1/0/4
Stack-Port2/1 10GE2/0/15 10GE2/0/17
Stack-Port2/2 10GE2/0/47
--------------------------------------------------------------------------------
Isolated Port Configuration:
10GE1/0/1 10GE1/0/24 10GE1/0/48 100GE1/0/5
Item |
Description |
---|---|
Attribute Configuration |
Stack attribute configuration. |
MemberID Oper(Conf) |
Stack ID of the member switch. Oper indicates the current stack ID, and Conf indicates the stack ID used for the next startup. To set the stack ID, run the stack member command. |
Domain Oper(Conf) |
Domain ID of the member switch. Oper indicates the current stack domain ID, and Conf indicates the stack domain ID used for the next startup. To set the domain ID, run the stack domain command. |
Priority Oper(Conf) |
Stack priority of the member switch. Oper indicates the current stack priority, and Conf indicates the stack priority used for the next startup. To set the stack priority, run the stack priority command. |
Stack-Port Configuration |
Stack port configuration. |
Stack-Port |
Number of a stack port. |
Member Ports |
Physical member ports of a stack port. |
Isolated Port Configuration |
An interface that has been configured as physical member port but has not been added to any stack port. |
display stack link-state last-down-reason
Function
The display stack link-state last-down-reason command displays the reason why the stack link protocol becomes Down.
Usage Guidelines
You can use this command to view the reason why the stack link protocol becomes Down for link fault location. The reason includes incorrect configuration or cable connection.
Example
<HUAWEI> display stack link-state last-down-reason Stack-Port : -------------------------------------------------------------------------------- Stack-Port : Stack-Port1/1 Stack-Port Protocol State : down Member Port(s) State : Interface : 10GE1/0/1 Protocol State : down Physical State : down Down Reason : The physical state is down. Down Time : 2014/11/12 15:41:51.384 --------------------------------------------------------------------------------
Item |
Description |
---|---|
Stack-Port |
Number of a stack port. |
Stack-Port Protocol State |
Stack port protocol state. |
Member Port(s) State |
Member port state. |
Interface |
Member port number. |
Protocol State |
Member port protocol state. |
Physical State |
Member port physical state. |
Down Reason |
Reason why the protocol becomes Down. |
Down Time |
Time the protocol becomes Down. |
Fabric-Port |
Fabric port number. |
Fabric-Port Protocol State |
Fabric port protocol state. |
display stack port event
Parameters
Parameter | Description | Value |
---|---|---|
number |
Specifies the number of events on each interface. |
The value is an integer that ranges from 1 to 50. The default value is 10. |
Usage Guidelines
You can run the display stack port event command to view the events of stack ports.
Example
# Display the events of stack interfaces.
<HUAWEI> display stack port event
Stack Port:
Total : 8
-------------------------------------------------------------------------------
Port SEQ Time Event Description
-------------------------------------------------------------------------------
Stack-Port1/1 1 2017-09-26 Receive the first legal LCM-hello packet.
09:44:57.641 (PeerMAC = 0034-2354-9900)
2 2017-09-26 The interface Stack-Port is up.
09:44:57.642
10GE1/0/1 1 2017-09-26 Receive the first legal LCM-detect packet.
09:42:39.015 (PeerMAC = 0034-2354-9900)
2 2017-09-26 The stack member port's link protocol state
09:44:57.133 is up.
Stack-Port2/1 1 2017-09-26 Receive the first legal LCM-hello packet.
09:45:04.187 (PeerMAC = 0052-7512-2400)
2 2017-09-26 The interface Stack-Port is up.
09:45:04.188
10GE2/0/1 1 2017-09-26 Receive the first legal LCM-detect packet.
09:45:03.688 (PeerMAC = 0052-7512-2400)
2 2017-09-26 The stack member port's link protocol state
09:45:04.187 is up.
-------------------------------------------------------------------------------
Item |
Description |
---|---|
Port |
Stack port and physical member interfaces. |
SEQ |
Event sequence number. |
Time |
Time the event is generated. |
Event Description |
Event description. |
display stack statistics
Example
# Display stack packet statistics.
<HUAWEI> display stack statistics
Hello : Hello packet
Detect : Detect packet
Stack Port Statistics:
--------------------------------------------------------
Port Packet Send Receive
--------------------------------------------------------
Stack-Port1/1 Hello 460 460
10GE1/0/1 Detect 921 946
Stack-Port2/1 Hello 460 460
10GE2/0/1 Detect 921 921
--------------------------------------------------------
Item |
Description |
---|---|
Port |
Stack port and physical member interfaces. |
Send |
Number of packets sent by an interface. |
Receive |
Number of packets received by an interface. |
Packet |
Packet type:
|
display stack topology
Parameters
Parameter |
Description |
Value |
---|---|---|
link |
Displays topology information about a static port. |
- |
neighbor |
Displays topology information about member ports of a static port. |
- |
Example
# Display stack topology information.
<HUAWEI> display stack topology
Stack Topology:
----------------------------------------------
Stack-Port 1 Stack-Port 2
MemberID Status Neighbor Status Neighbor
----------------------------------------------
1 up 2 -- --
2 up 1 -- --
----------------------------------------------
Stack Link:
----------------------------------------------------------------------------
Stack-Port Port Status PeerPort PeerStatus
----------------------------------------------------------------------------
Stack-Port1/1 10GE1/0/10 up 10GE2/0/10 up
Stack-Port2/1 10GE2/0/10 up 10GE1/0/10 up
----------------------------------------------------------------------------
Item |
Description |
---|---|
Stack Topology |
Stack topology information. |
MemberID |
Stack ID of a member switch. |
Stack-Port |
Stack port. |
Status |
Stack port status:
|
Neighbor |
Stack ID of a neighboring member switch. |
Stack Link |
Topology information about the stack management link. |
Port |
Physical member port ID. |
PeerPort |
Neighbor port ID. |
PeerStatus |
Neighbor port status. |
display stack troubleshooting
Parameters
Parameter | Description | Value |
---|---|---|
member member-id |
Specifies the ID of the device. |
The value is an integer that ranges from 1 to 9 or 1 to 16. You can enter ? to select a value as prompted. |
current |
Displays current fault event information. |
- |
history |
Displays historical fault event information. |
- |
Usage Guidelines
When a stack cannot be set up or is faulty, you can run the display stack troubleshooting command to check fault event information in the stack.
Example
# Display current fault event information in a stack.
<HUAWEI> display stack troubleshooting current
Total :1
----------------------------------------------------------------------------------------
Seq Time Event Description
----------------------------------------------------------------------------------------
1 2012-11-23 19:28:23.889 The devices belong to different stack domains,
and stack cannot be established. (MemberID = 1,
DomainID = 10, PeerMemberID = 2, PeerDomainID = 20)
----------------------------------------------------------------------------------------
Item |
Description |
---|---|
Seq |
Sequence number of an event. |
Time |
Time when an event is generated. |
Event Description |
Event description. |
display stack upgrade status
Usage Guidelines
When running the stack upgrade fast command to fast upgrade a stack system, you can run the display stack upgrade status command to view the upgrade status.
Example
# Display the stack upgrade status.
<HUAWEI> display stack upgrade status
Upgrade status : Succeeded
Base package : CE6881-V200R020C00.cc
Upgrade package : CE6881-V200R019C10.cc
Upgrade rollback time of standby: 60 min
Upgrade begin time : 2020/03/07 09:06:13
Upgrade end time : 2020/03/07 09:17:36
Upgrade duration time : 0 Hours 11 Minutes 23 Seconds
Upgrade procedure details:
Member: 2
Status: Finished
begin time: 2020/03/07 09:06:13
end time : 2020/03/07 09:12:34
duration : 0 Hours 6 Minutes 21 Seconds
Member: 1
Status: Finished
begin time: 2020/03/07 09:12:34
end time : 2020/03/07 09:17:36
duration : 0 Hours 5 Minutes 2 Seconds
Item |
Description |
---|---|
Upgrade status |
Upgrade status:
|
Base package |
Previous system software name. |
Upgrade package |
Upgraded system software name. |
Upgrade rollback time of standby |
Upgrade rollback time of the standby switch. |
Upgrade begin time |
Start date and time of the system upgrade. |
Upgrade end time |
End date and time of the system upgrade. |
Upgrade duration time |
System upgrade duration. |
Upgrade procedure details |
Upgrade details. |
Member |
Member switch ID. |
Status |
Upgrade status of member devices:
|
begin time |
Start date and time of the member switch upgrade. |
end time |
End date and time of the member switch upgrade. |
duration |
Member switch upgrade duration. |
display stack upgrade fast rollback-timer
Function
The display stack upgrade fast rollback-timer command displays the timeout period of a fast stack upgrade.
Usage Guidelines
Usage Scenario
You can run the display stack upgrade fast rollback-timer command to view the timeout period of a fast stack upgrade.
Precautions
This command displays the time taken to upgrade the standby switch instead of the entire stack system.
Example
# Display the timeout period of a fast stack upgrade.
<HUAWEI> display stack upgrade fast rollback-timer
Upgrade rollback time of standby: 120 min
Item |
Description |
---|---|
Upgrade rollback time of standby |
Timeout period of a fast upgrade. |
display system internal stack
Parameters
Parameter | Description | Value |
---|---|---|
querynum | Specifies the diagnosis information ID. |
The value is an integer. You can enter a question mark ? and select a value from the displayed value range. |
slot slot-id | Specifies the stack ID of a device. |
The value is an integer. You can enter a question mark (?) and select a value from the displayed value range. |
help | Displays detailed information about the querynum parameter. |
- |
Example
# Display detailed diagnosis information about a stack.
<HUAWEI> display system internal stack help
Show the stack dialog information:
The total number is 64
-------------------------------------------------------------------------------------------------------------
QueryNum HelpInfo
-------------------------------------------------------------------------------------------------------------
101 Display STACKMNG stack NVRAM information
102 Display STACKMNG local stack information
103 Display STACKMNG member port information
104 Display STACKMNG IFM information
105 Display PRMNG local information
106 Display STACKMNG component basic information
107 Display STACKMNG inner configuration information
108 Display STACKMNG DEVMA and PDEVM information
109 Display STACKMNG FEI and FES information
110 Display STACKMNG ERRDOWN information
111 Display STACKMNG FES conflict information
112 Display STACKMNG member port configuration information
113 Display STACKMNG Sip-Port information
114 Display STACKMNG dam component information
115 Display STACKMNG stack split information
116 Display STACKMNG fast split information
117 Display STACKMNG board status information
118 Display STACKMNG Cfg message information
119 Display STACKMNG local active troubleshooting information
121 Display STACKMNG ADP packet defensive information
122 Display STACKMNG local alarm information
151 Display RMMNG local information
152 Display RMMNG FES information
153 Display RMMNG DEVM information
154 Display RMMNG IFM information
155 Display RMMNG All Port information
156 Display RMMNG local active troubleshooting information
157 Display RMMNG ADP packet defensive information
181 Display CSTACKM local stack port information
182 Display CSTACKM cfg trace information
183 Display CSTACKM stack productor information
184 Display CSTACKM local active troubleshooting information
185 Display CSTACKM local history troubleshooting information
186 Display CSTACKM local alarm information
201 Display PRO local switch information
202 Display PRO global switch information
203 Display PRO local switch task information
204 Display PRO local data information
205 Display PRO global modid arranged
206 Display PRPRO remote information
207 Display PRPRO global thread information
208 Display PRPRO synchronization information
209 Display PRPRO LC present bitmap information
210 Display upgrade local information
211 Display upgrade report information
251 Display RMPRO local device information
252 Display RMPRO local thread information
253 Display RMPRO local upgrade information
301 Display LCM global variable of ADP
302 Display LCM packet statistics
303 Display LCM neighbor and TOPO information
304 Display LCM stack port information
305 Display LCM LSW port packet statistics and vlan bitmap
306 Display LCM local thread information
307 Display LCM local switch information
308 Display PRLCM local PRTOPO information
309 Display PRLCM local information
310 Display PRLCM local adp variable information
311 Display PRLCM all port link information
312 Display LCM resend message queue information of ADP
313 Display LCM packet statistics information of ADP
351 Display RMLCM resource handle information
352 Display RMLCM logic port information
353 Display RMLCM packet local information
-------------------------------------------------------------------------------------------------------------
Item |
Description |
---|---|
QueryNum |
Diagnostic information ID. |
HelpInfo |
Diagnostic information description. |
dual-active backup address
Function
The dual-active backup ip address command sets the backup IPv4 address for a stack member switch.
The dual-active backup ipv6 address command sets the backup IPv6 address for a stack member switch.
The undo dual-active backup ip address command deletes the backup IPv4 address set for the stack member switch.
The undo dual-active backup ipv6 address command deletes the backup IPv6 address set for the stack member switch.
By default, no backup IP address is set for a stack member switch.
Format
dual-active backup ip address ipv4-address { mask | mask-length } member { member-id | all }
dual-active backup ipv6 address { ipv6-address prefix-length | ipv6-address/prefix-length | ipv6-address link-local } [ cga ] member { member-id | all }
undo dual-active backup ip address [ ipv4-address { mask | mask-length } ] member { member-id | all }
undo dual-active backup ipv6 address { ipv6-address prefix-length | ipv6-address/prefix-length | ipv6-address link-local } [ cga ] member { member-id | all }
Parameters
Parameter | Description | Value |
---|---|---|
ipv4-address |
Specifies the backup IPv4 address. |
The value is in dotted decimal notation. |
mask |
Specifies the subnet mask of the IPv4 address. |
The value is in dotted decimal notation. |
mask-length |
Specifies the mask length of the IPv4 address. |
The value is an integer that ranges from 0 to 32. |
ipv6-address |
Specifies the backup IPv6 address. |
The value is a string of 32 hexadecimal digits, in the X:X:X:X:X:X:X:X format. |
prefix-length |
Specifies the prefix length of the IPv6 address. |
The value is an integer that ranges from 1 to 128. |
link-local |
Specifies the backup address as the link-local address. |
- |
cga |
Specifies the backup IPv6 address as a cryptographically generated address (CGA). |
- |
member member-id |
Sets the backup IP address for a specified member switch. |
The value is an integer that ranges from 1 to 9 or 1 to 16. You can enter ? to select a value as prompted. |
all |
Sets the backup IP address for all member switches. |
- |
Usage Guidelines
Usage Scenario
After a stack in which DAD has been configured splits, the management interface of the switch that fails the DAD competition is shut down. The management interface is not a reserved interface by default. You can log in to this switch only through the console interface instead of the management interface.
If the backup IP address is configured for a stack member switch and the switch fails the DAD competition, enable the management interface and switch the IP address to the backup IP address to prevent conflict with the management IP addresses of other switches. You can then remotely log in to the switch to locate and rectify faults.
Precautions
The configured backup IP address cannot be the same as the IP address of the stack management interface.
The backup IP address does not take effect until a stack splits. You can log in to a stack member using the backup IP address only after the stack splits.
dual-active detect enable
Function
The dual-active detect enable command enables dual-active detection (DAD) on the management interface.
The undo dual-active detect enable command disables DAD on the management interface.
By default, DAD is disabled on the management interface.
Usage Guidelines
Usage Scenario
When a stack splits, two master switches may exist on the network, affecting network operations. The DAD function can prevent this dual-active condition and reduce the impact of a stack split on the network.
When all stack member switches connect to a management network through their management interfaces, DAD can be implemented using the management interfaces. This mode does not occupy additional ports and does not require a DAD relay agent.
Precautions
To implement DAD through management interfaces, ensure that IP addresses are configured for management interfaces.
Example
# Enable the DAD function on the management interface.
<HUAWEI> system-view [~HUAWEI] interface meth 0/0/0 [~HUAWEI-MEth0/0/0] dual-active detect enable Warning: If DAD is configured on the management port, the detection takes a long time. You are advised to configure DAD in direct mode. Ensure that no device on the network has the same domain ID and management IP address as those of the local device. Otherwise, a dual-active fault will be detected. Continue? [Y/N]: y
dual-active detect mode direct
Function
The dual-active detect mode direct command configures dual-active detection (DAD) on a service port.
The undo dual-active detect command cancels the configuration.
By default, DAD is disabled on a service port.
Views
GE interface view, 10GE interface view, 25GE interface view, 40GE interface view, 100GE interface view
Usage Guidelines
Usage Scenario
You can configure DAD on a service port to ensure that only one switch becomes the master after a stack splits, which enhances stability of the stack.
Configuration Impact
After DAD is configured on a service port, the service port is blocked. Disabling DAD on a service port restores the forwarding function on the service port. If a loop exists on the network, a broadcast storm occurs.
dual-active detect mode relay
Function
The dual-active detect mode relay command configures dual-active detection (DAD) in relay mode on an Eth-trunk.
The undo dual-active detect command cancels the configuration.
By default, DAD in relay mode is disabled on an Eth-trunk.
dual-active exclude
Function
The dual-active exclude command excludes specified interfaces of a stack from error-down.
The undo dual-active exclude command cancels excluding specified interfaces of a stack from error-down.
By default, only physical member ports are excluded from error-down.
Format
dual-active exclude interface interface-type interface-number1 [ to interface-number2 ]
undo dual-active exclude interface interface-type interface-number1 [ to interface-number2 ]
Parameters
Parameter | Description | Value |
---|---|---|
interface interface-type interface-number1 [ to interface-number2 ] | Specifies the type and number of an interface:
|
The value of interface-number2 must be larger than that of interface-number1. |
Usage Guidelines
After the DAD detects a stack split, member switches compete to determine their active/recovery states. The member switch that fails in the competition shuts down all its service ports to prevent network flapping caused by MAC or IP address flapping. If some ports only transparently transmit packets, they do not affect network operation in a dual-active condition. If you want to retain services on these ports, specify the ports as excluded ports. These ports will not be shut down when a dual-active condition occurs.
dual-active restore
Function
The dual-active restore command restores all the blocked interfaces of the standby switch that enters the recovery state after its stack splits.
Usage Guidelines
After the stack in which DAD has been configured splits, the switch that wins the competition retains in Active state and works normally. The other switch that fails in the competition turns to the Recovery state and shuts down all its service ports except the excluded ones. Services on the shutdown ports are interrupted. If the switch in Active state fails or is removed from the network before the stack recovers, you can restore shutdown ports on the switch in Recovery state. Then the switch takes over services on the faulty switch to minimize impact on services.
dual-active proxy
Function
The dual-active proxy command enables the relay function on a specified interface of a proxy device.
The undo dual-active proxy command disables the relay function on a specified interface of a proxy device.
By default, the relay function is disabled on an interface.
interface stack-port
Function
The interface stack-port command creates a stack port and displays the stack port view.
The undo interface stack-port command deletes a stack port.
By default, no stack port is created.
Parameters
Parameter | Description | Value |
---|---|---|
member-id | Specifies the stack ID of a member switch. |
The value is an integer that ranges from 1 to 9 or 1 to 16. You can enter ? to select a value as prompted. |
port-id | Specifies a stack port number. |
The value is 1 or 2. |
load-balance profile (stack management view)
Function
The load-balance profile command displays the stack load balancing profile view or configures a stack load balancing profile.
The undo load-balance profile command deletes a stack load balancing profile.
By default, there is a stack load balancing profile default.
Only the CE6881, CE6881K, CE6881E, CE6863, CE6863K, CE6820, and CE5881 switches support this command.
Parameters
Parameter | Description | Value |
---|---|---|
profile-name |
Specifies the name of a stack load balancing profile. |
The value is a string of 1 to 31 case-sensitive characters without spaces. The string cannot contain the following characters: | > $. When double quotation marks are used around the string, spaces are allowed in the string. |
Usage Guidelines
Usage Scenario
You can create a stack load balancing profile, set a load balancing mode in the profile, and then apply the profile to a stack port to set a load balancing mode for the stack port.
Precautions
A maximum of 32 stack load balancing profiles (including the profile default) can be created.
The default stack load balancing profile default cannot be deleted.
load-balance profile (stack port view)
Function
The load-balance profile command configures a stack load balancing profile for a stack port.
The undo load-balance profile command restores the default stack load balancing profile for a stack port.
By default, there is a stack load balancing profile default for a stack port.
Only the CE6881, CE6881K, CE6881E, CE6863, CE6863K, CE6820, and CE5881 switches support this command.
Parameters
Parameter | Description | Value |
---|---|---|
profile-name |
Specifies the name of a stack load balancing profile. |
The value is a string of 1 to 31 case-sensitive characters without spaces. The string cannot contain the following characters: | > $. When double quotation marks are used around the string, spaces are allowed in the string. |
Usage Guidelines
Usage Scenario
To configure a stack load balancing profile for a stack port, run the load-balance profile command.
Prerequisites
A stack load balancing profile has been created using the load-balance profile profile-name command in the stack management view. The default stack load balancing profile is named default.
Example
# Configure a stack load balancing profile for a stack port.
<HUAWEI> system-view [~HUAWEI] stack [~HUAWEI-stack] load-balance profile temp [*HUAWEI-stack-load-balance-profile-temp] quit [*HUAWEI-stack] quit [*HUAWEI] interface stack-port 1/1 [*HUAWEI-Stack-Port1/1] load-balance profile temp
load-balance (stack load balancing profile view)
Function
The load-balance l2 command configures a load balancing mode for Layer 2 packets.
The load-balance l3 command configures a load balancing mode for Layer 3 packets.
The undo load-balance l2 command deletes the specified load balancing mode or restores the default load balancing mode of Layer 2 packets.
The undo load-balance l3 command deletes the specified load balancing mode or restores the default load balancing mode of Layer 3 packets.
- Layer 2 packets are load balanced based on dst-mac and src-mac.
- Layer 3 packets are load balanced based on src-ip, dst-ip, src-port, and dst-port.
Only the CE6881, CE6881K, CE6881E, CE6863, CE6863K, CE6820, and CE5881 switches support this command.
Format
load-balance l2 { sbsp | dst-mac | src-mac | eth-type | outer-vlan | inner-vlan } *
load-balance l3 { sbsp | src-ip | dst-ip | protocol | src-port | dst-port | outer-vlan | inner-vlan } *
undo load-balance l2 [ sbsp | dst-mac | src-mac | eth-type | outer-vlan | inner-vlan ] *
undo load-balance l3 [ sbsp | src-ip | dst-ip | protocol | src-port | dst-port | outer-vlan | inner-vlan ] *
Parameters
Parameter | Description | Value |
---|---|---|
sbsp |
Configures load balancing based on the source card and source port. |
- |
dst-mac |
Configures load balancing based on the destination MAC address. |
- |
src-mac |
Configures load balancing based on the source MAC address. |
- |
eth-type |
Configures load balancing based on the packet protocol type. |
- |
outer-vlan |
Configures load balancing based on the outer VLAN ID. |
- |
inner-vlan |
Configures load balancing based on the inner VLAN ID. |
- |
src-ip |
Configures load balancing based on the source IP address. |
- |
dst-ip |
Configures load balancing based on the destination IP address. |
- |
protocol |
Configures load balancing based on the protocol number. |
- |
src-port |
Configures load balancing based on the source port. |
- |
dst-port |
Configures load balancing based on the destination port. |
- |
Usage Guidelines
To configure a load balancing mode in a stack load balancing profile, run the load-balance command.
If no parameter is specified in the undo load-balance l2 or undo load-balance l3 command, the default load balancing mode is restored. If a parameter is specified, the specified load balancing mode is deleted.
In a stack, you are advised to configure the same load balancing mode for stack interfaces and internally connected interfaces. Otherwise, the hash factors for load balancing may be different from the configured ones when packets pass through internally connected interfaces.
load-balance (stack port view)
Function
The load-balance command configures a load balancing mode for a stack port.
The undo load-balance command restores the default load balancing mode of a stack port.
By default, the load balancing mode of a stack port is src-dst-ip.
The CE6870EI, CE6881, CE6881K, CE6881E, CE6863, CE6863K, CE6820, and CE5881 do not support this command.
Format
load-balance { dst-ip | dst-mac | src-dst-ip | src-dst-mac | src-ip | src-mac | enhanced profile profile-name }
undo load-balance [ dst-ip | dst-mac | src-dst-ip | src-dst-mac | src-ip | src-mac | enhanced profile profile-name ]
Parameters
Parameter | Description | Value |
---|---|---|
dst-ip |
Configures load balancing based on the destination IP address. |
- |
dst-mac |
Configures load balancing based on the destination MAC address. |
- |
src-dst-ip |
Configures load balancing based on source and destination IP addresses. |
- |
src-dst-mac |
Configures load balancing based on source and destination MAC addresses. |
- |
src-ip |
Configures load balancing based on the source IP address. |
- |
src-mac |
Configures load balancing based on the source MAC address. |
- |
enhanced profile profile-name |
Configures load balancing based on a load balancing profile for a stack port. |
The load balancing profile must already exist. |
Usage Guidelines
Usage Scenario
You can run the load-balance command to configure a load balancing mode for a stack port.
Prerequisites
Before specifying the enhanced profile profile-name parameter, you need to run the load-balance profile profile-name command in the system view to create a load balancing profile. The default load balancing profile name is default.
Precautions
A stack port performs per-flow load balancing. The local end and the remote end can use different load balancing modes.
mac-address (management interface view)
Function
The mac-address command configures the MAC address of a management interface.
The undo mac-address command deletes the MAC address configured for a management interface.
By default, the MAC address of a management interface is the same as the system MAC address.
Parameters
Parameter | Description | Value |
---|---|---|
mac-address |
Specifies a MAC address. |
The value is in the format H-H-H, where H is a 4-digit hexadecimal number. The MAC address cannot be all 0s, all Fs, or a multicast MAC address. |
Usage Guidelines
Usage Scenario
During the upgrade of a stack consisting of two switches using an upgrade tool, you can run the ip address ip-address and mac-address mac-address commands on one switch to set the IP address and MAC address of the management interface when the other switch is being restarted for an upgrade. In this way, the IP addresses and MAC addresses of the management interfaces on the two devices are different. You can log in to different switches for management.
If the MAC address of the management interface on a device is required to be different from the device's system MAC address, run the mac-address mac-address command to change the MAC address of the management interface.
Precautions
The MAC address of the management interface needs to be configured only when an upgrade tool is used to upgrade the stack.
port copper mode
Function
The port copper mode command configures a working mode for a 40GE port that has a high-speed cable installed.
The undo port copper mode command restores the default working mode for a 40GE port that has a high-speed cable installed.
- On the CE6856HI, 40GE ports that have high-speed cables installed can auto-negotiate to work in CR4 or SR4 mode. After being added to stack ports, the 40GE ports work in CR4 mode.
This command is supported only on the CE6856HI.
Parameters
Parameter | Description | Value |
---|---|---|
sr4 |
Configures a 40GE port that has a high-speed cable installed to work in SR4 mode. |
- |
cr4 |
Configures a 40GE port that has a high-speed cable installed to work in CR4 mode. |
- |
Usage Guidelines
Usage Scenario
If a CE6856HI sets up a stack system with another device model using 40GE ports that have high-speed cables installed, the connected device can enable the 40GE ports on both ends to work in the same mode through auto-negotiation. If the two ports work in different modes, they will become Down. If the 40GE ports on both ends work in SR4 mode through auto-negotiation, the running of the stack system may be affected. To ensure stable running of a stack system, when the CE6856HI sets up a stack system using 40GE ports that have high-speed cables installed, run the port copper mode cr4 command to configure the 40GE ports on both ends to work in CR4 mode.
Prerequisites:
The 40GE port already has a high-speed cable installed and has been configured as a stack physical member port using the port mode stack command.
Example
# Configure a 40GE port that has a high-speed cable installed to work in CR4 mode.
<HUAWEI> system-view [~HUAWEI] interface 40ge 1/0/1 [~HUAWEI-40GE1/0/1] port mode stack Warning: After the configuration is complete, 1.The interface will be configured with the port crc-statistics trigger error-down command. 2.The interface may go Error-Down (crc-statistics) because of no shutdown configuration.Continue? [Y/N]: y [*HUAWEI-40GE1/0/1] port copper mode cr4
port member-group
Function
The port member-group command adds member ports to a stack port.
The undo port member-group command deletes member ports from a stack port.
By default, a stack port has no member port.
Format
port member-group interface interface-type { interface-number1 [ to interface-number2 ] } &<1-32>
undo port member-group interface interface-type { interface-number1 [ to interface-number2 ] } &<1-32>
Parameters
Parameter | Description | Value |
---|---|---|
interface interface-type interface-number1 [ to interface-number2 ] |
Specifies physical member ports:
|
The value of interface-number2 must be larger than the value of interface-number1. |
Usage Guidelines
Usage Scenario
Run the port member-group command to add service ports to the stack port. Then the service ports are automatically configured as physical member ports.
Run the port mode stack or port mode stack interface command to configure service ports as physical member ports and then run the port member-group command to add the physical member ports to the stack port.
Precautions
- Physical member ports in a stack port must be the same type. For example, 10GE and 100GE ports cannot be added to the same stack port.
Example
# Add ports from 10GE1/0/1 to 10GE1/0/4 to stack port 1/1.
<HUAWEI> system view [~HUAWEI] interface stack-port 1/1 [~HUAWEI-Stack-Port1/1] port member-group interface 10ge 1/0/1 to 1/0/4 Warning: After the configuration is complete, 1.The interface will be configured with the port crc-statistics trigger error-do wn command. 2.The interface may go Error-Down (crc-statistics) because of no shutdown config uration.Continue? [Y/N]: y
port mode stack
Function
The port mode stack command configures a service port as a physical member port.
The undo port mode stack command restores a physical member port to a service port.
By default, a service port does not function as a physical member port.
Usage Guidelines
Usage scenario
When configuring the stacking function, configure service ports as physical member ports and add these member ports to a stack port so that member switches can forward service traffic to each other.
Follow-up Procedure
Run the stack-port command in the interface view or the port member-group command in the stack port view to add a physical member port to a stack port.
Precautions
After a 40GE port is configured as a physical member port, the training disable configuration will be automatically deleted from the port.
After a service port is configured as a physical member port or a physical member port is restored to a service port, the system clears packet statistics on the port.
After a port is configured as a physical member port, the port crc-statistics trigger error-down command configuration will be automatically performed on this port.
Example
# Configure service port 10GE1/0/1 as physical member ports.
<HUAWEI> system-view [~HUAWEI] interface 10ge 1/0/1 [~HUAWEI-10GE1/0/1] port mode stack Warning: After the configuration is complete, 1.The interface will be configured with the port crc-statistics trigger error-do wn command. 2.The interface may go Error-Down (crc-statistics) because of no shutdown config uration.Continue? [Y/N]: y
port mode stack interface
Function
The port mode stack interface command configures service ports as physical member ports.
The undo port mode stack interface command restores physical member ports as service ports.
By default, a service port does not function as a physical member port.
Format
port mode stack interface interface-type { interface-number1 [ to interface-number2 ] } &<1-32>
undo port mode stack interface interface-type { interface-number1 [ to interface-number2 ] } &<1-32>
Parameters
Parameter | Description | Value |
---|---|---|
interface-type { interface-number1 [ to interface-number2 ] } |
Specifies member ports:
|
- |
Usage Guidelines
Usage scenario
When configuring the stacking function, configure service ports as physical member ports and add these member ports to a stack port so that member switches can forward service traffic to each other.
Follow-up Procedure
Run the stack-port command in the interface view or the port member-group command in the stack port view to add a physical member port to a stack port.
Precautions
After a 40GE port is configured as a physical member port, the training disable configuration will be automatically deleted from the port.
After a service port is configured as a physical member port or a physical member port is restored to a service port, the system clears packet statistics on the port.
After a port is configured as a physical member port, the port crc-statistics trigger error-down command configuration will be automatically performed on this port.
Example
# Configure service ports from 10GE1/0/1 to 10GE1/0/4 as physical member ports.
<HUAWEI> system-view [~HUAWEI] stack [~HUAWEI-stack] port mode stack interface 10ge 1/0/1 to 1/0/4 Warning: After the configuration is complete, 1.The interface will be configured with the port crc-statistics trigger error-do wn command. 2.The interface may go Error-Down (crc-statistics) because of no shutdown config uration.Continue? [Y/N]: y
reset stack troubleshooting history
Function
The reset stack troubleshooting history command clears historical fault event information of a stack.
reset stack statistics
Parameters
Parameter |
Description |
Value |
---|---|---|
interface interface-type interface-number |
Specifies the type and number of an interface.
|
- |
set system mac-address
Function
The set system mac-address command sets the stack MAC address.
The undo set system mac-address command deletes the stack MAC address.
By default, the stack MAC address is not configured.
Parameters
Parameter | Description | Value |
---|---|---|
slot slot-id | Specifies the MAC address of a member switch as the stack MAC address. slot-id specifies the stack ID of a switch. |
The value is an integer that ranges from 1 to 9 or 1 to 16. You can enter ? to select a value as prompted. |
Usage Guidelines
If you want the stack to use the same MAC address every time after the stack restarts, run the set system mac-address command to set the MAC address of a member switch in the stack as the stack MAC address. Then the stack uses the configured MAC address every time after the stack restarts.
set system mac-address switch-delay
Function
The set system mac-address switch-delay command sets the delay in stack MAC address switchover.
The undo set system mac-address switch-delay command restores the default delay in stack MAC address switchover.
By default, the delay in stack MAC address switchover is 10 minutes.
Format
set system mac-address switch-delay { delay-time | immediately }
undo set system mac-address switch-delay
Parameters
Parameter | Description | Value |
---|---|---|
delay-time | Specifies the delay in stack MAC address switchover. |
The value is an integer that ranges from 0 to 60, in minutes. |
immediately | Indicates immediate switch over of the stack MAC address. |
- |
Usage Guidelines
Usage scenario
In a stack, if the owner of the stack MAC address leaves the stack and does not rejoin the stack within the delay in stack MAC address switchover, the master switch uses its own MAC address as the new stack MAC address. If the member switch rejoins the stack within the delay, its own MAC address is still the stack MAC address.
If the delay in MAC address switchover is set to 0, stack MAC address switchover will not be performed.
Precautions
If a stack functions as a Layer 3 gateway, it is recommended that the stack MAC address not be switched.
set system mac-address inconsistence-alarm
Function
The set system mac-address inconsistence-alarm command sets the delay in generating an alarm when the stack system MAC address is inconsistent with the member system MAC address.
The undo set system mac-address inconsistence-alarm command restores the default delay.
The default delay is 10 minutes.
Format
set system mac-address inconsistence-alarm { delay-time | off }
undo set system mac-address inconsistence-alarm
Parameters
Parameter | Description | Value |
---|---|---|
delay-time | Specifies the delay in generating an alarm when the stack system MAC address is inconsistent with the member system MAC address. |
The value is an integer that ranges from 0 to 60, in minutes. The value 0 indicates that an alarm is generated immediately. |
off | Disable the function that generates an alarm when the stack system MAC address is inconsistent with the member system MAC address. |
- |
stack alarm link-topology enable
Function
The stack alarm link-topology enable command enables the stack chain topology alarm.
The undo stack alarm link-topology enable command disables the stack chain topology alarm.
By default, the stack chain topology alarm is enabled.
Usage Guidelines
When more than two stack member switches set up a stack in chain topology, this stack is less reliable and more likely to split than the stack set up in ring topology. By default, a stack sends a chain topology alarm to indicate a risk. If you do not focus on this alarm, disable the alarm.
stack alarm single-link enable
Function
The stack alarm single-link enable command enables the stack single-link alarm.
The undo stack alarm single-link enable command disables the stack single-link alarm.
By default, the stack single-link alarm is enabled.
stack competition-delay
Function
The stack competition-delay command configures the stack competition delay.
The undo stack competition-delay command restores the default stack competition delay.
By default, the stack competition delay is 0 seconds.
Format
stack member member-id competition-delay delay-time
undo stack member member-id competition-delay [ delay-time ]
Parameters
Parameter | Description | Value |
---|---|---|
member member-id |
Specifies the stack competition delay for a member switch. |
The value is an integer that ranges from 1 to 9 or 1 to 16. You can enter ? to select a value as prompted. |
delay-time |
Sets the stack competition delay. |
The value is an integer that ranges from 0 to 60, in seconds. |
Usage Guidelines
During a stack restart, the startup time of member switches varies. If the startup time difference is large, the master, standby, and slave roles may change or some member switches restart multiple times. Assume that three switches A, B, and C set up a stack in chain topology and switch B starts slowly. After the stack restarts, switches A and C finish starting first and compete to be the master switch, whereas switch B has not finished starting. After switch B finishes starting, switches A and C perform stack competition. The switch that fails stack competition restarts again and then joins the stack.
To prevent this problem, before the stack restart, configure the stack competition delay for the switches that start quickly so that stack competition begins after the switch that starts slowly finishes starting.
stack description
Function
The stack description command configures the description of a stack member switch.
The undo stack description command deletes the description of a stack member switch.
By default, no description is configured for a stack member switch.
Format
stack member member-id description description
undo stack member member-id description [ description ]
Parameters
Parameter | Description | Value |
---|---|---|
member member-id | Specifies the stack ID of a stack member switch. |
The value is an integer that ranges from 1 to 9 or 1 to 16. You can enter ? to select a value as prompted. |
description | Specifies the description. |
The value is a string of 1 to 80 case-sensitive characters with spaces supported. |
stack domain
Function
The stack domain command sets the stack domain ID of a member switch.
The undo stack domain command restores the default domain ID of a member switch.
By default, no stack domain ID is configured on a device.
Format
stack member { member-id | all } domain domain-id
undo stack member { member-id | all } domain [ domain-id ]
Parameters
Parameter | Description | Value |
---|---|---|
member member-id |
Sets the stack domain ID of a specified member switch. member-id specifies the stack ID of a member switch. |
The value is an integer that ranges from 1 to 9 or 1 to 16. You can enter ? to select a value as prompted. |
all |
Sets the stack domain IDs of all member switches. |
- |
domain-id |
Sets a new stack domain ID. |
The value is an integer that ranges from 1 to 65535. |
Usage Guidelines
Usage Scenario
On a network, you can configure different stack domain IDs for different stacks to differentiate the stacks.
Precautions
Only the devices with the same stack domain ID can form a stack.
When you set a new value for the default stack domain ID, the configuration takes effect after you save the configuration. When you modify the value, restart the switch for the configuration to take effect.
stack dual-active detect enhanced
Function
The stack dual-active detect enhanced command enables the enhanced stack dual-active detection (DAD) function for a stack.
The undo stack dual-active detect enhanced command disables the enhanced stack DAD function.
By default, the enhanced stack DAD function is disabled.
This function is not supported on the CE5855E, CE6881, CE6881K, CE6881E, CE6863, CE6863K, CE6820, and CE5881.
Usage Guidelines
Usage Scenario
If high convergence performance is required in case of a stack fault, enable the enhanced stack DAD function. The enhanced stack DAD function enhances the DAD mechanism and improves the convergence performance in case of a stack fault or recovery.
Precautions
The enhanced stack DAD function is supported only when DAD in direct mode is implemented through service ports or DAD in relay mode is implemented through Eth-Trunk interfaces.
stack (load-balance-profile view)
Function
The stack command sets a load balancing mode for a stack port or fabric port in a load balancing profile.
The undo stack command restores the default load balancing mode for a stack port or fabric port in a load balancing profile.
By default, load balancing on a stack port or fabric port in a load balancing profile is based on hash-mode (1) and universal-id (1).
The CE6881, CE6881K, CE6881E, CE6870EI, CE6863, CE6863K, CE6820, and CE5881 do not support this command.
Format
stack { hash-mode hash-mode-id | universal-id universal-id } *
undo stack [ hash-mode [ hash-mode-id ] | universal-id [ universal-id ] ] *
Parameters
Parameter |
Description |
Value |
---|---|---|
hash-mode hash-mode-id |
Specifies the hash algorithm for load balancing. |
The value is an integer that ranges from 1 to 9. The default value is 1. |
universal-id universal-id |
Specifies the hash algorithm offset. |
The value is an integer that ranges from 1 to 8. The default value is 1. |
Usage Guidelines
Usage Scenario
- When the destination MAC address and destination IP address change, you are advised to set hash-mode-id to 1, 5, or 7.
- When the source MAC address and source IP address change, you are advised to set hash-mode-id to 5 or 6.
- When the source and destination IP addresses change, you are advised to set hash-mode-id to 8.
- When the source or destination MAC address changes, you are advised to set hash-mode-id to 9.
- When the source MAC address changes, you are advised to set hash-mode-id to 1, 2, 6, or 7.
- In a stack, you are advised to set hash-mode-id to 1.
- When the destination IP address changes, you are advised to set hash-mode-id to 5 or 6.
- When the source IP address changes, you are advised to set hash-mode-id to 1, 5, 7, or 9.
Other hash-mode-id values apply to uneven incoming traffic. In this situation, the default hash algorithm is recommended.
Precautions
If you run the stack command multiple times, only the latest configuration takes effect.
stack member
Function
The stack member command sets the stack member ID of a member switch.
By default, the stack member ID of a device is 1.
Parameters
Parameter | Description | Value |
---|---|---|
member-id |
Sets the stack member ID of a specified member switch. |
The value is an integer that ranges from 1 to 9 or 1 to 16. You can enter ? to select a value as prompted. |
renumber new-member-id |
Specifies a new stack member ID. |
The value is an integer that ranges from 1 to 9 or 1 to 16. You can enter ? to select a value as prompted. |
inherit-config |
Specifies that the stack configuration before the restart retains after the stack member ID of the device is changed and the device restarts. If the parameter is not specified, the current stack configuration is lost after the device restarts, and the configuration related to the new stack member ID in the configuration file takes effect. If there are offline configurations related to the new stack member ID on the device, the parameter cannot be specified. |
- |
Usage Guidelines
Usage Scenario
The stack member ID can be used to identify and manage member switches. Each member switch in a stack has a unique stack member ID.
Precautions
After setting the stack member ID, restart the switch to make the configuration take effect.
If you specify inherit-config, the switch inherits the original stack configuration after it restarts, including the stack priority, stack domain ID, and physical member port configuration.
If you do not specify inherit-config, the current stack configuration is lost after the switch restarts, and the configuration related to the new stack member ID in the configuration file takes effect.
For example, if a switch uses a stack member ID 1 and has the following stack priority configuration:# stack member 1 priority 150 #
If inherit-config is specified when the stack member ID is changed to 2, member ID 2 will inherit the stack priority configuration of member ID 1 after the switch restarts. For example:# stack member 1 priority 150 // Configuration of member ID 1 becomes the offline configuration. # stack member 2 priority 150 // Member ID 2 inherits the stack priority configuration of member ID 1. #
If inherit-config is not specified, member ID 2 will not inherit the stack priority configuration of member ID 1 after the switch restarts. For example:# stack member 1 priority 150 // Configuration of member ID 1 becomes the offline configuration, and configuration of member ID 2 is empty. #
If the switch already has offline configuration of member ID 2 before restarting, for example:# stack member 1 priority 150 # stack member 2 priority 200 // The switch already has offline configuration of member ID 2 before restarting #
When the stack member ID is changed to 2, inherit-config cannot be specified. The switch will use the configuration of member ID 2 in the configuration file after restarting. For example,# stack member 1 priority 150 // Configuration of member ID 1 becomes the offline configuration # stack member 2 priority 200 // Configuration of member ID 2 in the configuration file takes effect. #
If the configuration file contains offline configuration for the new stack member ID, do not specify inherit-config in the command.
Common service port configurations will be lost after the stack member ID is changed and the switch restarts.
stack-port
Function
The stack-port command configures a service port as a physical member port and adds it to a stack port.
The undo stack-port command deletes a physical member port from a stack port.
By default, a service port is not added to any stack port.
Parameters
Parameter | Description | Value |
---|---|---|
member-id |
Specifies the stack ID of a member switch. |
The value is an integer that ranges from 1 to 9 or 1 to 16. You can enter ? to select a value as prompted. |
port-id |
Specifies a stack port number. |
The value is 1 or 2. |
Usage Guidelines
Usage Scenario
Run the stack-port command to add service ports to the stack port. Then the service ports are automatically configured as physical member ports.
Run the port mode stack or port mode stack interface command to configure service ports as physical member ports and then run the stack-port command to add the physical member ports to the stack port.
Prerequisites
A stack port has been created using the interface stack-port command.
- Physical member ports in a stack port must be the same type. For example, 10GE and 40GE ports cannot be added to the same stack port.
stack port-link threshold
Function
The stack port-link threshold command sets the alarm threshold for the number of stack links.
The undo stack port-link threshold command restores the default alarm threshold for the number of stack links.
By default, the alarm threshold for the number of stack links is 1.
Parameters
Parameter | Description | Value |
---|---|---|
alarm-threshold | Specifies the alarm threshold for the number of stack links. When the number of available stack links is smaller than the alarm threshold, the stack reports an alarm. |
The value is an integer that ranges from 1 to 16. The default value is 1. |
Usage Guidelines
In a stack, multiple physical member ports can be added to the same stack port to improve stack link bandwidth and reliability.
To ensure stack link bandwidth and reliability, set the alarm threshold for the number of stack links. When some stack links become faulty, the system sends an alarm if the number of available stack links is smaller than the alarm threshold. When the number of available stack links is greater than or equal to the alarm threshold, the system sends a clear alarm.
stack priority
Function
The stack priority command sets the stack priority of a member switch.
The undo stack priority command restores the default priority of a member switch.
By default, the stack priority is 100.
Format
stack member { member-id | all } priority priority-value
undo stack member { member-id | all } priority [ priority-value ]
Parameters
Parameter | Description | Value |
---|---|---|
member member-id |
Sets the stack priority of a specified member switch. member-id specifies the stack ID of a member switch. |
The value is an integer that ranges from 1 to 9 or 1 to 16. You can enter ? to select a value as prompted. |
all |
Sets the stack priority of all member switches. |
- |
priority-value |
Sets the stack priority. |
The value is an integer that ranges from 1 to 255. |
stack upgrade fast
Usage Guidelines
Usage Scenario
You can use the stack upgrade fast command to fast upgrade switches in a stack, which reduces the impact of device upgrade on services.
Precautions
In a fast stack upgrade:
Only the stack containing two member switches supports fast upgrade.
If 40GE high-speed cables are used to connect stack member devices, you cannot fast upgrade switches from versions earlier than V100R003C00 to V100R003C00 or a later version.
When 40GE QSFP+ AOC cables are used for stack connections, the stack cannot be upgraded using fast upgraded from a version earlier than V100R005C10 to V100R005C10 or a later version.
During a fast stack upgrade, to shorten traffic interruptions, ensure that upstream and downstream devices are dual-homed to stacked devices using Eth-Trunk.
It is recommended a backup IP address be configured for the stack management interface before a fast upgrade to prevent a failure to manage member devices when the stack fails the fast upgrade and splits.
Example
# Configure fast upgrade for switches in a stack.
<HUAWEI> system-view [~HUAWEI] stack [~HUAWEI-stack] stack upgrade fast slot 2: Next startup system software: flash:/CE6881-V200R020C10.cc Next startup saved-configuration file: flash:/vrpcfg.cfg The configuration information of any other board is the same as that of slot 2. Warning: Current configuration will be saved to the next startup saved-configuration file. System will reboot. Continue? [Y/N]: y
stack upgrade fast rollback-timer
Function
The stack upgrade fast rollback-timer command sets a timeout period for a fast stack upgrade.
By default, a timeout period for a fast stack upgrade is 60 minutes.
Parameters
Parameter | Description | Value |
---|---|---|
time |
Sets a timeout period. |
The value is an integer that ranges from 60 to 240, in minutes. |
Usage Guidelines
Usage Scenario
In a fast stack upgrade, you can run the stack upgrade fast rollback-timer command to set the timeout period of the standby switch (or group to which the standby switch belongs). If the upgrade fails within the specified timeout period, the standby switch will roll back to the previous version.
Precautions
This command specifies the time taken to upgrade the switch that functions as the standby switch before the upgrade instead of the entire stack system.
uplink-port enable
Function
The uplink-port enable command configures the current port as an uplink port.
The undo uplink-port enable command cancels configuring the current port as an uplink port.
By default, an interface is not configured as an uplink port.
CE9860EI, CE5855E, CE6881, CE6881K, CE6881E, CE6863, CE6863K, CE6820, and CE5881 do not support this command.
Views
GE interface view, 10GE interface view, 25GE interface view, 40GE interface view, 100GE interface view, Eth-Trunk interface view, port group view
Usage Guidelines
Usage Scenario
After the enhanced stack DAD function is enabled, comparing the uplink port physical status on stack members is added to DAD competition rules. That is, the switch on which uplink ports are not all Down wins the competition, and the switch on which uplink ports are all Down fails the competition. To specify uplink ports on a switch, run the uplink-port enable command.
Precautions
- A stack supports the configuration of up to 16 uplink ports.
- It is not allowed to configure stack member ports and M-LAG peer-link interfaces as uplink ports.
- It is not allowed to configure Eth-Trunk member ports and aggregated ports as uplink ports.
- If no uplink ports are configured on a stack member, uplink ports on this member are considered Up.
- Uplink ports need to transmit uplink traffic. Do not configure the ports that do not transmit uplink port as uplink ports.
- description (stack port view)
- display dual-active
- display interface stack-port
- display stack
- display stack blocked-interface
- display stack configuration
- display stack link-state last-down-reason
- display stack port event
- display stack statistics
- display stack topology
- display stack troubleshooting
- display stack upgrade status
- display stack upgrade fast rollback-timer
- display system internal stack
- dual-active backup address
- dual-active detect enable
- dual-active detect mode direct
- dual-active detect mode relay
- dual-active exclude
- dual-active restore
- dual-active proxy
- interface stack-port
- load-balance profile (stack management view)
- load-balance profile (stack port view)
- load-balance (stack load balancing profile view)
- load-balance (stack port view)
- mac-address (management interface view)
- port copper mode
- port member-group
- port mode stack
- port mode stack interface
- reset stack troubleshooting history
- reset stack statistics
- set system mac-address
- set system mac-address switch-delay
- set system mac-address inconsistence-alarm
- stack
- stack alarm link-topology enable
- stack alarm single-link enable
- stack competition-delay
- stack description
- stack domain
- stack dual-active detect enhanced
- stack (load-balance-profile view)
- stack member
- stack-port
- stack port-link threshold
- stack priority
- stack upgrade fast
- stack upgrade fast rollback-timer
- uplink-port enable