No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Command Reference

CloudEngine 8800, 7800, 6800, and 5800 V200R002C50

This document describes all the configuration commands of the device, including the command function, syntax, parameters, views, default level, usage guidelines, examples, and related commands.
Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Stack Configuration Commands

Stack Configuration Commands

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.

Format

description description

undo description

Parameters

Parameter Description Value
description Specifies the description. The value is a string of 1 to 242 case-sensitive characters with spaces supported.

Views

Stack port view

Default Level

2: Configuration level

Usage Guidelines

To facilitate stack port management and identification, you can configure descriptions for stack ports. For example, you can set the ID of the peer device connected to a stack port as the description of the port.

Example

# Configure a description for a stack port.

<HUAWEI> system-view
[~HUAWEI] interface stack-port 1/1
[~HUAWEI-Stack-Port1/1] description To_member2
Related Topics

display dual-active

Function

The display dual-active command displays the dual-active detection (DAD) configuration.

Format

display dual-active [ proxy ]

Parameters

Parameter Description Value
proxy

Displays information about the proxy device.

-

Views

All views

Default Level

1: Monitoring level

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
Table 4-1  Description of the display dual-active command output

Item

Description

Stack domainID Stack domain ID.

Dual-active status

Current DAD status:
  • Normal: The stack is working properly.

  • Conflict: A DAD scenario occurs.

  • Initial: The protocol status of the interface that has DAD configured is not Up. After the stack splits, DAD may fail.

Dual-active detect mode

DAD mode:
  • Direct: DAD in direct mode

  • Relay: DAD in relay mode

Dual-active detect configuration of MEth

Whether DAD is enabled on the management interface:
  • Enable: DAD is enabled on the management interface.

  • Disable: DAD is disabled 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.

NOTE:

If the relay agent runs a software version earlier than V200R001C00, the interface protocol status will display Down, but the DAD function can still work properly.

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.

Format

display interface stack-port [ member-id/port-id ]

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.

Views

All views

Default Level

1: Monitoring level

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

Table 4-2  Description of the display interface stack-port command output

Item

Description

current state

Physical status of the interface:
  • UP: The physical status of the interface is Up.

  • DOWN: The physical status of the interface is Down.

  • Administratively Down: The administrator has run the shutdown command on the interface.

Line protocol current state

Link layer protocol status of the interface.
  • UP: The link layer protocol status of the interface is Up.

  • DOWN: The link layer protocol status of the interface is Down or no IP address is assigned to the interface.

Description

Description of the interface.

Hash arithmetic

Load balancing mode of the interface.

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.

This field indicates the number of CRC error packets detected on an interface of a CE6880-48S4Q2CQ-EI/CE6880-48T4Q2CQ-EI.

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 snmp-agent trap feature-name dad all

Function

The display snmp-agent trap feature-name dad all command displays whether all DAD traps are enabled.

Format

display snmp-agent trap feature-name dad all

Parameters

None

Views

All views

Default Level

3: Management level

Usage Guidelines

You can run the display snmp-agent trap feature-name dad all command to check status of all DAD traps. This status can be configured using the snmp-agent trap enable feature-name dad command.

Example

# View whether all DAD traps are enabled.

<HUAWEI> display snmp-agent trap feature-name dad all
------------------------------------------------------------------------------
Feature name: DAD
Trap number : 4
------------------------------------------------------------------------------
Trap name                      Default switch status   Current switch status
hwDadConflictDetect            on                      on
hwDadConflictResume            on                      on
hwDadPortProtocolAlarm         on                      on
hwDadPortProtocolAlarmResume   on                      on
Table 4-3  Description of the display snmp-agent trap feature-name dad all command output

Item

Description

Feature name

Name of the module where the trap is generated

Trap number

Number of traps.

Trap name

Name of trap.

Default switch status

Default status of a trap

  • on: The trap function is enabled.
  • off: The trap function is disabled.

Current switch status

Current status of a trap

  • on: The trap function is enabled.
  • off: The trap function is disabled.

This status can be configured using the snmp-agent trap enable feature-name dad command.

display snmp-agent trap feature-name stackmng all

Function

The display snmp-agent trap feature-name stackmng all command displays whether all STACKMNG traps are enabled.

Format

display snmp-agent trap feature-name stackmng all

Parameters

None

Views

All views

Default Level

3: Management level

Usage Guidelines

You can run the display snmp-agent trap feature-name stackmng all command to check status of all STACKMNG traps. This status can be configured using the snmp-agent trap enable feature-name stackmng command.

Example

# View whether all STACKMNG traps are enabled.

<HUAWEI> display snmp-agent trap feature-name stackmng all
------------------------------------------------------------------------------
Feature name: STACKMNG
Trap number : 28
------------------------------------------------------------------------------
Trap name                      Default switch status   Current switch status
hwFabricLinkLimitAlarm         on                      on
hwFabricLinkLimitAlarmResume   on                      on
hwFabricLinkProtocolAlarm      on                      on
......
Table 4-4  Description of the display snmp-agent trap feature-name stackmng all command output

Item

Description

Feature name

Name of the module where the trap is generated

Trap number

Number of traps.

Trap name

Name of trap.

Default switch status

Default status of a trap

  • on: The trap function is enabled.
  • off: The trap function is disabled.

Current switch status

Current status of a trap

  • on: The trap function is enabled.
  • off: The trap function is disabled.

This status can be configured using the snmp-agent trap enable feature-name stackmng command.

display stack

Function

The display stack command displays information about the member switches in a stack or SVF.

Format

display stack [ member member-id ]

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.

Views

All views

Default Level

1: Monitoring level

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        CE6850-48S4Q-EI
 2       Slave    006c-2003-0780   150        CE6850-48S4Q-EI
 3       Standby  006c-2003-0730   100        CE6850-48T4Q-EI
+4       Master   006c-2003-0760   200        CE6850-48T4Q-EI
--------------------------------------------------------------------------------
+ indicates the device where the activated management interface resides.

# Display information about the member switches in an SVF system.

<HUAWEI> display stack
Total Spine Number : 2
Total Leaf Number  : 3
--------------------------------------------------------------------------------
MemberID Role     MAC              Priority   DeviceType         Description
--------------------------------------------------------------------------------
 1       Standby  ac4e-915c-a530   200        CE6850-48S4Q-EI
+2       Master   ac4e-915c-a430   150        CE6850-48S4Q-EI
 101     Leaf     0011-2233-4400   N/A        CE6810-48S4Q-EI
 102     Leaf     0020-1292-4c00   N/A        CE6810-48S4Q-EI
 103     Leaf     0020-1050-dc00   N/A        CE6810-48S4Q-EI
--------------------------------------------------------------------------------
+ indicates the device where the activated management interface resides.
Table 4-5  Description of the display stack command output

Item

Description

MemberID

ID of the member switch.

Role

Member switch role:
  • Master: master switch

  • Standby: standby switch

  • Slave: slave switch

  • Leaf: leaf switch in the SVF system

MAC

MAC address of the member switch.

Priority

Stack priority.

DeviceType

Device model of the member switch.

Description

Description of the member switch.

Total Spine Number

Number of parent switches in the SVF system.

Total Leaf Number

Number of leaf switches in the SVF system.

display stack blocked-interface

Function

The display stack blocked-interface command displays packet congestion information on stack ports in a stack or on member ports of a fabric port in an SVF system.

Format

display stack blocked-interface [ member member-id ]

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.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

None.

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
-----------------------------------------------------------------

# Display packet congestion information on member ports of a fabric port in an SVF system.

<HUAWEI> display stack blocked-interface
BUM: The broadcast, unknown unicast or multicast packets

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
-----------------------------------------------------------------

Fabric Blocked Interface:
-----------------------------------------------------------------
                      Status        Block
Interface        Physical Protocol MemberID Direction Packet-Type
-----------------------------------------------------------------
10GE1/0/1        down     down     ALL      both      ALL
10GE2/0/1        down     down     ALL      both      ALL
10GE2/0/2        up       up       ALL      egress    BUM
-----------------------------------------------------------------
Table 4-6  Description of the display stack blocked-interface command output

Item

Description

Interface

Interface number.

Status

Interface status.

Physical

Interface physical status:
  • up: The interface is enabled.
  • down: The interface is disabled.

Protocol

Interface protocol status:
  • up: The interface is enabled.
  • down: The interface is disabled.

Block

Packet congestion state.

MemberID

Source member device ID of packets. This field displays ALL for all member devices.

Direction
Packet congestion direction:
  • ingress: inbound

  • egress: outbound

  • both: bidirectional

Packet-Type
Packet type:
  • BUM: broadcast, unknown unicast, and multicast packets

  • ALL: all packets

display stack configuration

Function

The display stack configuration command displays the stack or SVF configuration.

Format

display stack configuration [ member member-id | all | leaf ]

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.

-

leaf

Displays the stack configurations of leaf switches in an SVF system.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

You can use the display stack configuration command to view the stack or SVF 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 or fabric 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       Switch Mode     Uplink Port
Oper(Conf)   Oper(Conf)      Oper(Conf)      Oper(Conf)      Oper(Conf)
----------------------------------------------------------------------------
1(1)         1(1)            150(150)        Auto(Auto)      4*10GE(4*10GE)
2(2)         1(1)            100(100)        Auto(Auto)      4*40GE(4*40GE)
----------------------------------------------------------------------------

Stack-Port Configuration:
--------------------------------------------------------------------------------
Stack-Port      Member Ports
--------------------------------------------------------------------------------
Stack-Port1/1   10GE1/0/1           10GE1/0/2
Stack-Port2/1   10GE2/0/1           10GE2/0/2
--------------------------------------------------------------------------------

Isolated Port Configuration:
10GE1/0/3           10GE1/0/4           10GE2/0/3           10GE2/0/4

# Display the SVF 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
                or Fabric-Port

System Forwarding Model:
-------------------------------
Oper               Conf
-------------------------------
distributed        distributed
------------------------------- 

Spine Attribute Configuration:
--------------------------------------------------
 MemberID         Domain          Priority
Oper(Conf)       Oper(Conf)       Oper(Conf)
--------------------------------------------------
1(1)             1(1)             255(255)
2(2)             1(1)             100(100)
--------------------------------------------------

Stack-Port Configuration:
-------------------------------------------------------------------------------
Stack-Port     Member Ports
-------------------------------------------------------------------------------
Stack-Port1/1  40GE1/0/1      40GE1/0/2
Stack-Port2/1  40GE2/0/1      40GE2/0/2
-------------------------------------------------------------------------------

Fabric-Port Configuration:
---------------------------------------------------------------------------------
Fabric-Port     BindMember   Ports
---------------------------------------------------------------------------------
Fabric-Port1    101          10GE1/0/1   10GE2/0/1
Fabric-Port2    102          10GE1/0/2   10GE2/0/2
---------------------------------------------------------------------------------

Isolated Port Configuration:
10GE1/0/3     10GE1/0/4     10GE2/0/3     10GE2/0/4

Leaf Attribute Configuration:
-------------------------------------------------
MemberID      Switch Mode       Uplink Port
              Oper(Conf)         Oper(Conf)
-------------------------------------------------
101           Auto(Auto)         4*10GE(4*10GE)
102           Auto(Auto)         4*10GE(4*10GE)
-------------------------------------------------
Table 4-7  Description of the display stack configuration command output

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.

System Forwarding Model Forwarding mode information in the SVF system.
Oper Forwarding mode that has taken effect in the SVF system.
Conf Forwarding mode that will take effect in the SVF system after next startup.

Spine Attribute Configuration

Stack configuration of the parent switch in the SVF system.

Fabric-Port Configuration

Fabric port configuration.

Fabric-Port

Fabric port.

BindMember

Leaf ID that is bound to the fabric port.

Ports

Member ports of the fabric port.

Leaf Attribute Configuration

Attribute configuration of a leaf switch in an SVF system.

MemberID

Leaf ID.

Switch Mode

Oper(Conf)

Working mode of a switch.

Oper indicates the current working mode, and Conf indicates the working mode for the next startup.

Uplink Port

Oper(Conf)

Type of the port connects a leaf switch to a parent switch.

Oper indicates the current port type, and Conf indicates the port type for the next startup.

Isolated Port Configuration

An interface that has been configured as physical member port but has not been added to any stack port or fabric port.

display stack topology

Function

The display stack topology command displays stack or SVF topology information.

Format

display stack topology [ link | neighbor ]

Parameters

Parameter

Description

Value

link

Displays topology information about a static port or fabric port.

-

neighbor

Displays topology information about member ports of a static port or fabric port.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

None

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
----------------------------------------------------------------------------

# Display SVF 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          --     --
----------------------------------------------

Fabric Topology:
----------------------------------------------------------
SpineMemberID    Fabric-Port       LeafMemberID    Status
----------------------------------------------------------
1                Fabric-Port1      101             up
----------------------------------------------------------

Stack Link:
----------------------------------------------------------------------------
Stack-Port       Port               Status     PeerPort           PeerStatus
----------------------------------------------------------------------------
Stack-Port1/1    40GE1/0/1          up         40GE2/0/1          up
Stack-Port2/1    40GE2/0/1          up         40GE1/0/1          up
----------------------------------------------------------------------------

Fabric Link:
--------------------------------------------------------------------------------
Fabric-Port   Port       Status     Discard PeerPort      PeerStatus PeerDiscard
--------------------------------------------------------------------------------
Fabric-Port1  10GE1/0/35 up               0 10GE101/0/1   up                   0
--------------------------------------------------------------------------------
Table 4-9  Description of the display stack topology command output

Item

Description

Stack Topology

Stack topology information.

MemberID

Stack ID of a member switch.

Stack-Port

Stack port.

Status

Stack port status:
  • up

  • down

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.

Fabric Topology

SVF topology information.

SpineMemberID

Stack member ID of a parent switch.

Fabric-Port

Fabric port ID.

LeafMemberID

Leaf ID bound to the fabric port.

Fabric Link

Topology information about the SVF management link.

Discard

Number of expired SVF link heartbeat packets on the port.

This field starts from 0 if the port is being initialized, protocol status of the port becomes Down, or the port receives link heartbeat packets.

PeerDiscard

Number of expired SVF link heartbeat packets on the neighbor port.

display stack troubleshooting

Function

The display stack troubleshooting command displays fault event information in a stack or SVF.

Format

display stack troubleshooting [ member member-id ] [ history ]

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.

history

Displays historical fault event information. If this parameter is not specified, current fault even information will be displayed.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

When a stack or SVF cannot be set up or is faulty, you can run the display stack troubleshooting command to check fault event information in the stack or SVF.

Example

# Display fault event information in a stack.

<HUAWEI> display stack troubleshooting
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) 
----------------------------------------------------------------------------------------
Table 4-10  Description of the display stack troubleshooting command output

Item

Description

Seq

Sequence number of an event.

Time

Time when an event is generated.

Event Description

Event description.

display stack upgrade status

Function

The display stack upgrade status command displays the status of a fast stack or SVF upgrade.

Format

display stack upgrade status

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

When running the stack upgrade fast command to fast upgrade a stack or SVF 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  : Successed
Base package    : CE6850-V200R001C00SPC300.cc
Upgrade package : CE6850-V200R001C00SPC500.cc
Upgrade rollback time of standby: 60 min

Upgrade begin time : 2016/03/07 09:06:13
Upgrade end time   : 2016/03/07 09:17:36
Upgrade duration time : 0 Hours 11 Minutes 23 Seconds

Upgrade procedure details:
    Member: 2
      Status: Finished
      begin time: 2016/03/07 09:06:13
      end time  : 2016/03/07 09:12:34
      duration  : 0 Hours 6 Minutes 21 Seconds

    Member: 1
      Status: Finished
      begin time: 2016/03/07 09:12:34
      end time  : 2016/03/07 09:17:36
      duration  : 0 Hours 5 Minutes 2 Seconds
Table 4-11  Description of the display stack upgrade status command output

Item

Description

Upgrade status

Upgrade status:
  • Upgrading: The stack is being upgraded.

  • Successed: The stack has been upgraded.

  • Failed: The stack fails to be upgraded.

Base package

Previous system software name.

Upgrade package

Upgraded system software name.

Upgrade rollback time of standby

Upgrade rollback time of the standby switch (or group to which the standby switch in an SVF system belongs).

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:
  • Finished: Member devices have been upgraded.

  • Waiting: Member devices wait to be upgraded.

  • Upgrading: Member devices are being upgraded.

  • Failed: Member devices fail to be upgraded.

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.
Related Topics

display stack upgrade fast rollback-timer

Function

The display stack upgrade fast rollback-timer command displays the timeout period of a fast stack or SVF upgrade.

Format

display stack upgrade fast rollback-timer

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

You can run the display stack upgrade fast rollback-timer command to view the timeout period of a fast stack or SVF upgrade.

Precautions

This command displays the time taken to upgrade the standby switch(or the group to which the standby switch in an SVF system belongs) instead of the entire stack or SVF system.

Example

# Display the timeout period of a fast stack upgrade.

<HUAWEI> display stack upgrade fast rollback-timer
Upgrade rollback time of standby: 60 min
Table 4-12  Description of the display stack upgrade fast rollback-timer command output

Item

Description

Upgrade rollback time of standby

Timeout period of a fast upgrade.

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.

-

Views

MEth interface view

Default Level

2: Configuration level

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.

Example

# Set the backup IPv4 address for the switch with the stack member ID 2.

<HUAWEI> system-view
[~HUAWEI] interface meth 0/0/0
[~HUAWEI-MEth0/0/0] dual-active backup ip address 192.168.1.175 24 member 2

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.

Format

dual-active detect enable

undo dual-active detect enable

Parameters

None

Views

MEth interface view

Default Level

2: Configuration level

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: 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
Related Topics

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.

Format

dual-active detect mode direct

undo dual-active detect [ mode direct ]

Parameters

None

Views

GE interface view, 10GE interface view, 25GE interface view, 40GE interface view, 100GE interface view

Default Level

2: Configuration level

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.

Example

# Configure DAD on 10GE1/0/1.

<HUAWEI> system-view
[~HUAWEI] interface 10ge 1/0/1
[~HUAWEI-10GE1/0/1] dual-active detect mode direct
Warning: The interface will block common data packets, except BPDU packets. Continue? [Y/N]: y
Related Topics

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.

Format

dual-active detect mode relay

undo dual-active detect [ mode relay ]

Parameters

None

Views

Eth-Trunk interface view

Default Level

2: Configuration level

Usage Guidelines

You can configure DAD in relay mode on an Eth-trunk to ensure that only one switch becomes the master after a stack splits, which enhances stability of the stack.

Example

# Configure DAD in relay mode on Eth-Trunk 10.

<HUAWEI> system-view
[~HUAWEI] interface eth-trunk 10
[~HUAWEI-Eth-Trunk10] dual-active detect mode relay
Related Topics

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:
  • interface-type specifies the type of the interface.

  • interface-number1 specifies the number of the first interface.

  • interface-number2 specifies the number of the second interface.

The value of interface-number2 must be larger than that of interface-number1.

Views

System view

Default Level

2: Configuration level

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.

Example

# Exclude 10GE1/0/2 and 10GE1/0/3 from shutdown.

<HUAWEI> system-view
[~HUAWEI] dual-active exclude interface 10ge 1/0/2 to 1/0/3
Related Topics

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.

Format

dual-active restore

Parameters

None

Views

System view

Default Level

3: Management level

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.

Example

# Restore all the blocked interfaces of the standby switch that enters the recovery state after its stack splits.

<HUAWEI> system-view
[~HUAWEI] dual-active restore
Warning: This command will restore the device from dual-active conflict state. Continue? [Y/N]: y 

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.

Format

dual-active proxy

undo dual-active proxy

Parameters

None

Views

Eth-Trunk interface view

Default Level

2: Configuration level

Usage Guidelines

In DAD in relay mode, you need to use the dual-active proxy command to configure the relay function on a specified Eth-Trunk interface of a proxy device. Member interfaces of the Eth-Trunk interface forward DAD packets to each other so that member switches can exchange DAD packets.

Example

# Enable the relay function on Eth-Trunk 10 of a proxy device.

<HUAWEI> system-view
[~HUAWEI] interface eth-trunk 10
[~HUAWEI-Eth-Trunk10] dual-active proxy

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.

Format

interface stack-port member-id/port-id

undo interface stack-port member-id/port-id

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.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Each member switch has two stack ports, which are named Stack-Portn/1 and Stack-Portn/2. n specifies the stack ID of a member switch.

Example

# Display the view of stack port 1/1.

<HUAWEI> system-view
[~HUAWEI] interface stack-port 1/1
[*HUAWEI-Stack-Port1/1]
Related Topics

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.

NOTE:

Only the CE6880EI switches support this command.

Format

load-balance profile profile-name

undo load-balance profile profile-name

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.

Views

Stack management view

Default Level

2: Configuration level

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.

Example

# Create a stack load balancing profile temp.

<HUAWEI> system-view
[~HUAWEI] stack
[~HUAWEI-stack] load-balance profile temp

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.

NOTE:

Only the CE6880EI switches support this command.

Format

load-balance profile profile-name

undo load-balance profile [ profile-name ]

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.

Views

Stack port view

Default Level

2: Configuration level

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.

By default, in a stack load balancing profile:
  • 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.
NOTE:

Only the CE6880EI 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.

-

Views

Stack load balancing profile view

Default Level

2: Configuration level

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.

Example

# Configure a load balancing mode for Layer 2 packets in a stack load balancing profile.

<HUAWEI> system-view
[~HUAWEI] stack
[~HUAWEI-stack] load-balance profile temp
[*HUAWEI-stack-load-balance-profile-temp] load-balance l2 dst-mac

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.

NOTE:

The CE6870EI/CE6880EI does 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.

Views

Stack port view

Default Level

2: Configuration level

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.

Example

# Configure load balancing based on destination IP addresses on a stack port.

<HUAWEI> system-view
[~HUAWEI] interface stack-port 1/1
[~HUAWEI-Stack-Port1/1] load-balance dst-ip
Related Topics

port copper mode

Function

The port copper mode command configures the 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.

By default,
  • On CE6810-32T16S4Q-LI, CE6850-48T6Q-HI, CE6851-48S6Q-HI, CE6855HI, CE6856HI, CE5855-24T4S2Q-EI, and CE5855-48T4S2Q-EI, the working mode of 40GE ports that have high-speed cables installed is SR4.
  • On CE6810-48S4Q-LI and CE6810-24S2Q-LI, 40GE ports that have high-speed cables installed can auto-negotiate to work in CR4 or SR4 mode.
  • On other switch models, 40GE ports that have high-speed cables installed can auto-negotiate to work in CR4 or SR4 mode. After being added to stack ports, these 40GE ports work in CR4 mode.

Format

port copper mode { sr4 | cr4 }

undo port copper mode { sr4 | cr4 }

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.

-

Views

40GE interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

By default, if a CE6810-32T16S4Q-LI, CE6850-48T6Q-HI, CE6851-48S6Q-HI, CE6855HI, CE6856HI, CE5855-24T4S2Q-EI, or CE5855-48T4S2Q-EI sets up a stack or an SVF system with other 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. However, auto-negotiation lasts a certain period. To ensure that the two ports can rapidly become Up, you are advised to run this command on the connected device to configure the 40GE port to work in SR4 mode. This configuration ensures that 40GE ports on both ends work in SR4 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.

Precautions

If a CE6810-48S4Q-LI and a CE6810-24S2Q-LI set up a stack using 40GE ports that have high-speed cables installed, you are advised to use this command to set the same working mode for the 40GE ports on both ends.

Example

# Configure a 40GE port that has a high-speed cable installed to work in SR4 mode.

<HUAWEI> system-view
[~HUAWEI] interface 40ge 1/0/1
[~HUAWEI-40GE1/0/1] port mode stack
[*HUAWEI-40GE1/0/1] port copper mode sr4

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:
  • interface-type specifies the interface type.

  • interface-number1 specifies the number of the first interface.

  • interface-number2 specifies the number of the second interface.

The value of interface-nubmer2 must be larger than the value of interface-number1.

Views

Stack port view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

A stack port can forward traffic only after physical member ports are added to the stack port. You can add physical member ports to a stack port using either of the following methods:
  • 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 40GE ports cannot be added to the same stack port.
  • On the CE6850EI, CE6810EI, CE6810LI, and CE5850EI, if a 10GE port with port number in the range 4N+1 to 4N+4 (N=0, 1, 2, 3...) is configured as a physical member port, all the ports with port numbers 4N+1 to 4N+4 are configured as physical member ports. For example, if you configure 10GE1/0/1 as a physical member port, all the interfaces from 10GE1/0/1 to 10GE1/0/4 are configured as physical member ports.

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

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.

Format

port mode stack

undo port mode stack

Parameters

None

Views

10GE interface view, 25GE interface view, 40GE interface view, 100GE interface view

Default Level

2: Configuration level

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

  • On the CE6850EI, CE6810EI, CE6810LI, and CE5850EI, if a 10GE port with port number in the range 4N+1 to 4N+4 (N=0, 1, 2, 3...) is configured as a physical member port, all the ports with port numbers 4N+1 to 4N+4 are configured as physical member ports. For example, if you configure 10GE1/0/1 as a physical member port, all the interfaces from 10GE1/0/1 to 10GE1/0/4 are configured as physical member ports.
  • 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

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:
  • interface-type specifies the type of the interface.

  • interface-number1 specifies the number of the first interface.

  • interface-number2 specifies the number of the last interface.

-

Views

Stack management view

Default Level

2: Configuration level

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

  • On the CE6850EI, CE6810EI, CE6810LI, and CE5850EI, if a 10GE port with port number in the range 4N+1 to 4N+4 (N=0, 1, 2, 3...) is configured as a physical member port, all the ports with port numbers 4N+1 to 4N+4 are configured as physical member ports. For example, if you configure 10GE1/0/1 as a physical member port, all the interfaces from 10GE1/0/1 to 10GE1/0/4 are configured as physical member ports.
  • 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

reset stack troubleshooting history

Function

The reset stack troubleshooting history command clears historical fault event information of a stack or SVF system.

Format

reset stack troubleshooting history [ member member-id ]

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.

Views

Stack management view

Default Level

3: Management level

Usage Guidelines

None

Example

# Clear historical fault event information of a stack.

<HUAWEI> system-view
[~HUAWEI] stack
[~HUAWEI-stack] reset stack troubleshooting history

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.

Format

set system mac-address slot slot-id

undo set system mac-address

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.

Views

Stack Management view

Default Level

3: Management level

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.

Example

# Set the stack MAC address to the MAC address of chassis 1 in the CSS.

<HUAWEI> system-view
[~HUAWEI] stack
[~HUAWEI-stack] set system mac-address slot 1

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.

-

Views

Stack Management view

Default Level

2: Configuration level

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.

Example

# Set the delay in stack MAC address switchover to 20 minutes.

<HUAWEI> system-view
[~HUAWEI] stack
[~HUAWEI-stack] set system mac-address switch-delay 20

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.

-

Views

Stack management view

Default Level

2: Configuration level

Usage Guidelines

When the stack system MAC address is not the MAC address of any member device, the system generates an alarm. You can run the set system mac-address inconsistence-alarm command to set the delay in generating the alarm or disable the alarm function.

Example

# Set the delay in generating an alarm to 20 minutes.

<HUAWEI> system-view
[~HUAWEI] stack
[~HUAWEI-stack] set system mac-address inconsistence-alarm 20

snmp-agent trap enable feature-name dad

Function

The snmp-agent trap enable feature-name dad command enables the trap function for the DAD module.

The undo snmp-agent trap enable feature-name dad command disables the trap function for the DAD module.

To view the trap name and trap function status of the DAD module, run the display snmp-agent trap feature-name dad all command.

Format

snmp-agent trap enable feature-name dad [ trap-name trap-name ]

undo snmp-agent trap enable feature-name dad [ trap-name trap-name ]

Parameters

Parameter Description Value
trap-name trap-name Specifies the name of a trap.

If this parameter is not specified, all the trap functions of the DAD module are enabled or disabled.

The value is of enumerated type.

To view the trap name of the DAD module, run the display snmp-agent trap feature-name dad all command.

Views

System view

Default Level

3: Management level

Usage Guidelines

To enable the NMS to easily manage the DAD module of the device, you can run the snmp-agent trap enable feature-name dad command to enable a DAD trap. The command configuration ensures that the traps generated during the device operation are sent to the NMS. Otherwise, DAD traps are not sent to the NMS.

Example

# Enable the DAD hwDadConflictDetect trap.

<HUAWEI> system-view
[~HUAWEI] snmp-agent trap enable feature-name dad trap-name hwdadconflictdetect

snmp-agent trap enable feature-name stackmng

Function

The snmp-agent trap enable feature-name stackmng command enables the trap function for the STACKMNG module.

The undo snmp-agent trap enable feature-name stackmng command disables the trap function for the STACKMNG module.

To view the trap name and trap function status of the STACKMNG module, run the display snmp-agent trap feature-name stackmng all command.

Format

snmp-agent trap enable feature-name stackmng [ trap-name trap-name ]

undo snmp-agent trap enable feature-name stackmng [ trap-name trap-name ]

Parameters

Parameter Description Value
trap-name trap-name Specifies the name of a trap.

If this parameter is not specified, all the trap functions of the STACKMNG module are enabled or disabled.

The value is of enumerated type.

To view the trap name of the STACKMNG module, run the display snmp-agent trap feature-name stackmng all command.

Views

System view

Default Level

3: Management level

Usage Guidelines

To enable the NMS to easily manage the STACKMNG module of the device, you can run the snmp-agent trap enable feature-name stackmng command to enable an STACKMNG trap. The command configuration ensures that the traps generated during the device operation are sent to the NMS. Otherwise, STACKMNG traps are not sent to the NMS.

Example

# Enable the STACKMNG hwPhyStackPortIsDown trap.

<HUAWEI> system-view
[~HUAWEI] snmp-agent trap enable feature-name stackmng trap-name hwphystackportisdown

stack

Function

The stack command displays the stack management view.

Format

stack

Parameters

None

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Before configuring stack attributes, enter the stack management view.

Example

# Enter the stack management view.

<HUAWEI> system-view
[~HUAWEI] stack
[~HUAWEI-stack]

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.

Views

Stack management view

Default Level

2: Configuration level

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.

Example

# Set the stack competition delay to 30s.

<HUAWEI> system-view
[~HUAWEI] stack
[~HUAWEI-stack] stack member 1 competition-delay 30

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.

Views

Stack management view

Default Level

2: Configuration level

Usage Guidelines

To facilitate management and identification of a stack member switch, configure the description of the stack member switch.

Example

# Configure the description of a stack member switch.

<HUAWEI> system-view
[~HUAWEI] stack
[~HUAWEI-stack] stack member 1 description To_SwitchA

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.

Views

Stack Management view

Default Level

2: Configuration level

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.

Example

# Set the stack domain ID of the device to 100.

<HUAWEI> system-view
[~HUAWEI] stack
[~HUAWEI-stack] stack member 1 domain 100

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).

NOTE:

The CE6870EI/CE6880EI does 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.

NOTE:

The CE5810EI does not support this parameter.

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.

Views

Load-balance-profile view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Traffic sent out from a stack port or fabric port can be load balanced based on hash algorithms. You can set hash-mode-id based on the traffic model for load balancing.

  • 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.

Example

# Set a load balancing mode for a stack port or fabric port in the load balancing profile default.

<HUAWEI> system-view
[~HUAWEI] load-balance profile default
[~HUAWEI-load-balance-profile-default] stack hash-mode 1 universal-id 4

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.

Format

stack member member-id renumber new-member-id [ inherit-config ]

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.

-

Views

Stack Management view

Default Level

2: Configuration level

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, for example, port split configuration, will be lost after the stack member ID is changed and the switch restarts.

Example

# Change the stack member ID of the device to 2.

<HUAWEI> system-view
[~HUAWEI] stack
[~HUAWEI-stack] stack member 1 renumber 2 inherit-config
Warning: The stack configuration of member ID 1 will be inherited to member ID 2 after the device resets. Continue? [Y/N]: y

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.

Format

stack-port member-id/port-id

undo stack-port [ member-id/port-id ]

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.

Views

10GE interface view, 25GE interface view, 40GE interface view, 100GE interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

A stack port can forward traffic only after physical member ports are added to the stack port. You can add physical member ports to a stack port using either of the following methods:
  • 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.

Precautions

  • 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.
  • On the CE6850EI, CE6810EI, CE6810LI, and CE5850EI, if a 10GE port with port number in the range 4N+1 to 4N+4 (N=0, 1, 2, 3...) is configured as a physical member port, all the ports with port numbers 4N+1 to 4N+4 are configured as physical member ports. For example, if you configure 10GE1/0/1 as a physical member port, all the interfaces from 10GE1/0/1 to 10GE1/0/4 are configured as physical member ports.

Example

# Add service port 10GE1/0/1 to a stack port.

<HUAWEI> system-view
[~HUAWEI] interface stack-port 1/1
[*HUAWEI-Stack-Port1/1] quit
[*HUAWEI] interface 10ge 1/0/1
[*HUAWEI-10GE1/0/1] stack-port 1/1

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.

Views

Stack Management view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

During master switch election in a stack, the member switch with higher stack priority becomes the master switch if the member switches have the same running status.

Precautions

After setting a stack priority, restart the switch to make the configuration take effect.

Example

# Set the stack priority of the device to 150.

<HUAWEI> system-view
[~HUAWEI] stack
[~HUAWEI-stack] stack member 1 priority 150

stack upgrade fast

Function

The stack upgrade fast command fast upgrades switches in a stack or SVF.

Format

stack upgrade fast

Parameters

None

Views

Stack management view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

You can use the stack upgrade fast command to fast upgrade switches in a stack or SVF, 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.

In a fast SVF system upgrade:
  • Only the SVF system in which two parent switches set up a stack can be upgraded fast.

  • The previous and target versions for fast upgrade must be V200R001C00 or later versions, and the target version must allow all current member switches to set up an SVF system.

  • If a leaf switch connects to only the standby parent switch, the SVF system cannot be upgraded fast.

  • The current SVF configuration must be the same as the next startup SVF configuration. Otherwise, the SVF system cannot be upgraded fast.

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:/CE6850-V200R001C00.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 or SVF upgrade.

By default, a timeout period for a fast stack or SVF upgrade is 60 minutes.

Format

stack upgrade fast rollback-timer time

Parameters

Parameter Description Value
time

Sets a timeout period.

The value is an integer that ranges from 60 to 240, in minutes.

Views

Stack management view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

In a fast stack or SVF 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 standby switch(or the group to which the standby switch in an SVF system belongs) instead of the entire stack or SVF system.

Example

# Set a timeout period for a fast stack upgrade to 120 minutes.

<HUAWEI> system-view
[~HUAWEI] stack
[~HUAWEI-stack] stack upgrade fast rollback-timer 120
Translation
Download
Updated: 2019-03-21

Document ID: EDOC1000166501

Views: 52418

Downloads: 339

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next