0% found this document useful (0 votes)
755 views123 pages

S300, S500, S2700, S5700, and S6700 V200R023C00 Configuration Guide - Interface Management

Uploaded by

imannuel93
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
755 views123 pages

S300, S500, S2700, S5700, and S6700 V200R023C00 Configuration Guide - Interface Management

Uploaded by

imannuel93
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

S300, S500, S2700, S5700 and S6700 Series

Ethernet Switches
V200R023C00

Configuration Guide - Interface


Management

Issue 01
Date 2023-09-30

HUAWEI TECHNOLOGIES CO., LTD.


Copyright © Huawei Technologies Co., Ltd. 2023. All rights reserved.
No part of this document may be reproduced or transmitted in any form or by any means without prior
written consent of Huawei Technologies Co., Ltd.

Trademarks and Permissions

and other Huawei trademarks are trademarks of Huawei Technologies Co., Ltd.
All other trademarks and trade names mentioned in this document are the property of their respective
holders.

Notice
The purchased products, services and features are stipulated by the contract made between Huawei and
the customer. All or part of the products, services and features described in this document may not be
within the purchase scope or the usage scope. Unless otherwise specified in the contract, all statements,
information, and recommendations in this document are provided "AS IS" without warranties, guarantees
or representations of any kind, either express or implied.

The information in this document is subject to change without notice. Every effort has been made in the
preparation of this document to ensure accuracy of the contents, but all statements, information, and
recommendations in this document do not constitute a warranty of any kind, express or implied.

Huawei Technologies Co., Ltd.


Address: Huawei Industrial Base
Bantian, Longgang
Shenzhen 518129
People's Republic of China

Website: https://e.huawei.com

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. i


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management About This Document

About This Document

Intended Audience
This document is intended for network engineers responsible for switch
configuration and management. You should be familiar with basic Ethernet
knowledge and have extensive experience in network deployment and
management.

Symbol Conventions
The symbols that may be found in this document are defined as follows.

Symbol Description

Indicates a potentially hazardous


situation which, if not avoided, could
result in equipment damage, data loss,
performance deterioration, or
unanticipated results.
NOTICE is used to address practices
not related to personal injury.

Supplements the important


information in the main text.
NOTE is used to address information
not related to personal injury,
equipment damage, and environment
deterioration.

Command Conventions
The command conventions that may be found in this document are defined as
follows.

Convention Description

Boldface The keywords of a command line are in boldface.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. ii


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management About This Document

Convention Description

Italic Command arguments are in italics.

[] Items (keywords or arguments) in brackets [ ] are


optional.

{ x | y | ... } Optional items are grouped in braces and separated


by vertical bars. One item is selected.

[ x | y | ... ] Optional items are grouped in brackets and


separated by vertical bars. One item is selected or
no item is selected.

{ x | y | ... }* Optional items are grouped in braces and separated


by vertical bars. A minimum of one item or a
maximum of all items can be selected.

[ x | y | ... ]* Optional items are grouped in brackets and


separated by vertical bars. Several items or no item
can be selected.

&<1-n> The parameter before the & sign can be repeated 1


to n times.

# A line starting with the # sign is comments.

Interface Numbering Conventions


Interface numbers used in this manual are examples. In device configuration, use
the existing interface numbers on devices.

Security Conventions
● Password setting
– To ensure device security, use ciphertext when configuring a password
and change the password periodically.
– The switch considers all passwords starting and ending with %^%#, %#
%#, %@%@ or @%@% as ciphertext and attempts to decrypt them. If
you configure a plaintext password that starts and ends with %^%#, %#
%#, %@%@ or @%@%, the switch decrypts it and records it into the
configuration file (plaintext passwords are not recorded for the sake of
security). Therefore, do not set a password starting and ending with %^
%#, %#%#, %@%@ or @%@%.
– When you configure passwords in ciphertext, different features must use
different ciphertext passwords. For example, the ciphertext password set
for the AAA feature cannot be used for other features.
● Encryption algorithms

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. iii


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management About This Document

The switch currently supports the 3DES, AES, RSA, SHA1, SHA2, and MD5.
3DES, RSA, and AES are reversible, whereas SHA1, SHA2, and MD5 are
irreversible. Using the encryption algorithms DES, 3DES, RSA (RSA-1024 or
lower), MD5 (in digital signature scenarios and password encryption), or
SHA1 (in digital signature scenarios) is a security risk. If protocols allow, use
more secure encryption algorithms, such as AES, RSA (RSA-2048 or higher),
SHA2, or HMAC-SHA2.
An irreversible encryption algorithm must be used for the administrator
password. SHA2 is recommended for this purpose.
● Personal data
Some personal data (such as MAC or IP addresses of terminals) may be
obtained or used during operation or fault location of your purchased
products, services, features, so you have an obligation to make privacy policies
and take measures according to the applicable law of the country to protect
personal data.
● Mirroring
The terms mirrored port, port mirroring, traffic mirroring, and mirroring in this
document are mentioned only to describe the product's function of
communication error or failure detection, and do not involve collection or
processing of any personal information or communication data of users.
● Reliability design declaration
Network planning and site design must comply with reliability design
principles and provide device- and solution-level protection. Device-level
protection includes planning principles of dual-network and inter-board dual-
link to avoid single point or single link of failure. Solution-level protection
refers to a fast convergence mechanism, such as FRR and VRRP. If solution-
level protection is used, ensure that the primary and backup paths do not
share links or transmission devices. Otherwise, solution-level protection may
fail to take effect.

Reference Standards and Protocols


To obtain reference standards and protocols, log in to Huawei official website,
search for "standard and protocol compliance list", and download the Huawei S-
Series Switch Standard and Protocol Compliance List. You need to have
permissions to access the document. For any questions, contact technical support.

Disclaimer
● This document is designed as a reference for you to configure your devices. Its
contents, including web pages, command line input and output, are based on
laboratory conditions. It provides instructions for general scenarios, but does
not cover all use cases of all product models. The examples given may differ
from your use case due to differences in software versions, models, and
configuration files. When configuring your device, alter the configuration
depending on your use case.
● The specifications provided in this document are tested in a lab environment
(for example, a certain type of cards have been installed on the tested device

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. iv


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management About This Document

or only one protocol is run on the device). Results may differ from the listed
specifications when you attempt to obtain the maximum values due to factors
such as differences in hardware configurations and carried services.
● In this document, public IP addresses may be used in feature introduction and
configuration examples and are for reference only unless otherwise specified.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. v


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management Contents

Contents

About This Document................................................................................................................ ii


1 Basic Configuration for Interfaces....................................................................................... 1
1.1 Overview of Interfaces.......................................................................................................................................................... 1
1.1.1 Interface Types...................................................................................................................................................................... 1
1.1.2 Interface Numbering Rules...............................................................................................................................................4
1.2 Configuring Basic Interface Parameters.......................................................................................................................... 6
1.2.1 Entering the Interface View..............................................................................................................................................6
1.2.2 Configuring an Interface Description............................................................................................................................ 7
1.2.3 Collecting Traffic Statistics on an Interface................................................................................................................ 8
1.2.4 Configuring the Traffic Statistics Collection Interval............................................................................................... 9
1.2.5 Enabling or Disabling an Interface.............................................................................................................................. 10
1.2.6 Verifying Basic Interface Parameter Configurations..............................................................................................11
1.3 Clearing Interface Traffic Statistics................................................................................................................................. 12

2 Ethernet Interface Configuration...................................................................................... 13


2.1 Overview of Ethernet Interfaces.................................................................................................................................. 13
2.2 Licensing Requirements and Limitations for Ethernet Interfaces........................................................................ 14
2.3 Default Settings for Ethernet Interfaces....................................................................................................................... 32
2.4 Configuring MEth Management Interface Attributes.............................................................................................. 32
2.5 Configuring Interfaces in a Batch....................................................................................................................................33
2.6 Configuring Port Protection.............................................................................................................................................. 35
2.7 Configuring the Rate and Mode...................................................................................................................................... 37
2.7.1 Configuring Auto-Negotiation...................................................................................................................................... 37
2.7.2 Configuring the Interface Rate..................................................................................................................................... 38
2.7.3 Configuring the Duplex Mode...................................................................................................................................... 42
2.7.4 Changing the Working Mode of an Interface and Splitting the Interface.................................................... 43
2.7.5 Configuring the Serdes Mode of a MultiGE Interface.......................................................................................... 45
2.7.6 Configuring the Working Mode of a 25GE Interface............................................................................................ 46
2.7.7 Configuring the Working Mode of a Combo Interface........................................................................................ 47
2.7.8 Switching an Interface Between Layer 2 and Layer 3 Modes............................................................................48
2.8 Configuring Common Attributes of Optical and Electrical Interfaces................................................................ 50
2.8.1 Configuring Bidirectional Flow Control......................................................................................................................50
2.8.2 Configuring Unidirectional Flow Control...................................................................................................................53

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. vi


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management Contents

2.8.3 Configuring the Delay in Reporting Physical Status Changes........................................................................... 55


2.8.4 Configuring the Interval of Collecting Traffic Statistics on an Interface........................................................56
2.8.5 Configuring Link Flapping Protection......................................................................................................................... 57
2.8.6 Configuring an Interface to Transit to the Error-Down State When the Number of Received Error
Packets Exceeds the Threshold................................................................................................................................................ 59
2.8.7 Configuring the Device to Count the IFG and Preamble Traffic Statistics.................................................... 60
2.8.8 Setting the Jumbo Frame Length Allowed on an Interface................................................................................61
2.8.9 Configuring the MTU of an Interface......................................................................................................................... 62
2.8.10 Configuring the Log and Alarm Threshold for Inbound and Outbound Bandwidth Usage..................64
2.8.11 Configuring the Trap Threshold for a Sudden Traffic Volume Change on Interfaces............................. 65
2.8.12 Disabling Detection of a Sudden Broadcast Traffic Volume Change in the Inbound Direction of
Interfaces........................................................................................................................................................................................ 66
2.8.13 Enabling the Log Function for Inbound and Outbound Packet Loss Caused by Congestion............... 67
2.9 Configuring Optical Interface Attributes...................................................................................................................... 67
2.9.1 Configuring Interface Split and Merge...................................................................................................................... 67
2.9.2 Configuring Unidirectional Single-Fiber Communication....................................................................................72
2.9.3 Configuring the Training Function on a 40GE Interface...................................................................................... 74
2.9.4 Configuring the Training Function on a 100GE Interface....................................................................................77
2.9.5 Configuring an Interface to Transit to Error-Down State When the Optical Power Is Low.................... 78
2.10 Configuring Electrical Interface Attributes................................................................................................................ 79
2.10.1 Configuring the MDI Type of an Electrical Interface.......................................................................................... 79
2.10.2 Configuring the Clock Negotiation Mode for an XGE Electrical Interface.................................................. 80
2.11 Maintaining Ethernet Interfaces....................................................................................................................................81
2.11.1 Viewing Brief Information About Ethernet Interfaces........................................................................................81
2.11.2 Clearing Interface Statistics......................................................................................................................................... 81
2.11.3 One-Click Configuration Deletion on an Interface..............................................................................................82
2.11.4 Configuring Virtual Cable Test....................................................................................................................................82
2.11.5 Configuring the Network Cable Quality Check.................................................................................................... 84
2.11.6 Configuring Internal Loopback Detection.............................................................................................................. 85
2.11.7 Configuring the Log Function for Interface Up/Down Changes.....................................................................87
2.12 Configuration Examples for Ethernet Interfaces..................................................................................................... 87
2.12.1 Example for Configuring the Working Mode of a Combo Interface.............................................................87
2.12.2 Example for Configuring the Rate and Duplex Mode in Non-Auto-Negotiation Mode........................ 89
2.12.3 Example for Switching an Interface to Layer 3 Mode........................................................................................91
2.13 Troubleshooting Ethernet Interfaces............................................................................................................................93
2.13.1 An Ethernet Interface Is Physically Down...............................................................................................................94
2.13.2 An Ethernet Interface Frequently Alternates Between Up and Down States............................................ 99
2.14 FAQ About Ethernet Interfaces................................................................................................................................... 102
2.14.1 How Can Two Interfaces at Both Ends of a Link Determine the Rate and Duplex Mode Through
Auto-Negotiation?..................................................................................................................................................................... 103
2.14.2 How Can Packet Loss Be Avoided When Two Interfaces at Both Ends of a Link Work in Auto-
Negotiation Mode and Use the Half-Duplex Mode?.................................................................................................... 103
2.14.3 What Are the Differences Between a Combo Interface and a Common Interface?............................. 103

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. vii


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management Contents

2.14.4 Why Is a Non-Connected Interface Up?............................................................................................................... 104


2.14.5 Can an IP Address Be Directly Assigned to a Physical Interface?................................................................ 104

3 Logical Interface Configuration.......................................................................................105


3.1 Overview of Logical Interfaces...................................................................................................................................... 105
3.2 Licensing Requirements and Limitations for Logical Interfaces......................................................................... 107
3.3 Configuring a Logical Interface..................................................................................................................................... 108
3.3.1 Configuring a VLANIF Interface................................................................................................................................. 108
3.3.2 Configuring an Ethernet Sub-interface................................................................................................................... 109
3.3.3 Configuring a Loopback Interface............................................................................................................................. 112
3.3.4 Configuring a NULL Interface..................................................................................................................................... 113
3.3.5 Configuring a VE Interface...........................................................................................................................................114

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. viii


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 1 Basic Configuration for Interfaces

1 Basic Configuration for Interfaces

1.1 Overview of Interfaces


1.2 Configuring Basic Interface Parameters
1.3 Clearing Interface Traffic Statistics

1.1 Overview of Interfaces

1.1.1 Interface Types


Switch interfaces are used to exchange data. Interfaces are classified into physical
interfaces and logical interfaces.
● Physical interfaces
Physical interfaces (excluding management interfaces) transmit service data
and are classified into the following types:
– LAN-side interface: is used by the switch to exchange data with network
devices on LANs.
– Management interface: is used to log in to switches for configuration and
management purposes.
– Monitoring interface: is used to monitor a switch's components, including
the cabinet door, power supply, and backup power supply. Only the
S5720I-12X-SI-AC, S5720I-12X-PWH-SI-DC, S5720I-28X-SI-AC, or
S5720I-28X-PWH-SI-AC support monitoring interfaces.
NOTE

Physical interfaces are sometimes called ports. This document uses the term interface.
Table 1-1 describes the physical interfaces that the switch supports.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 1


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 1 Basic Configuration for Interfaces

Table 1-1 Description of LAN-side interfaces


Interface Description

Fast Ethernet (FE) A LAN-side FE interface works at the data link layer,
interface provides a maximum transmission rate of 100 Mbit/s,
processes Layer 2 protocol packets, and implements
Layer 2 forwarding.

Gigabit Ethernet A LAN-side GE interface works at the data link layer,


(GE) interface provides a maximum transmission rate of 1000 Mbit/s,
processes Layer 2 protocol packets, and implements
Layer 2 forwarding.

10GE interface A LAN-side 10GE interface works at the data link


layer, provides a maximum transmission rate of 10
Gbit/s, processes Layer 2 protocol packets, and
implements Layer 2 forwarding.

MultiGE interface A LAN-side MultiGE interface works at the data link


layer, provides a maximum transmission rate of 10000
Mbit/s, processes Layer 2 protocol packets, and
implements Layer 2 forwarding.

25GE interface A LAN-side 25GE interface works at the data link


layer, provides a maximum transmission rate of 25
Gbit/s, processes Layer 2 protocol packets, and
implements Layer 2 forwarding.

40GE interface A LAN-side 40GE interface works at the data link


layer, provides a maximum transmission rate of 40
Gbit/s, processes Layer 2 protocol packets, and
implements Layer 2 forwarding. A 40GE interface can
work as an independent interface or be split into four
10GE interfaces.

100GE interface A LAN-side 100GE interface works at the data link


layer, provides a maximum transmission rate of 100
Gbit/s, processes Layer 2 protocol packets, and
implements Layer 2 forwarding. A 100GE interface can
work as an independent interface or be split into two
40GE interfaces.

Combo interface A combo interface consists of an optical Ethernet port


and an electrical Ethernet port on the panel. Each
combo interface matches only one internal forwarding
port. The electrical and optical ports of a combo
interface are multiplexed, and only one of them can
work at a time.
NOTE
For details about the combo interface supported by the
switch, see the Hardware Description or click Info-Finder,.

Table 1-2 describes the management interfaces that the switch supports.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 2


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 1 Basic Configuration for Interfaces

Table 1-2 Description of management interfaces


Interface Description

Console interface A data connection equipment (DCE) interface that


complies with the EIA/TIA-232 standard. The console
interface is connected to the COM serial interface of a
configuration terminal to set up an on-site
configuration environment.

MEth interface Complies with the 10/100BASE-TX standard. The MEth


interface can be connected to a network interface of a
configuration terminal or network management
workstation to set up an on-site or remote
configuration environment.

● Logical interfaces
Logical interfaces do not physically exist. They are manually configured and
can be used to exchange data and transmit service data.
Table 1-3 describes the logical interfaces that the switch supports.

Table 1-3 Description of logical interfaces


Interface Description

An Eth-Trunk has Layer 2 and Layer 3 features and is


formed by binding multiple Ethernet interfaces to
Eth-Trunk
provide more bandwidth and higher transmission
reliability.

Tunnel interface A tunnel interface has Layer 3 features, transmits


packets, and identifies and processes packets transmitted
over a tunnel.

VLANIF A VLANIF interface has Layer 3 features and enables


interface VLANs to communicate after being assigned an IP
address.

Ethernet sub- An Ethernet sub-interface is configured on a main


interface interface to allow the local device to communicate with
multiple remote devices.

Loopback A loopback interface is always Up and can be configured


interface with a 32-bit subnet mask.

NULL interface A null interface is used to filter routes because any data
packets received by the null interface are discarded.

NVE interface An NVE interface is the logical interface to establish


VXLAN tunnels with other NVE devices.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 3


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 1 Basic Configuration for Interfaces

Interface Description

VBDIF interface A VBDIF interface is the virtual interface based on a BD


to support Layer 3 features and implement
communication between different BDs, between BD and
non-BD networks, and between BDs and Layer 3
networks.

Virtual Ethernet A VE interface is used when other data link layer


(VE) interface protocols need to be carried by the Ethernet protocol. A
VE sub-interface can be created to allow an L2VPN to
access to an L3VPN.

1.1.2 Interface Numbering Rules

Management Interface Numbering Rules


The following table lists the management interface numbers.

Table 1-4 Management interface numbers

Interface Number

Console interface console 0

MEth interface MEth 0/0/1


NOTE
The S5720I-SI switch automatically generates a virtual
interface MEth 0/0/1. On a standalone switch, the
configuration of this interface does not take effect. In a stack,
if there are stack members that support management
interfaces, the configuration of MEth 0/0/1 takes effect. If
there is no stack member that supports management
interfaces, the configuration of MEth 0/0/1 interface still does
not take effect.

Physical Interface Numbering Rules


Physical interfaces are numbered in the following way:

A single switch uses slot ID/subcard ID/interface sequence number to identify


physical interfaces.
● Slot ID: indicates the slot where the switch is located. The value is 0.
● Subcard ID: indicates the ID of a subcard.
● Interface sequence number: indicates the sequence number of an interface on
the switch.

A stacked switch uses Stack ID/subcard ID/interface sequence number to identify


physical interfaces.
● Stack ID: indicates the ID of a stacked switch. The value ranges from 0 to 8.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 4


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 1 Basic Configuration for Interfaces

● Subcard ID: indicates the ID of a subcard.


● Interface sequence number: indicates the sequence number of an interface on
the switch.

As shown in Figure 1-1, There are two rows of service interfaces on the device.
These interfaces are numbered from bottom to top and left to right, starting from
1.

For example, the interface on the top left is numbered 0/0/2.

Figure 1-1 Numbering Diagram

Some 40GE optical interfaces can be split into multiple interfaces. The converted
interfaces are numbered using the following rules:
● 10GE interfaces converted from a 40GE interface are numbered based on the
number of the last 10GE interface on the switch. For interfaces on the switch
panel, if the last 10GE interface is numbered XGE 0/y/m and a 40GE interface
to be split is numbered 40GE 0/y/n, the four 10GE interfaces converted from
the 40GE interface are numbered XGE 0/y/(m + 4 * (n - 1) + z + 1). For
example, if the last 10GE interface on a switch is numbered XGE 0/0/48, the
four 10GE interfaces converted from 40GE 0/0/3 are numbered XGE 0/0/57,
XGE 0/0/58, XGE 0/0/59, and XGE 0/0/60. For interfaces on a card, m has a
fixed value of 0. For example, the four 10GE interfaces converted from 40GE
1/1/1 on a card are numbered XGE 1/1/1, XGE 1/1/2, XGE 1/1/3, and XGE
1/1/4.
– y: indicates the subcard number.
– m: indicates the sequence number of the last 10GE interface on the
switch.
– n: indicates the sequence number of the 40GE interface.
– z: indicates the interface location. The value ranges from 0 to 3.
● 25GE interfaces converted from a 100GE interface are numbered based on the
number of the last 25GE interface on the switch. Because only the 100GE
interfaces on cards support interface split, if a 100GE interface to be split is
numbered 100GE 0/y/n, the four 25GE interfaces converted from the 100GE
interface are numbered 25GE 0/y/(4 * (n - 1) + z + 1). For example, the four
25GE interfaces converted from 100GE 0/1/1 on a card are numbered 25GE
0/1/1, 25GE 0/1/2, 25GE 0/1/3, and 25GE 0/1/4.
– y: indicates the subcard number.
– m: indicates the sequence number of the last 10GE interface on the
switch.
– n: indicates the sequence number of the 40GE interface.
– z: indicates the interface location. The value ranges from 0 to 3.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 5


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 1 Basic Configuration for Interfaces

NOTE

Split interfaces are numbered in the same sequence as the wires of a cable are numbered.
For example, in a 1-to-4 cable, the wire numbered 1 corresponds to the interface with the
lowest interface number, and the wire numbered 4 corresponds to the interface with the
highest interface number.

After the interface rate increases, the interface numbering rule is as follows:
● On the S5736-S48S4X-A and S5736-S48S4X-D, the subcard ID of the 48
1000BASE-X Ethernet optical interfaces is 0, and the interface rate is increased
to 10 Gbit/s after an RTU license for interface rate improvement is loaded. To
prevent subcard ID conflicts, the subcard ID of the previous four 10GE SFP+
Ethernet optical interfaces is fixed at 1.
● On the S6730-H24X4Y4C, the subcard ID of the 24 10GE SFP+ Ethernet
optical interfaces is 0. After an RTU license for interface rate improvement is
loaded, the interface rate is increased to 25 Gbit/s, the subcard ID becomes 1,
and the subcard ID of the previous four 1GE/10GE/25GE SFP28 Ethernet
optical interfaces remains at 0.

1.2 Configuring Basic Interface Parameters

1.2.1 Entering the Interface View


Context
To configure an interface, enter the interface view first.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run interface interface-type interface-number
The interface view is displayed.
interface-type interface-number specifies the type and number of an interface.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 6


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 1 Basic Configuration for Interfaces

NOTE

If the specified interface does not exist, this command creates the interface and displays the
interface view.
● Only the S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6735-S, S6720-EI, S6720S-
EI, S6730-H, S6730S-H, S6730-S, and S6730S-S support Ethernet sub-interfaces.
● Only hybrid and trunk interfaces on the preceding switches support Layer 2 Ethernet
sub-interface configuration.
● After you run the undo portswitch command to switch Layer 2 interfaces on the
preceding series of switches into Layer 3 interfaces, you can configure Layer 3 Ethernet
sub-interfaces on the interfaces.
● After an interface is added to an Eth-Trunk, sub-interfaces cannot be configured on the
interface.
● VLAN termination sub-interfaces cannot be created on a VCMP client.

----End

1.2.2 Configuring an Interface Description

Context
To facilitate switch management and maintenance, you can configure interface
descriptions. An interface description can contain:

● The switch where the interface is located


● The interface type
● The remote device

For example, a description of To-[DeviceB]GE-0/0/1 indicates that an interface of


this switch is connected to GE0/0/1 of device B.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run interface interface-type interface-number

The interface view is displayed.

Step 3 (Optional) To configure this function in a sub-interface view, run interface


interface-type interface-number.subinterface-number
The Ethernet sub-interface view is displayed.

● Only the S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6735-S, S6720-EI,


S6720S-EI, S6730-H, S6730S-H, S6730-S, and S6730S-S support Ethernet sub-
interfaces.
● Only hybrid and trunk interfaces on the preceding switches support Layer 2
Ethernet sub-interface configuration.
● After you run the undo portswitch command to switch Layer 2 interfaces on
the preceding series of switches into Layer 3 interfaces, you can configure
Layer 3 Ethernet sub-interfaces on the interfaces.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 7


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 1 Basic Configuration for Interfaces

● After an interface is added to an Eth-Trunk, sub-interfaces cannot be


configured on the interface.
● VLAN termination sub-interfaces cannot be created on a VCMP client.

Step 4 Run description description

A description is configured for the interface.

By default, an interface has no description.

The interface description is displayed from the first non-space character.

----End

1.2.3 Collecting Traffic Statistics on an Interface

Context
To check the network status or locate network faults, you can enable IPv4 or IPv6
packet statistics collection on an interface and view packet statistics on the
interface, monitoring traffic on the interface.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run interface interface-type interface-number

The interface view is displayed.

Step 3 Run { ipv4 | ipv6 } * statistic enable { both | inbound | outbound }

IPv4 or IPv6 packet statistics collection is enabled on the interface.

NOTE

Only the S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6735-S, S6720-EI, S6720S-EI,
S6730-H, S6730S-H, S6730-S, and S6730S-S support IPv4 or IPv6 packet statistics collection
on interfaces.
This command and the statistic enable { both | inbound | outbound } command used in
the VLANIF interface view are mutually exclusive.
If this command and the traffic policy command are configured together on the S5731-H,
S5731-S, S5731S-H, S5731S-S, S5732-H, S6730-H, S6730S-H, S6730-S, and S6730S-S traffic
statistics will fail to be collected.

----End

Verifying the Configuration


Run the display counters [ interface interface-type interface-number ] protocol
[ rate ] command in any view to check IPv4 and IPv6 packet statistics on an
interface.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 8


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 1 Basic Configuration for Interfaces

1.2.4 Configuring the Traffic Statistics Collection Interval

Context
By setting the traffic statistics collection interval, you can collect and analyze
packet statistics. According to traffic statistics, you can take measures to prevent
network congestion and service interruption.

● When congestion occurs, you can set the statistics collection interval on an
interface to 300 seconds or less (30 seconds if congestion worsens). Then
observe traffic distribution on the interface within a short period of time. Take
measures to data packets that cause congestion to control the rate of the
packets.
● When the network bandwidth is sufficient and services are running properly,
set the statistics collection interval on an interface to more than 300 seconds.
If traffic parameters on an interface are out of the specified range, change the
statistics collection interval to observe the traffic statistics in real time.
NOTE

● The interval set in the system view takes effect on all the interfaces that use the default
interval.
● The interval set in the interface view takes effect only on this interface.
● The interval set in the interface view takes precedence over the interval set in the
system view.

Procedure
● Configure the global traffic statistics collection interval in the system view.
a. Run system-view

The system view is displayed.


b. Run set flow-stat interval interval-time

The global traffic statistics collection interval is set.

By default, the global traffic statistics collection interval is 300 seconds.


● Configure the traffic statistics collection interval on an interface.
a. Run system-view

The system view is displayed.


b. Run interface interface-type interface-number

The interface view is displayed.


c. Run set flow-stat interval interval-time

The traffic statistics collection interval is set on the interface.

By default, the traffic statistics collection interval on an interface is 300


seconds.

----End

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 9


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 1 Basic Configuration for Interfaces

1.2.5 Enabling or Disabling an Interface


Context
After modifying parameters of an interface, run the shutdown and undo
shutdown commands, or run the restart command to make the modification take
effect.
If an interface is not connected to a cable or a fiber, disable the interface using
the shutdown command to prevent exceptions caused by interference.

NOTE

● If the switch supports the autocomplete function, you must enter at least the characters
shut before the switch can automatically complete the shutdown command.
● Running the shutdown and undo shutdown commands is equivalent to running the
restart command. Configuration information of interfaces is not modified or deleted.
● A NULL interface is always Up and cannot be enabled or disabled by commands.
● A loopback interface is always Up after being created and cannot be enabled or
disabled by commands.

Procedure
● Disable an interface.
a. Run system-view
The system view is displayed.
b. Run interface interface-type interface-number
The interface view is displayed.
c. (Optional) To configure this function in a sub-interface view, run
interface interface-type interface-number.subinterface-number
The Ethernet sub-interface view is displayed.

▪ Only the S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6735-S,


S6720-EI, S6720S-EI, S6730-H, S6730S-H, S6730-S, and S6730S-S
support Ethernet sub-interfaces.

▪ Only hybrid and trunk interfaces on the preceding switches support


Layer 2 Ethernet sub-interface configuration.

▪ After you run the undo portswitch command to switch Layer 2


interfaces on the preceding series of switches into Layer 3 interfaces,
you can configure Layer 3 Ethernet sub-interfaces on the interfaces.

▪ After an interface is added to an Eth-Trunk, sub-interfaces cannot be


configured on the interface.

▪ VLAN termination sub-interfaces cannot be created on a VCMP


client.
d. Run shutdown
The interface is disabled.
By default, an interface is enabled.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 10


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 1 Basic Configuration for Interfaces

● Enable an interface.
a. Run system-view

The system view is displayed.


b. Run interface interface-type interface-number

The interface view is displayed.


c. (Optional) To configure this function in a sub-interface view, run
interface interface-type interface-number.subinterface-number

The Ethernet sub-interface view is displayed.

▪ Only the S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6735-S,


S6720-EI, S6720S-EI, S6730-H, S6730S-H, S6730-S, and S6730S-S
support Ethernet sub-interfaces.

▪ Only hybrid and trunk interfaces on the preceding switches support


Layer 2 Ethernet sub-interface configuration.

▪ After you run the undo portswitch command to switch Layer 2


interfaces on the preceding series of switches into Layer 3 interfaces,
you can configure Layer 3 Ethernet sub-interfaces on the interfaces.

▪ After an interface is added to an Eth-Trunk, sub-interfaces cannot be


configured on the interface.

▪ VLAN termination sub-interfaces cannot be created on a VCMP


client.
d. Run undo shutdown

The interface is enabled.

By default, an interface is enabled.

----End

1.2.6 Verifying Basic Interface Parameter Configurations

Procedure
● Run the display interface [ interface-type [ interface-number [.subinterface-
number ] ] ] command to check information about an interface, including
interface running status, basic interface configuration, and packet forwarding
on the interface.
● Run the display interface brief [ main ] command to check brief information
about interfaces, including the physical status, protocol status, bandwidth
usage in the inbound and outbound directions during a specific period, and
the number of error packets sent and received.
● Run the display ip interface [ interface-type interface-number [.subinterface-
number ] ] command to check the IP configuration of an interface.
● Run the display interface description [ interface-type [ interface-number
[.subinterface-number ] ] ] command to check the description of an interface.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 11


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 1 Basic Configuration for Interfaces

● Run the display counters [ inbound | outbound ] [ interface interface-type


[ interface-number [.subinterface-number ] ] ] [ nonzero ] command to
check traffic statistics on a physical interface.
● Run the display counters rate [ inbound | outbound ] [ interface interface-
type [ interface-number [.subinterface-number ] ] ] [ nonzero ] command to
check the inbound and outbound traffic rates on an interface.
● Run the display counters error [ inbound | outbound ] [ interface interface-
type [ interface-number [.subinterface-number ] ] ] command to check error
traffic statistics on an interface.
----End

1.3 Clearing Interface Traffic Statistics


Context
To monitor the status of an interface or locate faults on the interface, collect
traffic statistics on the interface. Before collecting traffic statistics on an interface
within a period, clear the existing traffic statistics on this interface.

NOTICE
Interface statistics cannot be restored after they are cleared. Confirm your action
before performing an operation.

Procedure
● Run the reset counters interface [ interface-type [ interface-number
[.subinterface-number ] ] ] command to clear the interface statistics.
● Run the reset counters if-mib interface [ interface-type [ interface-number
[.subinterface-number ] ] ] command to clear traffic statistics on an interface
in the network management system.
----End

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 12


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

2 Ethernet Interface Configuration

2.1 Overview of Ethernet Interfaces


2.2 Licensing Requirements and Limitations for Ethernet Interfaces
2.3 Default Settings for Ethernet Interfaces
2.4 Configuring MEth Management Interface Attributes
2.5 Configuring Interfaces in a Batch
2.6 Configuring Port Protection
2.7 Configuring the Rate and Mode
2.8 Configuring Common Attributes of Optical and Electrical Interfaces
2.9 Configuring Optical Interface Attributes
2.10 Configuring Electrical Interface Attributes
2.11 Maintaining Ethernet Interfaces
2.12 Configuration Examples for Ethernet Interfaces
2.13 Troubleshooting Ethernet Interfaces
2.14 FAQ About Ethernet Interfaces

2.1 Overview of Ethernet Interfaces


Ethernet interfaces can be classified in many ways based on different classification
standards.
● Based on the function, Ethernet interfaces can be classified into the following
types:
– MEth management interfaces: allow users to log in to the device to
perform configuration and management operations. MEth management
interfaces do not transmit services.
– Service interfaces: receive and send service data.
● Based on the interface rate, Ethernet interfaces can be classified into the
following types:

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 13


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

– FE interfaces
– GE interfaces
– XGE interfaces (10GE interfaces)
– MultiGE interfaces
– 25GE interfaces
– 40GE interfaces
– 100GE interfaces
● Based on the electrical attribute, Ethernet interfaces can be classified into the
following types:
– Electrical interfaces
– Optical interfaces
● Based on the packet forwarding mode, Ethernet interfaces can be classified
into the following types:
– Layer 2 Ethernet interfaces: are physical interfaces working at the data
link layer. They can only forward received packets at Layer 2 or be added
to VLANs to forward packets at Layer 3 through VLANIF interfaces.
– Layer 3 Ethernet interfaces: are physical interfaces working at the
network layer. IP addresses can be assigned to these interfaces. That is,
they can receive and send packets whose source and destination IP
addresses are on different network segments.

2.2 Licensing Requirements and Limitations for


Ethernet Interfaces
Involved Network Element
Other network elements are not required.

Licensing Requirements
An Ethernet interface is a basic feature of a switch and is not under license
control.

Feature Support in V200R023C00


All models of S300, S500, S2700, S5700, and S6700 series switches support
Ethernet interfaces.

NOTE

For details about software mappings, visit Hardware Center and select the desired product
model.
The S5731-L and S5731S-L are remote units and do not support web-based management,
YANG, or commands. They can be configured only through configuration delivery by the
central device. For details, see "Simplified Architecture Configuration (the Solar System
Solution)" in the S300, S500, S2700, S5700, and S6700 V200R023C00 Configuration Guide -
Device Management.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 14


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

Feature Limitations
● Table 2-1 lists the common attributes of Ethernet interfaces.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 15


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

Table 2-1 Common attributes of Ethernet interfaces


Interf Common attributes Remarks
ace
Type

MultiG ● Transmission medium: ● Only the S5731-S24N4X2Q-


E network cable A, S5731-S24UN4X2Q,
interfa ● Rate: 100 Mbit/s, 1000 S5731-S8UM16UN2Q,
ces Mbit/s, 2500 Mbit/s, 5000 S5731S-S24N4X2Q-A1,
Mbit/s, and 10000 Mbit/s S5731S-S24UN4X2Q-A,
S5731S-S8UM16UN2Q-A,
● Duplex mode: When the rate S5720-14X-PWH-SI-AC,
is 100 Mbit/s, full-duplex S5720-28X-PWH-LI-AC,
and half-duplex are S5720-28X-PWH-LI-ACF,
supported. When the rate is S5732-H24UM2CC, S5732-
1000 Mbit/s, 2500 Mbit/s, H48UM2CC, S5736-
5000 Mbit/s, or 10000 S24UM4XC, S6720-32C-SI-
Mbit/s, only full-duplex is AC, S6720-32C-SI-DC,
supported. S6720-32C-PWH-SI-AC,
● Auto-negotiation: supported S6720-52X-PWH-SI,
● Flow control: supported S6720-56C-PWH-SI-AC,
S6720-56C-PWH-SI, and
● Flow control auto- S6720-32C-PWH-SI support
negotiation: supported MultiGE interfaces.
● Received flow control: ● Physical interfaces of the
supported S5732-H24S6Q, S5732-
● Received flow control auto- H48S6Q, S6735-S, S6720-EI,
negotiation: supported S6720S-EI, S6730-H, S6730S-
H, S6730-S, and S6730S-S,
and MultiGE interface of the
S5732-H24UM2CC, S5732-
H48UM2CC, S5732-
H48XUM2CC do not support
the half duplex mode and
this command is not
supported.
● Only the S5732-H24UM2CC,
S5732-H48UM2CC, S5732-
H48XUM2CC, S5731-
S8UM16UN2Q, S5731S-
S8UM16UN2Q-A, S5736-
S24UM4XC, S6720-32C-SI-
AC, S6720-32C-SI-DC,
S6720-32C-PWH-SI-AC,
S6720-52X-PWH-SI,
S6720-56C-PWH-SI-AC,
S6720-56C-PWH-SI, and
S6720-32C-PWH-SI support
the rate of 5000 Mbit/s and
10000 Mbit/s.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 16


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

Interf Common attributes Remarks


ace
Type

● You can set the rate of a


MultiGE interface to 100
Mbit/s and duplex mode to
half-duplex only when the
interface works in auto-
negotiation mode on the
S5720-14X-PWH-SI-AC, and
set the rate of a MultiGE
interface to 100 Mbit/s and
duplex mode to half-duplex
only when the interface
works in non-auto-
negotiation mode on the
S5731-S24N4X2Q-A, S5731-
S24UN4X2Q, S5731-
S8UM16UN2Q, S5731S-
S24N4X2Q-A1, S5731S-
S24UN4X2Q-A, S5731S-
S8UM16UN2Q-A. This
limitation does not apply to
MultiGE interfaces on other
switches.
● After the rate decrease auto-
negotiation function is
configured on a MultiGE
interface and a network
cable is removed and
reinstalled on the interface
in Down state continuously,
the interface rate
automatically decreases to
1000 Mbit/s. You can remove
and reinstall the network
cable again after the
interface goes Up or run the
shutdown and undo
shutdown commands on the
remote interface to restore
the interface rate to 2500
Mbit/s.
● The rate of MultiGE
interfaces on the S5732-
H24UM2CC, S5732-
H48UM2CC, and S5736-
S24UM4XC can be increased
using the RTU license. After
the license is activated, you

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 17


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

Interf Common attributes Remarks


ace
Type

can run the assign group-


speed command and restart
the device to make the
configured maximum rate
supported by the interfaces
in the MultiGE interface
group take effect.
To check the default rate of
MultiGE interfaces, run the
display device group-speed
configuration command.
The BaseSpeed field
indicates the default rate.

FE ● Transmission medium: -
electric network cable
al ● Rate: 10 Mbit/s and 100
interfa Mbit/s
ces
● Duplex mode: full-duplex/
half-duplex
● Auto-negotiation: supported
● Flow control: supported
● Flow control auto-
negotiation: supported
● Received flow control:
supported
● Received flow control auto-
negotiation: supported

GE ● Transmission medium: -
electric network cable
al ● Rate: 10 Mbit/s, 100 Mbit/s,
interfa and 1000 Mbit/s
ces
● Duplex mode: full-duplex/
half-duplex. When the rate is
1000 Mbit/s, only full-duplex
is supported.
● Auto-negotiation: supported
● Flow control: supported
● Flow control auto-
negotiation: supported
● Received flow control:
supported
● Received flow control auto-
negotiation: supported

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 18


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

Interf Common attributes Remarks


ace
Type

FE ● Transmission medium: FE -
optical optical module
interfa ● Rate: 100 Mbit/s
ces
● Duplex mode: full-duplex
● Auto-negotiation: not
supported
● Flow control: supported
● Flow control auto-
negotiation: not supported
● Received flow control:
supported
● Received flow control auto-
negotiation: not supported

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 19


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

Interf Common attributes Remarks


ace
Type

GE When the transmission medium ● By default, auto-negotiation


optical is an FE optical module: is enabled on GE optical
interfa ● Rate: 100 Mbit/s interfaces and rate auto-
ces negotiation is disabled. You
● Duplex mode: full-duplex can run the speed auto-
● Auto-negotiation: not negotiation command to
supported enable rate auto-
● Flow control: supported negotiation.
● Flow control auto- ● After running the speed
negotiation: not supported auto-negotiation command
to configure rate auto-
● Received flow control:
negotiation on a GE optical
supported
interface working in auto-
● Received flow control auto- negotiation mode, you
negotiation: not supported cannot configure flow
When the transmission medium control auto-negotiation on
is a GE optical module: the interface.
● Rate: 100 Mbit/s and 1000 ● GE optical interfaces on the
Mbit/s S5700S-LI do not support the
● Duplex mode: full-duplex rate of 100 Mbit/s.
● Auto-negotiation: supported ● GE optical interfaces on the
S5700-52X-LI-48CS,
● Flow control: supported S5700-28X-LI-24S, and
● Flow Control Auto- S5701-28X-LI-24S-AC, the
Negotiation: When the rate first 24 GE optical interfaces
is 1000 Mbit/s, the function on the S5700-28P-LI-24S-
is supported. When the rate BAT and S5700-28P-
is 100 Mbit/s, the function is LI-24S-4AH support the rate
not supported. of 100 Mbit/s. GE optical
● Received flow control: interfaces on other S5700-LI
supported models do not support the
rate of 100 Mbit/s.
● Received flow control auto-
negotiation: When the rate is ● GE optical interfaces on the
1000 Mbit/s, the function is S5720-28X-LI-24S,
supported. When the rate is S5720S-28X-LI-24S,
100 Mbit/s, the function is S5720-52X-LI-48S-AC1,
not supported. S5720-52X-LI-48S-DC1, and
S5720-52X-LI-48S-AC
When the transmission medium
support the rate of 100
is a GE copper module:
Mbit/s. GE optical interfaces
● Rate: 10 Mbit/s, 100 Mbit/s, on other S5720-LI, S5735S-L-
and 1000 Mbit/s M, S5720S-LI models do not
● Duplex mode: full-duplex/ support the rate of 100
half-duplex. When the rate is Mbit/s.
1000 Mbit/s, only full-duplex ● The last four GE interfaces
is supported. (based on the interface
● Auto-negotiation: supported number) on the S5720-PC-EI

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 20


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

Interf Common attributes Remarks


ace
Type

● Flow control: supported and S5720-P-EI support only


● Flow control auto- GE optical modules and GE
negotiation: supported copper modules, and the
interface rate can only be
● Received flow control: 1000 Mbit/s.
supported
● On the S5720S-28P-SI-AC,
● Received flow control auto- S5720S-52P-SI-AC,
negotiation: supported S5720-28P-SI-AC, and
When the transmission medium S5720-52P-SI-AC, the last
is a 2.5GE optical module or four GE interfaces cannot
2.5GE hybrid module: have FE optical modules
● Rate: 2500 Mbit/s installed and do not support
the rate auto-negotiation
● Duplex mode: full-duplex, configuration.
half-duplex
● GE optical interfaces on
● Auto-negotiation: not S5732-H models do not
supported (Only the non- support the rate of 100
auto-negotiation mode is Mbit/s.
supported.)
● GE optical interfaces on
● Flow control: supported S5735-L, S5735S-L, S5735-
● Flow control auto- L1,S5735S-L1, S5735S-L-M,
negotiation: supported S5735S-S and 5735-L-I
● Received flow control: models support the rate of
supported 100 Mbit/s.
● Received flow control auto- ● GE optical interfaces on
negotiation: supported S5736-S48S4X-A and S5736-
S48S4X-D do not support the
rate of 100 Mbit/s.
● The following GE optical
interfaces can work only at
the rate of 1000 Mbit/s
when having GE copper
modules installed:
– Interfaces numbered 21
and 22 on the S5720-52X-
LI-24S-AC1 and
S5720S-52X-LI-24S-AC1.
– Interfaces numbered 45
and 46 on the S5720-52X-
LI-48S-AC1 and
S5720-52X-LI-48S-DC1.
– Interfaces numbered 9,
10, 11, 12, 21, 22, 23, and
24 on the S5735S-
H24S4XC-A, S5736-

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 21


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

Interf Common attributes Remarks


ace
Type

S24S4XC, and S5736-


S48S4XC.
● All combo optical interfaces
support the rate of 100
Mbit/s.
● Only the following interfaces
of the following devices
support 2.5GE optical
modules or 2.5GE hybrid
modules. If 2.5GE optical
modules or 2.5GE hybrid
modules are installed on the
interfaces that do not
support these modules, these
modules function as GE
optical modules.
– S5731-S32ST4X, S5731-
S32ST4X-A, S5731-
S32ST4X-D, S5731S-
S32ST4X-A, and S5731S-
S32ST4X-A1: 24 downlink
GE interfaces
– S5731-S48S4X, S5731-
S48S4X-A, S5731S-
S48T4X-A, and S5731S-
S48T4X-A1: 44 GE
interfaces numbered 5 to
48
– S5731-H24HB4XZ and
S5731S-H24HB4XZ-A: first
20 downlink GE interfaces
and four downlink 10GE
interfaces
– S5731-H48HB4XZ and
S5731S-H48HB4XZ-A: 28
GE interfaces numbered 1
to 8 and 25 to 44 and
four downlink 10GE
interfaces

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 22


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

Interf Common attributes Remarks


ace
Type

XGE ● Transmission medium: ● Only the ES5D21X02T01 card


(10GE) network cable of the S5720-EI, the
electric ● Rate: 100 Mbit/s, 1000 ES5D21X08T00 card of the
al Mbit/s, 10000 Mbit/s S5730-HI, S5731-H, and
interfa S5731S-H support XGE
ces ● Duplex mode: When the rate electrical interfaces.
is 100 Mbit/s, full-duplex
and half-duplex are ● If an ES5D21X08T00 card is
supported. When the rate is installed on an S5731-
1000 Mbit/s or 10000 Mbit/s, H48HB4XZ or S5731S-
only full-duplex is supported. H48HB4XZ-A switch, the last
four XGE interfaces on the
● Auto-negotiation: supported card can only work at the
● Flow control: supported rate of 10 Gbit/s. If the
● Flow control auto- ES5D21X08T00 card is
negotiation: supported installed on other switches,
the last four XGE interfaces
● Received flow control: on the card can work at the
supported rate of 100 Mbit/s or 1000
● Received flow control auto- Mbit/s in auto-negotiation
negotiation: supported mode.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 23


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

Interf Common attributes Remarks


ace
Type

XGE When the transmission medium ● The XGE interfaces on the


(10GE) is an XGE optical module: ES5D21X02S01 card of the
optical ● Rate: 10000 Mbit/s S5720-EI, the ES5D21X04S01
interfa card of the S5720-HI and the
ces ● Duplex mode: full-duplex ES5D21X08S00 card of the
● Auto-negotiation: not S6720-EI and S5730-HI
supported support XGE optical
modules.
● Flow control: supported
● After GE copper modules are
● Flow control auto-
installed on XGE optical
negotiation: not supported
interfaces on the S6730-H,
● Received flow control: S6730S-H, S6730-S, S6730S-
supported S, S6720-HI, S6720-EI,
● Received flow control auto- S6720S-EI, S6720-SI, S6720S-
negotiation: not supported SI, S6720-LI, S6720S-LI,
S2730S-S, S5735-L1, S300,
When the transmission medium S5735-L-I, S5735-L, S5735S-
is a GE optical module: L1, S5735S-L, S5735S-L-M,
● Rate: 1000 Mbit/s S500, S5735-S, S5735S-S,
S5735-S-I, S5732-H, S5731-
● Duplex mode: full-duplex
H, S5731-S, S5731S-H,
● Auto-negotiation: supported S5731S-S, S5730-HI, S5730S-
● Flow control: supported EI, S5735S-H, S5736-S and
S5730-SI and XGE interfaces
● Flow control auto- on the S5720-LI and S5720S-
negotiation: not supported LI in V200R021C10 and later
● Received flow control: versions, in versions earlier
supported than V200R023C00, the
● Received flow control auto- interfaces can work at the
negotiation: not supported rate of 100 Mbit/s only in
auto-negotiation mode. In
When the transmission medium V200R023C00 and later
is a GE copper module: versions, the interfaces can
● Rate: 100 Mbit/s and 1000 work at the rate of 100
Mbit/s Mbit/s in both auto-
negotiation mode and non-
● Duplex mode: full-duplex
auto-negotiation mode.
when the rate is 1000
Mbit/s, and full-duplex and ● After an XGE optical
half-duplex when the rate is interface of the S6735-S has
100 Mbit/s (only S5720I-SI, a GE optical module
S5735-H, S5736-S, S6720-EI, installed, the interface does
and S6720S-EI support half- not support auto-
duplex). negotiation, flow control,
flow control auto-
● Auto-negotiation: supported
negotiation, received flow
● Flow control: supported control, and received flow
● Flow control auto- control auto-negotiation,
negotiation: supported

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 24


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

Interf Common attributes Remarks


ace
Type

● Received flow control: and supports only the rate of


supported 1000 Mbit/s. When the
● Received flow control auto- interface connects to
negotiation: supported another device, you need to
set the rate to 1000 Mbit/s
When the transmission medium in non-auto-negotiation
is a high-speed cable: mode on both ends.
● Rate: 10000 Mbit/s ● After a GE copper module is
● Duplex mode: full-duplex installed on an XGE optical
● Auto-negotiation: not interface of the S6735-S or
supported S6735S-S, the XGE optical
interface supports a rate of
● Flow control: supported 1000 Mbit/s but not 100
● Flow control auto- Mbit/s.
negotiation: not supported ● After an XGE optical
● Received flow control: interface of the S6735-S has
supported a GE copper module
● Received flow control auto- installed, the interface does
negotiation: not supported not support flow control.
When the transmission medium ● Only all XGE optical
is a 2.5GE optical module or interfaces of the
2.5GE hybrid module: ES5D21X08S00 card on the
S6720-EI and the
● Rate: 2500 Mbit/s
ES5D21X08S00 card on the
● Duplex mode: full-duplex, S5730-36C-HI, S5730-36C-
half-duplex HI-24S, S5730-36C-PWH-HI,
● Auto-negotiation: not S5730-44C-HI, S5730-44C-
supported (Only the non- HI-24S, and S5730-44C-
auto-negotiation mode is PWH-HI cards, and the last
supported.) four XGE optical interfaces of
the ES5D21X08S00 card on
● Flow control: supported
the S5730-60C-HI,
● Flow control auto- S5730-60C-HI-48S,
negotiation: supported S5730-60C-PWH-HI,
● Received flow control: S5730-68C-HI, S5730-68C-
supported HI-48S, and S5730-68C-
PWH-HI cards are inserted
● Received flow control auto-
into GE optical modules and
negotiation: supported
GE copper modules, support
the auto-negotiation rate of
1000 Mbit/s.
● When used for data
transmission between service
ports, copper cables can only
connect switches of the
same subseries, and cannot
be used between switches of

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 25


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

Interf Common attributes Remarks


ace
Type

different subseries or
between Huawei and non-
Huawei switches.
● When the connection
medium of an XGE (10GE)
optical interface on the
S6735-S switch is a passive
high-speed cable, the
interface flap once and then
remain in the Up state.
● Only the following interfaces
of the following devices
support 2.5GE optical
modules or 2.5GE hybrid
modules. If 2.5GE optical
modules or 2.5GE hybrid
modules are installed on the
interfaces that do not
support these modules, these
modules function as GE
optical modules.
– S5731-S32ST4X, S5731-
S32ST4X-A, S5731-
S32ST4X-D, S5731S-
S32ST4X-A, and S5731S-
S32ST4X-A1: 24 downlink
GE interfaces
– S5731-S48S4X, S5731-
S48S4X-A, S5731S-
S48T4X-A, and S5731S-
S48T4X-A1: 44 GE
interfaces numbered 5 to
48
– S5731-H24HB4XZ and
S5731S-H24HB4XZ-A: first
20 downlink GE interfaces
and four downlink 10GE
interfaces
– S5731-H48HB4XZ and
S5731S-H48HB4XZ-A: 28
GE interfaces numbered 1
to 8 and 25 to 44 and
four downlink 10GE
interfaces

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 26


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

Interf Common attributes Remarks


ace
Type

25GE When the transmission medium ● Before installing a GE


optical is a 25GE optical module: medium on a 25GE interface,
interfa ● Rate: 25000 Mbit/s you need to run the port
ces mode ge command to
● Duplex mode: full-duplex configure the 25GE interface
● Auto-negotiation mode: not to work at the rate of 1
supported Gbit/s.
● Flow control: supported ● When a 25GE interface has
● Flow control auto- an XGE medium installed,
negotiation: not supported the interface can work at the
rate of 10 Gbit/s.
● Received flow control:
supported
● Received flow control auto-
negotiation: not supported
When the transmission medium
is a high-speed cable:
● Rate: 10000 Mbit/s and
25000 Mbit/s
● Duplex mode: full-duplex
● Auto-negotiation mode: not
supported
● Flow control: supported
● Flow control auto-
negotiation: not supported
● Received flow control:
supported
● Received flow control auto-
negotiation: not supported
When the transmission medium
is a AOC cable:
● Rate: 10000 Mbit/s and
25000 Mbit/s
● Duplex mode: full-duplex
● Auto-negotiation mode: not
supported
● Flow control: supported
● Flow control auto-
negotiation: not supported
● Received flow control:
supported
● Received flow control auto-
negotiation: not supported

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 27


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

Interf Common attributes Remarks


ace
Type

When the transmission medium


is an XGE optical module:
● Rate: 10000 Mbit/s
● Duplex mode: full-duplex
● Auto-negotiation mode: not
supported
● Flow control: supported
● Flow control auto-
negotiation: not supported
● Received flow control:
supported
● Received flow control auto-
negotiation: not supported
When the transmission medium
is a GE optical module:
● Rate: 1000 Mbit/s
● Duplex mode: full-duplex
● Auto-negotiation mode:
supported
● Flow control: supported
● Flow control auto-
negotiation: not supported
● Received flow control:
supported
● Received flow control auto-
negotiation: not supported
When the transmission medium
is a GE copper module:
● Rate: 100 Mbit/s and 1000
Mbit/s
● Duplex mode: full-duplex
● Auto-negotiation mode:
supported
● Flow control: supported
● Flow control auto-
negotiation: supported
● Received flow control:
supported
● Received flow control auto-
negotiation: supported

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 28


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

Interf Common attributes Remarks


ace
Type

When the transmission medium


is an XGE or a 25GE cable:
● Rate: 10000 Mbit/s and
25000 Mbit/s
● Duplex mode: full-duplex
● Auto-negotiation mode: not
supported
● Flow control: supported
● Flow control auto-
negotiation: not supported
● Received flow control:
supported
● Received flow control auto-
negotiation: not supported

40GE When the transmission medium ● When you run the display
optical is a 40GE optical module: interface command on a
interfa ● Rate: 40000 Mbit/s 40GE optical interface that
ces has a high-speed cable
● Duplex mode: full-duplex installed, the command
● Auto-negotiation: not output shows that auto-
supported negotiation is enabled.
● Flow control: supported However, you cannot run the
negotiation auto command
● Flow control auto- to configure the auto-
negotiation: not supported negotiation mode.
● Received flow control: ● After a 40GE optical
supported interface on the S7Q02001,
● Received flow control auto- S5732-H24UM2CC, S5732-
negotiation: not supported H48UM2CC, and S5732-
When the transmission medium H48XUM2CC has a high-
is a high-speed cable: speed cable connected, the
interface does not support
● Rate: 40000 Mbit/s
auto-negotiation.
● Duplex mode: full-duplex
● Auto-negotiation: supported
● Flow control: supported
● Flow control auto-
negotiation: not supported
● Received flow control:
supported
● Received flow control auto-
negotiation: not supported

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 29


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

Interf Common attributes Remarks


ace
Type

100GE When the transmission medium ● After a 40GE optical module


optical is a 100GE optical module: or 40GE high-speed cable is
interfa ● Rate: 100000 Mbit/s installed on a 100GE
ces interface, the interface can
● Duplex mode: full-duplex work at the rate of 40 Gbit/s.
● Auto-negotiation: not
supported
● Flow control: supported
● Flow control auto-
negotiation: not supported
● Received flow control:
supported
● Received flow control auto-
negotiation: not supported
When the transmission medium
is a 40GE optical module:
● Rate: 40000 Mbit/s
● Duplex mode: full-duplex
● Auto-negotiation: not
supported
● Flow control: supported
● Flow control auto-
negotiation: not supported
● Received flow control:
supported
● Received flow control auto-
negotiation: not supported
When the transmission medium
is a high-speed cable:
● Rate: 40000 Mbit/s and
100000 Mbit/s
● Duplex mode: full-duplex
● Auto-negotiation: not
supported
● Flow control: supported
● Flow control auto-
negotiation: not supported
● Received flow control:
supported
● Received flow control auto-
negotiation: not supported

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 30


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

NOTE

For details about software mappings, visit Hardware Center and select the desired
product model.
The S5731-L and S5731S-L are remote units and do not support web-based
management, YANG, or commands. They can be configured only through
configuration delivery by the central device. For details, see "Simplified Architecture
Configuration (the Solar System Solution)" in the S300, S500, S2700, S5700, and
S6700 V200R023C00 Configuration Guide - Device Management.
● The S5720-14X-PWH-SI-AC can connect to the following devices through
MultiGE interfaces:
– All switches providing FE electrical interfaces, GE electrical interfaces or
MultiGE electrical interfaces
– AP: AP7050DN-E (with 2.5G uplink interfaces) running V200R007C00,
AP5030DN-S (with 1G uplink interfaces)
– Pico: BTS3911B running V100R010C10SPC092T
● The S5731-S24N4X2Q-A, S5731-S24UN4X2Q, S5731-S8UM16UN2Q, S5731S-
S24N4X2Q-A1, S5731S-S24UN4X2Q-A, S5731S-S8UM16UN2Q-A, S5720-14X-
PWH-SI-AC, S5720-28X-PWH-LI-AC, S5720-28X-PWH-LI-ACF, S5732-
H24UM2CC, S5732-H48UM2CC, S5736-S24UM4XC, S6720-32C-SI-AC,
S6720-32C-SI-DC, S6720-32C-PWH-SI-AC, S6720-52X-PWH-SI, S6720-56C-
PWH-SI-AC, S6720-56C-PWH-SI, and S6720-32C-PWH-SI can connect to the
following devices through MultiGE interfaces:
– All switches providing FE electrical interfaces or GE electrical interfaces
– All devices providing MultiGE interfaces defined by the NBASE-T Alliance
– All devices providing MultiGE interfaces that comply with the 802.3bz
standard
● On the S5700-SI, S5700-EI, and S5700-HI in V200R003 or V200R005, a GE
interface can go Up after it has a GE copper module installed. However, you
cannot run corresponding commands to configure the rate, duplex mode,
auto-negotiation, MDI, flow control, and virtual cable test on the interface.
The 10GE interfaces on the S5700-EI do not support GE copper modules.
● Only MEth0/0/1 on the S6700-EI, S6720-EI, S6720-HI, S5732-H, S6730-H,
S6730S-H, S6730-S, S6730S-S, S6735-S, and S6720S-EIsupports the duplex
mode configuration.
● For switches in V200R003C00 and earlier versions, only Layer 2 Ethernet
interfaces on the S5700-HI, S5710-EI, and S5710-HI can be configured as
Layer 3 interfaces. For switches in V200R005C00 and later versions, only Layer
2 Ethernet interfaces on the S5700-HI, S5710-EI, S5710-HI, S5700-EI, S6700-
EI, S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731S-H, S5731-S, S5731S-S,
S5732-H, S6720-HI, S6730-H, S6730S-H, S6730-S, S6730S-S, S6735-S, S6720-
EI, and S6720S-EI can be configured as Layer 3 interfaces.
● Only the S5700-X-LI switches support the IFG configuration.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 31


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

2.3 Default Settings for Ethernet Interfaces


Table 2-2 Default settings for Ethernet interfaces
Parameter Default Setting

Working mode of a combo interface auto: indicates that the combo


interface automatically works as an
optical interface or electrical interface.

Medium dependent interface (MDI) auto: indicates that the interface


type automatically identifies the network
cable type.

Duplex mode If the interface works in auto-


negotiation mode, it negotiates the
duplex mode with the remote
interface.
If the interface works in non-auto-
negotiation mode, the duplex mode of
the interface is full-duplex.

Interface rate If the interface works in auto-


negotiation mode, it negotiates the
rate with the remote interface.
If the interface works in non-auto-
negotiation mode, the maximum rate
supported by the interface is used.

Delay in reporting status changes The delay in reporting an interface Up


event is 2000 milliseconds.
The delay in reporting an interface
Down event is 0 milliseconds.

Link flapping protection Disabled.

2.4 Configuring MEth Management Interface


Attributes
Context
The MEth0/0/1management interface is a special Ethernet interface that allows
users to log in to the device to perform configuration and management
operations. It can be assigned an IP address. The MEth management interface
does not transmit services.
For details on how to log in to the device through the management interface, see
S300, S500, S2700, S5700, and S6700 V200R023C00 Configuration Guide - Basic
Configuration.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 32


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

Procedure
1. Run system-view
The system view is displayed.
2. Run interface meth 0/0/1
The MEth management interface view is displayed.
3. Run undo negotiation auto
The MEth management interface is configured to work in non-auto-
negotiation mode.
By default, the MEth management interface works in auto-negotiation mode.
NOTE

When the management interface works in auto-negotiation mode, the rate and
duplex mode cannot be configured on the interface.
Interfaces at both ends of a link must use the same auto-negotiation mode. The
interfaces cannot communicate with each other if they use different auto-negotiation
modes.
4. Run speed { 10 | 100 }
The rate is configured for the MEth management interface.
By default, the MEth management interface works at the maximum rate of
100 Mbit/s.
5. Run duplex { full | half }
The duplex mode is configured for the MEth management interface.
By default, the MEth management interface works in full-duplex mode.

2.5 Configuring Interfaces in a Batch


Context
If you need to perform the same operations on multiple Ethernet interfaces,
configuring each interface one by one easily causes incorrect configurations and is
labor-intensive.
The port group function easily solves the problem. You can add all the Ethernet
interfaces to the same port group. After you run a configuration command once in
the port group view, the configuration takes effect on all the Ethernet interfaces in
the port group, reducing the configuration workload.
Two types of port groups are available:
● Temporary port group: To temporarily deliver a configuration to multiple
interfaces, you can create a temporary port group. After you deliver the
configuration and exit from the port group view, the system automatically
deletes the temporary port group.
● Permanent port group: To deliver configurations to interfaces multiple times,
you can create a permanent port group. After you exit from the port group
view, the port group and member interfaces in the group still exist, facilitating
subsequent batch configuration for the member interfaces. To delete a
permanent port group, run the undo port-group { all | port-group-name }
command.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 33


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

Procedure
● Configure a temporary port group.
a. Run system-view
The system view is displayed.
b. Run port-group group-member { interface-type interface-number1 [ to
interface-type interface-number2 ] } &<1-10>
Or interface range { interface-type interface-number1 [ to interface-type
interface-number2 ] } &<1-10>
A temporary port group is created and the port group view is displayed.
● Configure a permanent port group.
a. Run system-view
The system view is displayed.
b. Run port-group port-group-name
A permanent port group is created and the port group view is displayed.
c. Run group-member { interface-type interface-number1 [ to interface-
type interface-number2 ] } &<1-10>
Ethernet interfaces are added to the permanent port group.

NOTE

To configure a temporary or permanent port group for sub-interfaces, replace


interface-type interface-number with interface-type interface-number.subinterface-
number in the preceding steps to create a temporary or permanent port group for
sub-interfaces and enter the port group view.
● Only the S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6735-S, S6720-EI,
S6720S-EI, S6730-H, S6730S-H, S6730-S, and S6730S-S support Ethernet sub-
interfaces.
● Only hybrid and trunk interfaces on the preceding switches support Layer 2
Ethernet sub-interface configuration.
● After you run the undo portswitch command to switch Layer 2 interfaces on the
preceding series of switches into Layer 3 interfaces, you can configure Layer 3
Ethernet sub-interfaces on the interfaces.
● After an interface is added to an Eth-Trunk, sub-interfaces cannot be configured
on the interface.
● VLAN termination sub-interfaces cannot be created on a VCMP client.

----End

Verifying the Configuration


Run the display port-group [ all | port-group-name ] command to check member
interfaces in a permanent port group.
Run the display port-group [ port-group-name ] member-configuration
command to display the configuration of each member interface in a specified
interface group.
The port group function allows you to configure interfaces in a batch. However,
the device does not support query or saving of the port group configuration. You
can run the display this command in the interface view of a member interface to
check the configuration that takes effect on the interface.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 34


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

Follow-up Procedure
In the port group view, you can deliver the following configurations to member
interfaces in a batch as required:
● Configuring the Working Mode of a Combo Interface
● Switching an Interface to Layer 3 Mode
● Configuring Auto-Negotiation
● Configuring the Interface Rate
● Configuring Flow Control
● Configuring the Delay in Reporting Physical Status Changes
● Configuring Link Flapping Protection
● Configuring an Interface to Transit to the Error-Down State When the
Number of Received Error Packets Exceeds the Threshold
● Setting the Jumbo Frame Length Allowed on an Interface
● Configuring Unidirectional Single-Fiber Communication
● Configuring the MDI Type
● Configuring the Duplex Mode

NOTE

After a configuration command is executed in the port group view, the device will deliver
the configuration to each port in the port group and display the configuration of each port.

You can configure both interface attribute commands and service commands in
the port group view. For details about the service commands, see the related
documentation.
A command run in the port group view takes effect only on member interfaces
that support the command. Therefore, a configuration that is batch delivered may
not take effect on all member interfaces. For example, a port group consists of
optical and electrical interfaces. If you run the transceiver power low trigger
error-down command in the port group view, the configuration will only take
effect on the optical interfaces.

2.6 Configuring Port Protection


Context
Hosts are usually connected to an external network through a default gateway. If
the outbound interface of the default gateway fails, the hosts cannot
communicate with the external network, interrupting normal service transmission
and degrading device reliability. The port protection function solves this problem.
Without changing the networking, you can add two interfaces on the device to a
port protection group to implement interface backup in active/standby mode.
When the active interface fails, services are immediately switched to the standby
interface, ensuring non-stop service transmission.
As shown in Figure 2-1, the port protection group configured on SwitchA contains
an active interface GE0/0/1 and a standby interface GE0/0/2. The active interface
GE0/0/1 transmits service data when it works properly. When the active interface

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 35


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

fails and goes Down, the system automatically switches services to the standby
interface GE0/0/2. This switchover ensures normal service transmission and
improves device reliability.
After the standby interface GE0/0/2 takes over service transmission, the services
will not be switched back to GE0/0/1 even if GE0/0/1 is recovered. The services are
switched back to GE0/0/1 only when GE0/0/2 fails.

Figure 2-1 Networking diagram of port protection

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run port protect-group protect-group-index
A port protection group is created and the port protection group view is displayed.
Step 3 Run protect-group member interface-type interface-number master
The active interface in the port protection group is configured.
Step 4 Run protect-group member interface-type interface-number standby
The standby interface in the port protection group is configured.
A port protection group contains only an active interface and a standby interface.

NOTE

To improve service switchover performance of interfaces in a port protection group, you can run
the carrier { up-hold-time | down-hold-time } interval command on the active and standby
interfaces to set the delay in reporting status changes to 0 milliseconds. This configuration
ensures that the system immediately switches services to the standby interface when the active
interface fails.

----End

Verifying the Configuration


Run the display port protect-group { all | protect-group-index } command to
view member interfaces in a port protection group.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 36


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

2.7 Configuring the Rate and Mode

2.7.1 Configuring Auto-Negotiation


Context
Devices with different transmission capabilities exist on the network. Two devices
must negotiate a proper data transmission capability to communicate. The auto-
negotiation function provides an information exchange method for connected
devices. After auto-negotiation is enabled, devices at both ends of a physical link
can exchange information and automatically choose the same working
parameters. In this way, the two devices can work at the maximum rate supported
by both of them.
The duplex mode and rate of interfaces at both ends of a link are negotiated. If
the negotiation succeeds, the two interfaces use the same duplex mode and rate.
The auto-negotiation function takes effect only when both the connected devices
support it. If the remote device does not support auto-negotiation or uses a
different auto-negotiation mode, you can configure the connected interfaces to
work in non-auto-negotiation mode, and forcibly set the same rate and duplex
mode on the interfaces.
When the working mode of an interface is changed from auto-negotiation to non-
auto-negotiation, the interface works at the maximum rate and uses the default
duplex mode. For example, when a GE electrical interface works in auto-
negotiation mode, the rate negotiated with the remote interface is 100 Mbit/s and
the duplex mode is half-duplex. When the GE electrical interface is configured to
work in non-auto-negotiation mode, the interface rate is restored to 1000 Mbit/s
and the duplex mode is full-duplex.

NOTE

● For details about Ethernet interfaces supporting the auto-negotiation function, see 2.2
Licensing Requirements and Limitations for Ethernet Interfaces.
● By default, auto-negotiation is enabled on GE optical interfaces and rate auto-
negotiation is disabled. You can run the speed auto-negotiation command to enable
rate auto-negotiation.
● When a GE optical module is installed on an XGE optical interface, the interface works
in auto-negotiation mode by default. To configure the interface to work in non-auto-
negotiation mode, run the undo negotiation auto command. If you replace the GE
optical module with an XGE optical module, the interface does not support the auto-
negotiation mode and works in non-auto-negotiation mode by default. If you replace
the XGE optical module with a GE optical module, the undo negotiation auto
command configuration becomes ineffective. If you need the interface to still work in
non-auto-negotiation mode, reconfigure this command.
● After configuring the auto-negotiation function on an interface, if you remove and
install a single optical fiber on the interface, the interface may be Up and the remote
interface may be Down. You can run the shutdown and undo shutdown commands on
the remote interface to make the remote interface go Up.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 37


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run interface interface-type interface-number
The interface view is displayed.
Step 3 Run negotiation auto
The Ethernet interface is configured to work in auto-negotiation mode.
By default, an Ethernet interface works in auto-negotiation mode.

----End

Verifying the Configuration


Run the display interface [ interface-type [ interface-number ] ] command in any
view or the display this interface command in the interface view to check the
current interface status. Check the Negotiation field in the command output.

2.7.2 Configuring the Interface Rate

Context
You can configure the rate of an Ethernet interface in the following scenarios:
● Auto-negotiation mode: You can run the negotiation auto command to
configure an Ethernet interface to work in auto-negotiation mode. Interfaces
at both ends of a link negotiate the interface rate. You can configure the rate
of an Ethernet interface in the following situations:
– If the negotiated interface rate is not the required value, you can run the
auto speed command to manually set the interface rate. As shown in
Figure 2-2, Server1, Server2, and Server3 form a server cluster and their
network adapter rates are all 1000 Mbit/s. The rate of GE0/0/4
connecting the server cluster to the Internet is also 1000 Mbit/s. If the
auto-negotiation rate is not specified on the device, the rates negotiated
by GE0/0/1, GE0/0/2, and GE0/0/3 and their connected servers are all
1000 Mbit/s. When the three servers concurrently send data at the rate of
1000 Mbit/s, the outbound interface GE0/0/4 will be congested. To
prevent this situation, configure the auto-negotiation rate to 100 Mbit/s
for GE0/0/1, GE0/0/2, and GE0/0/3.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 38


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

Figure 2-2 Networking diagram for configuring the auto-negotiation rate

– If the network cable rate needs to be considered during interface rate


negotiation, you can run the set ethernet speed down-grade command
to configure the rate decrease auto-negotiation function.
In auto-negotiation mode, the negotiated interface rate depends only on
the maximum rate of connected interfaces, without considering the rate
of the network cable connecting the interfaces. In this case, the
connected interfaces will use the same negotiated rate but cannot go Up.
For example, two GE interfaces are connected using a network cable and
their maximum rates are both 1000 Mbit/s. If the network cable can only
work at the rate of 10 Mbit/s or 100 Mbit/s, the two GE interfaces cannot
go Up because the network cable cannot work at the rate of 1000 Mbit/s.
You can use the rate decrease auto-negotiation function to solve this
problem. After rate decrease auto-negotiation is enabled, the two GE
interfaces can decrease the negotiated rate to 10 Mbit/s or 100 Mbit/s,
and then can go Up.
● Non-auto-negotiation mode: You can run the undo negotiation auto
command to configure an Ethernet interface to work in non-auto-negotiation
mode, and run the speed command to manually set the interface rate so that
the local and remote interfaces can communicate.
NOTE

● For details about the rate supported by Ethernet interfaces, see 2.2 Licensing
Requirements and Limitations for Ethernet Interfaces.
● If two connected interfaces work in non-auto-negotiation mode, you need to configure
the same interface rate for them.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 39


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

Procedure
● Configuring the interface rate in auto-negotiation mode
– Manually configuring the interface rate in auto-negotiation mode
NOTE

This configuration takes effect only on an electrical interface or an optical


interface that has a copper module installed.
i. Run system-view
The system view is displayed.
ii. Run interface interface-type interface-number
The Ethernet interface view is displayed.
iii. Run negotiation auto
The Ethernet interface is configured to work in auto-negotiation
mode.
By default, Ethernet interfaces work in auto-negotiation mode.
iv. Run auto speed { 10 | 100 | 1000 | 2500 | 5000 | 10000 }*
The Ethernet interface rate is configured. FE electrical interfaces do
not support 1000, the maximum rate supported by MultiGE
interfaces on the S5720-28X-PWH-LI-AC, and S5720-28X-PWH-LI-
ACF is 2500 Mbit/s, and the maximum rate supported by MultiGE
interfaces on other device is 10 Gbit/s.
By default, an Ethernet interface negotiates the rate with the remote
interface.
– Configuring rate decrease auto-negotiation in auto-negotiation mode
i. Run system-view
The system view is displayed.
ii. Run set ethernet speed down-grade
The rate decrease auto-negotiation function is enabled on interfaces.
By default, rate decrease auto-negotiation is disabled on an
interface.
NOTE

The rate decrease auto-negotiation function applies only to MultiGE


interfaces, GE electrical interfaces, GE optical interfaces that have GE copper
modules installed, and the last four 10GE electrical interfaces on the
ES5D21X08T00 card of the S5731-H and S5731S-H.
● Configuring the interface rate in non-auto-negotiation mode
a. Run system-view
The system view is displayed.
b. Run interface interface-type interface-number
The Ethernet interface view is displayed.
c. Run undo negotiation auto
The Ethernet interface is configured to work in non-auto-negotiation
mode.
By default, Ethernet interfaces work in auto-negotiation mode.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 40


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

d. Run speed { 10 | 100 | 1000 | 2500 | 5000 | 10000 }


The Ethernet interface rate is configured. FE electrical interfaces do not
support 1000, the maximum rate supported by MultiGE interfaces on the
S5720-28X-PWH-LI-AC, and S5720-28X-PWH-LI-ACF is 2500 Mbit/s, and
the maximum rate supported by MultiGE interfaces on other device is 10
Gbit/s.
By default, an Ethernet interface works at the maximum rate supported
by it.
● Configuring a 25GE interface to work at the rate of 1 Gbit/s
a. Run system-view
The system view is displayed.
b. Run interface 25ge interface-number
The 25GE interface view is displayed.
c. Run port mode ge
The 25GE interface is configured to work at the rate of 1 Gbit/s.
By default, when a 25GE medium is installed on a 25GE interface, the
interface works at the rate of 25 Gbit/s; when an XGE medium is installed
on a 25GE interface, the interface works at the rate of 10 Gbit/s; when a
GE medium is installed on a 25GE interface, the interface cannot go Up.

NOTE

This configuration is supported on the S5732-H24UM2CC, S5732-H48UM2CC, S5732-


H48XUM2CC, S6730-H28Y4C, S6730-H24X4Y4C and S7Y08000 cards.
This command is supported when the interface working mode on the S7X08000 or
S7X0800K0 card is set to 25GE using the set card port-config-mode 25g-port enable
command.
● Configuring the maximum rate supported by interfaces in a MultiGE interface
group
a. Run system-view
The system view is displayed.
b. Run assign group-speed [ slot slot-id ] group group-number speed
The maximum rate supported by interfaces in a specified MultiGE
interface group is configured.
By default, you can run the display device group-speed configuration
command to check the maximum rate of a MultiGE interface based on
the BaseSpeed field in the command output.

NOTE

This configuration is supported only on the S5732-H24UM2CC, S5732-H48UM2CC,


S5736-S24UM4XC.

Verifying the Configuration


Run the display interface [ interface-type [ interface-number ] ] command in any
view or the display this interface command in the interface view to check the
current interface status. Check the Speed field in the command output.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 41


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

Run the display device group-speed configuration command in any view to


check the interface rate of the MultiGE interface group.

2.7.3 Configuring the Duplex Mode

Context
Interfaces can work in the following two duplex modes:
● Half-duplex mode: An interface in this mode only receives or sends data at a
time within a specified transmission distance.
● Full-duplex mode: An interface in this mode receives and sends data at the
same time. The maximum throughput in full-duplex mode is double that in
half-duplex mode, and the transmission distance is not limited.

You can configure the duplex mode of an Ethernet electrical interface working in
either auto-negotiation or non-auto-negotiation mode.

● In auto-negotiation mode, interfaces at both ends of a link negotiate the


duplex mode. If the negotiated duplex mode is not the required value, you
can manually set the duplex mode.
– If service traffic volume of enterprise users is high, interfaces at both ends
of a link must work in full-duplex mode. Otherwise, packet loss occurs.
You can run the auto duplex full command to set the duplex mode to
full-duplex. After the auto-negotiation succeeds, the interfaces work in
full-duplex mode.
– If service traffic volume of enterprise users is low, interfaces at both ends
of a link can meet data transmission requirements when they work in
half-duplex mode. You can run the auto duplex half command to set the
duplex mode to half-duplex. After the auto-negotiation succeeds, the
interfaces work in half-duplex mode.
● If the remote device does not support auto-negotiation, you can manually set
the duplex mode for the local interface in non-auto-negotiation mode to
ensure that the local interface works in the same duplex mode as the remote
interface.
NOTE

For details about the duplex mode supported by Ethernet interfaces, see 2.2 Licensing
Requirements and Limitations for Ethernet Interfaces.
Interfaces at both ends of a link must use the same duplex mode. If two connected electrical
interfaces use different auto-negotiation modes, the interfaces work in half-duplex mode after
the negotiation and will fail to exchange packets properly.
Physical interfaces of the S5732-H24S6Q, S5732-H48S6Q, S6735-S, S6720-EI, S6720S-EI, S6730-
H, S6730S-H, S6730-S, and S6730S-S, and MultiGE interface of the S5732-H24UM2CC, S5732-
H48UM2CC, S5732-H48XUM2CC do not support the half duplex mode and this command is not
supported.
Only MEth0/0/1 on the S5732-H, S6735-S, S6720-EI, S6720S-EI, S6730-S, S6730S-S, and S6730-
H supports the duplex mode configuration.

Procedure
● Configuring the duplex mode for an interface in auto-negotiation mode

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 42


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

a. Run system-view
The system view is displayed.
b. Run interface interface-type interface-number
The Ethernet interface view is displayed.
c. Run negotiation auto
The Ethernet interface is configured to work in auto-negotiation mode.
d. Run auto duplex { full | half }*
The duplex mode is set for the Ethernet interface.
By default, an Ethernet interface negotiates the duplex mode with the remote
interface.
● Configuring the duplex mode for an interface in non-auto-negotiation mode
a. Run system-view
The system view is displayed.
b. Run interface interface-type interface-number
The Ethernet interface view is displayed.
c. Run undo negotiation auto
The Ethernet interface is configured to work in non-auto-negotiation
mode.
d. Run duplex { full | half }
The duplex mode is set for the Ethernet interface.
By default, the duplex mode of an Ethernet interface is full-duplex.

Verifying the Configuration


Run the display interface [ interface-type [ interface-number ] ] command in any
view or the display this interface command in the interface view to check the
current interface status. Check the Duplex field in the command output.

2.7.4 Changing the Working Mode of an Interface and


Splitting the Interface

Context
There are four SFP28 Ethernet optical ports and two QSFP28 Ethernet optical
ports on the panel of S5732-H24UM2CC (part number: 02353HUC/
02353HUC-003/02353SJY/
02353SJY-001/02353SJY-004/02353SJY-010/02353SJY-011/02353SJY-014/02353SJY-
019/02353SJY-002/02353SJY-003/02353SJY-012/02353SJY-013/02353SJY-017/0235
3SJY-018), S5732-H48UM2CC (part number: 02353HUB/02353HUB-002/02353SJT/
02353SJT-001/02353SJT-003/02353SJT-004/02353SJT-010/02353SJT-011/02353SJT-
013/02353SJT-014/02353SJT-018/02353SJT-002) and S5732-H48XUM2CC. You can
run the set device port-config-mode enable command to change the working
mode of SFP28 Ethernet optical ports on the device panel and change the working
mode of QSFP28 Ethernet optical ports or split QSFP28 Ethernet optical ports. The
device supports eight types of working mode switching modes or interface split
modes:

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 43


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

● 4*25GE+2*40GE: Four SFP28 Ethernet optical ports work at the rate of 25


Gbit/s, and two QSFP28 Ethernet optical ports work at the rate of 40 Gbit/s.
● 4*25GE+4*10GE+40GE: Four SFP28 Ethernet optical ports work at the rate of
25 Gbit/s, QSFP28 Ethernet optical port 1 is split into four 10GE ports, and
QSFP28 Ethernet optical port 2 works at the rate of 40 Gbit/s.
● 4*25GE+40GE+4*10GE: Four SFP28 Ethernet optical ports work at the rate of
25 Gbit/s, QSFP28 Ethernet optical port 1 works at the rate of 40 Gbit/s, and
QSFP28 Ethernet optical port 2 is split into four 10GE ports.
● 4*25GE+8*10GE: Four SFP28 Ethernet optical ports work at the rate of 25
Gbit/s, and each of two QSFP28 Ethernet optical ports is split into four 10GE
ports.
● 2*100GE: Four SFP28 Ethernet optical ports are unavailable, and two QSFP28
Ethernet optical ports work at the rate of 100 Gbit/s.
● 4*25GE+100GE: Four SFP28 Ethernet optical ports are unavailable, QSFP28
Ethernet optical port 1 is split into four 25GE ports, and QSFP28 Ethernet
optical port 2 works at the rate of 100 Gbit/s.
● 100GE+4*25GE: Four SFP28 Ethernet optical ports are unavailable, QSFP28
Ethernet optical port 1 works at the rate of 100 Gbit/s, and QSFP28 Ethernet
optical port 2 is split into four 25GE ports.
● 8*25GE: Four SFP28 Ethernet optical ports are unavailable, and each of two
QSFP28 Ethernet optical ports is split into four 25GE ports.

On the panel of the S5731-S8UM16UN2Q and S5731S-S8UM16UN2Q-A, there are


24 MultiGE interfaces, four SPF+ Ethernet optical ports, and two QSFP+ Ethernet
optical ports. You can switch the interface working mode as required. The device
supports the following working mode switching modes:

● 8*10G+16*2.5G+2*40G: On the panel, the first 16 MultiGE interfaces work at


the rate of 2.5 Gbit/s, the last eight MultiGE interfaces work at the rate of 10
Gbit/s, four SFP+ Ethernet optical ports are unavailable, and two QSFP+
Ethernet optical ports work at the rate of 40 Gbit/s.
● 12*10G+12*2.5G+4*10G: On the panel, the first 12 MultiGE interfaces work at
the rate of 2.5 Gbit/s, the last 12 MultiGE interfaces work at the rate of 10
Gbit/s, four SFP+ Ethernet optical ports work at the rate of 10 Gbit/s, and two
QSFP+ Ethernet optical ports are unavailable.
NOTE

This configuration is supported only by the S5731-S8UM16UN2Q, S5731S-S8UM16UN2Q-A,


S5732-H24UM2CC (part number: 02353HUC/02353HUC-003/02353SJY/
02353SJY-001/02353SJY-004/02353SJY-010/02353SJY-011/02353SJY-014/02353SJY-019/0235
3SJY-002/02353SJY-003/02353SJY-012/02353SJY-013/02353SJY-017/02353SJY-018), S5732-
H48UM2CC (part number: 02353HUB/02353HUB-002/02353SJT/
02353SJT-001/02353SJT-003/02353SJT-004/02353SJT-010/02353SJT-011/02353SJT-013/0235
3SJT-014/02353SJT-018/02353SJT-002) and S5732-H48XUM2CC.

Procedure
1. Run system-view
The system view is displayed.
2. Run set device port-config-mode port-config-mode enable { all | slot slot-
id }

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 44


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

The working mode of Ethernet optical ports and MultiGE interfaces on the
device panel is changed and the working mode of QSFP28 Ethernet optical
ports is changed or QSFP28 Ethernet optical ports are split.
By default, four SFP28 Ethernet optical ports on the panel of the S5732-
H24UM2CC (part number: 02353HUC/02353HUC-003/02353SJY/
02353SJY-001/02353SJY-004/02353SJY-010/02353SJY-011/02353SJY-014/0235
3SJY-019/02353SJY-002/02353SJY-003/02353SJY-012/02353SJY-013/02353SJY-
017/02353SJY-018), S5732-H48UM2CC (part number: 02353HUB/
02353HUB-002/02353SJT/
02353SJT-001/02353SJT-003/02353SJT-004/02353SJT-010/02353SJT-011/0235
3SJT-013/02353SJT-014/02353SJT-018/02353SJT-002) and S5732-H48XUM2CC
work at the rate of 25 Gbit/s, and two QSFP28 Ethernet optical ports work at
the rate of 40 Gbit/s. On the panel of the S5731-S8UM16UN2Q and S5731S-
S8UM16UN2Q-A, the first 16 MultiGE interfaces work at the rate of 2.5
Gbit/s, the last eight MultiGE interfaces work at the rate of 10 Gbit/s, four SFP
+ Ethernet optical ports are unavailable, and two QSFP+ Ethernet optical
ports work at the rate of 40 Gbit/s.

Verifying the Configuration


Run the display device port-config-mode status command in any view to check
the interface working mode and interface split information.

2.7.5 Configuring the Serdes Mode of a MultiGE Interface


Context
By default, when a MultiGE interface works at the rate of 2.5 Gbit/s or 5 Gbit/s,
the Serdes mode of the MultiGE interface is 10G. When a Huawei device is
connected to a non-Huawei device, if the preamble of packets sent from the non-
Huawei device is not fixed, the MultiGE interface connecting the Huawei device to
the non-Huawei device discards the packets. To prevent this problem, when a
Huawei device connects to a non-Huawei device and receives the
ENTITYTRAP_1.3.6.1.4.1.2011.5.25.219.2.2.3 hwBoardFail alarm with
EntityTrapFaultID being 132282, run the port serdes-mode command to change
the Serdes mode of the MultiGE interface to 2.5G or 5G based on the alarm
information.
When a Huawei device connects to a non-Huawei device, the MultiGE interface
connecting the Huawei device to the non-Huawei device cannot go Up if its
Serdes mode is different from that on the non-Huawei device. To prevent this
problem, when a Huawei device connects to a non-Huawei device and receives the
ENTITYTRAP_1.3.6.1.4.1.2011.5.25.219.2.2.3 hwBoardFail alarm with
EntityTrapFaultID being 132283, run the port serdes-mode command to change
the Serdes mode of the MultiGE interface to be the same as that on the non-
Huawei device based on the alarm information.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 45


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

NOTE

Only the following switch models support the configuration:


S5732-H24UM2CC (part number: 02353HUC/02353HUC-003/02353SJY/
02353SJY-001/02353SJY-004/02353SJY-010/02353SJY-011/02353SJY-014/02353SJY-019/02353SJY
-002/02353SJY-003/02353SJY-012/02353SJY-013/02353SJY-017/02353SJY-018), S5732-
H48UM2CC (part number: 02353HUB/02353HUB-002/02353SJT/
02353SJT-001/02353SJT-003/02353SJT-004/02353SJT-010/02353SJT-011/02353SJT-013/02353SJT
-014/02353SJT-018/02353SJT-002), S5732-H48XUM2CC (excluding MultiGE interfaces numbered
9 to 12)

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run interface MultiGE interface-number
The MultiGE interface view is displayed.
Step 3 Run port serdes-mode { 2500-base-x | 5000-base-x } { sgmii | xfi }
The Serdes mode of the MultiGE interface is configured.
By default, a MultiGE interface can work in 10G or 1G Serdes mode.

----End

Verifying the Configuration


Run the display this command in the interface view to check the configuration.

2.7.6 Configuring the Working Mode of a 25GE Interface


Context
By default, the S7X08000 or S7X0800K0 card works in 10GE interface mode and
provides 8*10GE interfaces. To use 25GE interfaces, run the set card port-config-
mode 25g-port enable command. In this case, the number of interfaces on the
card is 2*25GE, and the last six interfaces are unavailable.

NOTE

The following models support this configuration when equipped with the S7X08000 card:
● S5731-H24T4XC, S5731-H24P4XC, S5731-H48T4XC, S5731-H48P4XC, S5731-H24HB4XZ,
S5731-H48HB4XZ
● S5731S-H24T4XC-A, S5731S-H48T4XC-A, S5731S-H24HB4XZ-A, S5731S-H48HB4XZ-A
● S5736-S
● S5732-H24UM2CC, S5732-H48UM2CC, S5732-H48XUM2CC

Procedure
Step 1 Run system-view
The system view is displayed.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 46


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

Step 2 Run set card port-config-mode 25g-port enable slot slot-id

The card interface working mode is set to 25GE.

By default, a switch works only in 10GE interface mode.

----End

Verifying the Configuration


Run the display card port-config-mode configuration command in any view to
check information about the card interface working mode.

2.7.7 Configuring the Working Mode of a Combo Interface

Context
A combo interface consists of a GE electrical interface and a GE optical interface
on the panel. The multiplexed electrical and optical interfaces share one internal
forwarding interface and cannot work at the same time. When one interface
works, the other interface is disabled. You can use the electrical or optical
interface based on the remote interface type. The electrical and optical interfaces
share one interface view. When you enable the electrical or optical interface,
configure the interface attributes (such as the rate and duplex mode) in the same
interface view.

As shown in Figure 2-3, combo interface GE0/0/1 consists of an optical interface


and an electrical interface on the panel. The optical and electrical interfaces
cannot work concurrently. To configure the attributes of the optical or electrical
interface, enter the same interface view of GE0/0/1.

Figure 2-3 Combo interface

For details about the combo interface location on the panel, see "Appearance and
Structure" in the Hardware Description.

NOTE

Only combo interfaces support this function. For details about the combo interface
supported by the switch, see the Hardware Description or click Info-Finder.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 47


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run interface gigabitethernet interface-number
The GE interface view is displayed.
Step 3 Run combo-port { auto | copper | fiber }
The working mode of the combo interface is configured.
By default, a combo interface works in auto mode, in which the combo interface
automatically works as an optical or electrical interface.
● When the auto mode is specified, the system checks whether the combo
optical interface has an optical module installed, and selects the interface
working mode as follows:
– When the electrical interface is not connected, the combo interface works
as an optical interface if the combo optical interface has an optical
module installed.
– When the electrical interface is connected using a network cable and the
combo interface is Up, the combo interface works as an electrical
interface even if the combo optical interface has an optical module
installed. However, the combo interface works as an optical interface
after the device restarts.
– When the electrical interface is connected using a network cable and the
combo interface is Down, the combo interface works as an optical
interface if the combo optical interface has an optical module installed.
In summary, when the auto mode is specified and the combo optical interface
has an optical module installed, the combo interface works as an optical
interface after the device restarts.
● You can forcibly specify the working mode of the combo interface based on
the remote interface type. If the local combo electrical interface is connected
to a remote electrical interface, configure the combo interface to work in
copper mode. If the local combo optical interface is connected to a remote
optical interface, configure the combo interface to work in fiber mode.
----End

Verifying the Configuration


Run the display interface [ interface-type [ interface-number ] ] command in any
view or the display this interface command in the interface view to check the
current interface status. Check the Port Mode field in the command output.

2.7.8 Switching an Interface Between Layer 2 and Layer 3


Modes
Context
Due to hardware restrictions of switches, some Ethernet interfaces work in only
Layer 2 or Layer 3 mode, whereas other Ethernet interfaces can work in both

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 48


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

Layer 2 and Layer 3 modes. An Ethernet interface works as a Layer 2 interface in


Layer 2 mode and a Layer 3 interface in Layer 3 mode.
To switch between Layer 2 and Layer 3 modes on multiple interfaces, run the
portswitch batch command in the system view.

NOTE

Only interfaces on the S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6735-S, S6720-EI,
S6720S-EI, S6730-H, S6730S-H, S6730-S, and S6730S-S support switching between Layer 2
and Layer 3 modes.
IP addresses can be assigned to Ethernet interfaces in Layer 3 mode.
By default, an Ethernet interface works at Layer 2 and belongs to VLAN 1. An interface is
not removed from VLAN 1 immediately after being switched to Layer 3 mode. It is removed
from VLAN 1 only when Layer 3 protocols are Up.
You can configure Layer 2 and Layer 3 modes of an Ethernet interface in the Ethernet
interface view or system view. When the configurations in the two views differ, the latest
configuration takes effect.

Procedure
● Switch an Ethernet interface to Layer 3 mode in the Ethernet interface view.
a. Run system-view
The system view is displayed.
b. Run interface interface-type interface-number
The Ethernet interface view is displayed.
c. Run undo portswitch
The interface is switched to Layer 3 mode.
By default, an Ethernet interface works in Layer 2 mode.
When you run this command on an interface, the mode switching
configuration takes effect when only attribute configurations (such as
shutdown and description configurations) exist on the interface. If
service configurations (such as the port link-type trunk configuration)
exist on the interface, you need to clear all service configurations before
running this command.
● Switch an Ethernet interface to Layer 2 mode in the Ethernet interface view.
a. Run system-view
The system view is displayed.
b. Run interface interface-type interface-number
The Ethernet interface view is displayed.
c. Run portswitch
The interface is switched to Layer 2 mode.
By default, an Ethernet interface works in Layer 2 mode.
When you run this command on an interface, the mode switching
configuration takes effect when only attribute configurations (such as
shutdown and description configurations) exist on the interface. If

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 49


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

service configurations (such as the port link-type trunk configuration)


exist on the interface, you need to clear all service configurations before
running this command.
● Switch Ethernet interfaces to Layer 3 mode in a batch in the system view.
a. Run system-view

The system view is displayed.


b. Run undo portswitch batch interface-type { interface-number1 [ to
interface-number2 ] } &<1-10>
The interfaces are switched to Layer 3 mode in a batch.

By default, an Ethernet interface works in Layer 2 mode.


● Switch Ethernet interfaces to Layer 2 mode in a batch in the system view.
a. Run system-view

The system view is displayed.


b. Run portswitch batch interface-type { interface-number1 [ to interface-
number2 ] } &<1-10>
The interfaces are switched to Layer 2 mode in a batch.

By default, an Ethernet interface works in Layer 2 mode.

----End

Verifying the Configuration


Run the display interface [ interface-type [ interface-number ] ] command in any
view or the display this interface command in the interface view to check the
current interface status. The interface is a Layer 2 interface if the Switch Port field
is displayed in the command output and is a Layer 3 interface if the Route Port
field is displayed.

2.8 Configuring Common Attributes of Optical and


Electrical Interfaces

2.8.1 Configuring Bidirectional Flow Control

Context
Flow control prevents packet loss caused by network congestion. If network
congestion occurs on the local device after flow control is configured, the local
device sends a message to the remote device, requesting the remote device to
temporarily stop sending packets. After receiving the message, the remote device
temporarily stops sending packets to the local device regardless of the interface
working rate. In this case, the device can receive and send pause frames.

As shown in Figure 2-4, SwitchA communicates with SwitchC through SwitchB.


The flow control function is implemented as follows:

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 50


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

1. GE0/0/1 of SwitchA and GE0/0/2 of SwitchB are connected, and their


negotiation rate is 1000 Mbit/s. The two interfaces send data packets to each
other at the rate of 1000 Mbit/s.
2. The outbound interface Eth0/0/3 of SwitchB provides a maximum
transmission rate of only 100 Mbit/s. When congestion occurs during packet
forwarding, SwitchB caches the received packets. As the cached packets
accumulate, Eth0/0/3 cannot forward all the packets due to forwarding
capability limitations, and packet loss will occur.
3. After flow control is configured on GE0/0/1 of SwitchA and GE0/0/2 of
SwitchB, GE0/0/2 sends a Pause frame to GE0/0/1, requesting GE0/0/1 to
temporarily stop sending packets. After receiving the Pause frame, GE0/0/1
stops sending packets to GE0/0/2 within the period specified in the Pause
frame. If the congestion persists, GE0/0/2 continues to send Pause frames to
GE0/0/1.
4. Eth0/0/3 continues to send cached data packets until the congestion is
eliminated.
5. After the congestion is eliminated, SwitchB stops sending Pause frames to
SwitchA. SwitchA then continues to send data packets to SwitchB at the rate
of 1000 Mbit/s.

Figure 2-4 Networking diagram of flow control

If the remote device does not support auto-negotiation, you can configure flow
control on the local and remote devices. If both the local and remote devices
support auto-negotiation, you can configure flow control auto-negotiation on the
two devices. The local device then negotiates with the remote device to determine
whether to enable flow control based on the network congestion status.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 51


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

NOTE

For details about Ethernet interfaces supporting the flow control function, see 2.2 Licensing
Requirements and Limitations for Ethernet Interfaces.
Flow control and flow control auto-negotiation cannot be concurrently configured on
Ethernet interfaces.
Flow control auto-negotiation takes effect only when configured on interfaces at both ends
of a link.
When an interface works in half-duplex mode, flow control does not take effect on the
interface.
A GE optical interface supports flow control and flow control auto-negotiation after it has a
GE copper module or a GE optical module installed.
An XGE optical interface supports flow control and flow control auto-negotiation after it
has a GE copper module installed.
A 25GE optical interface supports flow control and flow control auto-negotiation after it
has a GE copper module installed. Before installing a GE copper module on a 25GE optical
interface, you need to run the port mode ge command to configure the interface to work
at the rate of 1 Gbit/s.
On the S5720-52P-LI-AC, if interfaces 0 to 23 work as inbound interfaces (or outbound
interfaces) and interfaces 24 to 47 work as outbound interfaces (or inbound interfaces),
flow control auto-negotiation does not take effect on these interfaces.
Multicast functions (Layer 2 and Layer 3 multicast) and the flow control function
(configured using the flow-control command) are mutually exclusive on the following
models: S2730S-S, S5735-L-I, S5735-L1, S300, S5735-L, S5735S-L1, S5735S-L, S5735S-L-M,
S500, S5735-S, S5735S-S, S5735-S-I

Procedure
● Configuring flow control
a. Run system-view

The system view is displayed.


b. Run interface interface-type interface-number

The interface view is displayed.


c. Run flow-control

Flow control is configured.

By default, flow control is disabled on an Ethernet interface.


● Configuring flow control auto-negotiation
a. Run system-view

The system view is displayed.


b. Run interface interface-type interface-number

The interface view is displayed.


c. Run negotiation auto

The interface is configured to work in auto-negotiation mode.


d. Run flow-control negotiation

Flow control auto-negotiation is configured on the interface.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 52


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

By default, flow control auto-negotiation is disabled on an Ethernet


interface.
----End

Verifying the Configuration


Run the display interface [ interface-type [ interface-number ] ] command in any
view or the display this interface command in the interface view to check the
current interface status. Check the Flow-control field in the command output.

2.8.2 Configuring Unidirectional Flow Control


Context
Flow control prevents packet loss caused by network congestion. On a
unidirectional communication network, after received flow control is enabled on
the Ethernet interface at the transmit side and flow control is enabled on the
Ethernet interface at the receive side, if congestion occurs on the device at the
receive side, the device sends a message to the device at the transmit side to
notify it to stop sending packets. After receiving the message, the device at the
transmit side temporarily stops sending packets to the device at the receive side
regardless of the interface working rate, preventing congestion. In this case, the
device at the transmit side can receive pause frames, but cannot send pause
frames; the device at the receive side can receive and send pause frames.
As shown in Figure 2-5, SwitchA communicates with SwitchC through SwitchB.
The received flow control function is implemented as follows:
1. When GE0/0/1 on SwitchA is connected to GE0/0/2 on SwitchB, the interfaces
are automatically negotiated to work at the rate of 1000 Mbit/s. The two
interfaces send data packets to each other at the rate of 1000 Mbit/s.
2. The outbound interface Eth0/0/3 of SwitchB provides a maximum
transmission rate of only 100 Mbit/s. When congestion occurs during packet
forwarding, SwitchB caches the received packets. As the cached packets
accumulate, Eth0/0/3 cannot forward all the packets due to forwarding
capability limitations, and packet loss will occur.
3. Configure received flow control on GE0/0/1 of SwitchA, configure flow control
on GE0/0/2 of SwitchB. GE0/0/2 then will send a pause frame to GE0/0/1 on
the peer device to notify GE0/0/1 to temporarily stop sending packets. After
receiving the frame, GE0/0/1 will temporarily stop sending packets to
GE0/0/2. Information about the duration for the interface to stop sending
packets is carried in the pause frame. If the congestion persists, GE0/0/2
continues sending pause frames to GE0/0/1.
4. Eth0/0/3 continues to send the cached data packets until the congestion is
eliminated.
5. After the congestion is eliminated, SwitchB stops sending pause frames to
SwitchA. SwitchA then continues to send data packets to SwitchB at the rate
of 1000 Mbit/s.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 53


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

Figure 2-5 Networking diagram of flow control

When the device at the transmit side does not support auto-negotiation, you can
configure received flow control on the inbound interface of the link (at the
transmit side) and configure flow control on the outbound interface (at the
receive side). When devices at both ends of the link support auto-negotiation, you
can configure received flow control auto-negotiation on the inbound interface of
the link (at the transmit side) and configure flow control auto-negotiation on the
outbound interface (at the receive side), so that the devices can negotiate with
the peer devices to determine whether to enable flow control based on the
network congestion status.

NOTE

For details about Ethernet interfaces supporting received flow control, see 2.2 Licensing
Requirements and Limitations for Ethernet Interfaces.
Flow control, received flow control, flow control auto-negotiation, and received flow control
auto-negotiation can be configured on Ethernet interfaces, but cannot be configured
together.
Flow control can be implemented only after flow control is enabled on the interface of the
device at the receive side.
When an interface works in half-duplex mode, received flow control does not take effect.
GE optical interfaces support received flow control auto-negotiation after GE optical or GE
copper modules are installed on them.
XGE optical interfaces support received flow control auto-negotiation after GE copper
modules are installed on them.
A 25GE optical interface supports flow control and flow control auto-negotiation after it
has a GE copper module installed. Before installing a GE copper module on a 25GE optical
interface, you need to run the port mode ge command to configure the interface to work
at the rate of 1 Gbit/s.
For the S5720-52P-LI-AC, if received flow control auto-negotiation is configured on the
interfaces 0 to 23 that work as inbound interfaces and flow control auto-negotiation is
configured on the interfaces 24 to 47 that work as outbound interfaces, received flow
control auto-negotiation and flow control auto-negotiation do not take effect.
Multicast functions (Layer 2 and Layer 3 multicast) and the flow control function
(configured using the flow-control command) are mutually exclusive on the following
models: S2730S-S, S5735-L-I, S5735-L1, S300, S5735-L, S5735S-L1, S5735S-L, S5735S-L-M,
S500, S5735-S, S5735S-S, S5735-S-I

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 54


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

Procedure
● Enable received flow control.
a. Run system-view
The system view is displayed.
b. Run interface interface-type interface-number
The Ethernet interface view is displayed.
c. Run flow-control receive
Received flow control is enabled on the Ethernet interface.
By default, received flow control is disabled on an Ethernet interface.
● Enable received flow control auto-negotiation.
a. Run system-view
The system view is displayed.
b. Run interface interface-type interface-number
The Ethernet interface view is displayed.
c. Run negotiation auto
The interface is configured to work in auto-negotiation mode.
d. Run flow-control negotiation receive
Received flow control auto-negotiation is enabled on the Ethernet
interface.
By default, received flow control auto-negotiation is disabled on an
Ethernet interface.
----End

Verifying the Configuration


Run the display interface [ interface-type [ interface-number ] ] command in any
view or the display this interface command in the interface view to check the
running status of the interface. Check the Flow-control field in the command
output.

2.8.3 Configuring the Delay in Reporting Physical Status


Changes

Context
The physical status of an Ethernet interface can be Up or Down. When the
physical status changes, the system notifies upper-layer protocol modules (such as
the routing and forwarding modules) of the change to direct packet receiving and
forwarding. The system also automatically generates traps and logs to remind
users to perform corresponding operations on physical links. For example, when
the physical status of the active interface in an interface protection group changes
from Up to Down, the system immediately instructs the upper-layer service
forwarding protocol to send service packets from the standby interface.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 55


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

If frequent physical status changes are reported to the system, extra system costs
are generated. You can configure the delay in reporting physical status changes to
solve the problem. The system is unaware of the physical status changes on
interfaces within the configured delay. If the interface physical status is not
recovered after the delay expires, the physical status changes are reported to the
system.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run interface interface-type interface-number

The interface view is displayed.

Step 3 Run carrier { up-hold-time | down-hold-time } interval

The delay in reporting physical status changes is configured.

By default, the delay in reporting an interface Up event is 2000 milliseconds and


the delay in reporting an interface Down event is 0 milliseconds.

You can configure the delay in reporting physical status changes based on the
network connection status.
● Setting a long delay
For example, an interface frequently alternates between Up and Down states
at an interval shorter than the IP route convergence time. In this case, the
upper-layer protocol does not need to sense the physical status changes. You
can set a long delay in reporting physical status changes to avoid unnecessary
routing entry refreshing caused by frequent physical status changes.
● Setting a short delay
For example, when the physical status of the active interface in an interface
protection group changes from Up to Down, the system needs to immediately
instruct the upper-layer service forwarding protocol to send service packets
from the standby interface. In this case, you can set a short delay in reporting
physical status changes to ensure real-time service switchover.

----End

2.8.4 Configuring the Interval of Collecting Traffic Statistics


on an Interface

Context
When the NMS obtains interface traffic statistics through the MIB tables iftable
and ifxtable, the time for querying interface traffic statistics in real time is long.
When the device has a large number of interfaces, the query efficiency of the NMS
is low. To resolve this issue, switches can be configured to periodically collect
traffic statistics on interfaces. In this case, the NMS can directly obtain traffic
statistics collected on interfaces, improving the query efficiency.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 56


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run set if-mib sample-interval interval-value

The interval for collecting traffic statistics on an interface is configured.

The default period is 60 seconds.

----End

2.8.5 Configuring Link Flapping Protection

Context
A link flap occurs when the physical status of an interface frequently alternates
between Up and Down due to network flapping or network cable faults. This
causes frequent network topology changes and affects user communication. For
example, two links work in primary/backup mode. If the interface of the primary
link experiences frequent Up/Down transitions, flows are switched between the
primary and backup links. Frequent service switchovers increase load of the device
and may result in service data loss.

Link flapping protection can solve the problem. To be specific, you can configure
link flapping protection globally or on a specified interface. This function disables
interfaces that frequently alternate between Up and Down so that the interfaces
become Down. This prevents the network topology from changing frequently.
When the system detects frequent physical status changes on the interface of the
primary link, the system directly disables the interface to trigger a primary/backup
link switchover. The backup link then steadily transmits services. The link flapping
protection function involves the following parameters:
● Number of link flaps: A link flap refers to an interface Up/Down transition.
● Link flapping detection period: It is a period during which the system counts
the number of link flaps.
If the number of link flaps on an interface reaches the threshold within a link
flapping detection period, the system disables the interface and records its status
as ERROR DOWN(link-flap) when link flapping protection is configured on this
interface or records its status as LINK-FLAP DOWN when link flapping protection
is configured globally. By default, after link flapping protection is enabled, an
interface goes Down if its status changes five times within 10 seconds.

To check whether a link flap occurs on a specified interface, disable global link
flapping protection and then enable link flapping protection on this interface. To
detect link flaps on all interfaces of a device, enable global link flapping protection
on the device. The link flapping protection function on a specified interface and
the global link flapping protection function are mutually exclusive. If the link
flapping protection function is enabled on an interface, the global link flapping
protection function does not take effect on this interface.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 57


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

Procedure (Enabling Link Flapping Protection on a Specified Interface)


1. Run system-view
The system view is displayed.
2. Run interface interface-type interface-number
The interface view is displayed.
3. Run port link-flap protection enable
Link flapping protection is enabled on the interface.
By default, link flapping protection is disabled on an interface.
4. (Optional) Run port link-flap interval interval-value
The link flapping detection period is set for the interface.
By default, the link flapping detection period for an interface is 10 seconds.
5. (Optional) Run port link-flap threshold threshold-value
The threshold for the number of link flaps is set for the interface.
By default, the threshold for the number of link flaps for an interface is 5.

Procedure (Enabling Global Link Flapping Protection)


1. Run system-view
The system view is displayed.
2. Run port link-flap auto-detect protection enable
Global link flapping protection is enabled.
By default, global link flapping protection is enabled. Note: Stack interfaces
do not support link flapping protection.
3. (Optional) Run port link-flap auto-detect interval interval-value
The global link flapping detection period is set.
By default, the global link flapping detection period is 10 seconds.
4. (Optional) Run port link-flap auto-detect threshold threshold-value
The global threshold for the number of link flaps within a specified period is
set.
By default, the global threshold for the number of link flaps within a specified
period is 5.
5. (Optional) Run port link-flap auto-detect recovery interval threshold-value
The automatic recovery period after interfaces go Down due to global link
flapping protection is set.
By default, the automatic recovery period after interfaces go Down due to
global link flapping protection is 60 seconds.

Verifying the Configuration


Run the display error-down recovery [ interface interface-type interface-
number ] command in any view to check information about the interface in Error-
Down state.
Run the display port link-flap auto-detect recovery command in any view to
check the automatic recovery period after interfaces go Down due to global link
flapping protection and the remaining automatic recovery period.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 58


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

Follow-up Procedure
An interface in ERROR DOWN(link-flap) state can be recovered using either of
the following methods:
● Manual recovery. If a few interfaces need to be recovered forcibly, run the
shutdown and undo shutdown commands in sequence in the interface view.
Alternatively, run the restart command in the interface view to restart the
interface.
● Automatic recovery. If a large number of interfaces need to be recovered,
manual recovery is time consuming and error prone. Instead, you can run the
error-down auto-recovery cause link-flap interval interval-value command
in the system view to enable automatic interface recovery and set the
automatic recovery delay. Interfaces in Error-Down state then automatically
recover after the specified delay expires.
An interface in LINK-FLAP DOWN state can be recovered using either of the
following methods:
● Manual recovery. If a few interfaces need to be recovered forcibly, run the
shutdown and undo shutdown commands in sequence in the interface view.
Alternatively, run the restart command in the interface view to restart the
interface.
● Automatic recovery. Interfaces are automatically recovered after the
automatic recovery period for global link flapping protection expires. To set
the automatic recovery period, run the port link-flap auto-detect recovery
interval threshold-value command. The default value is 60 seconds.

2.8.6 Configuring an Interface to Transit to the Error-Down


State When the Number of Received Error Packets Exceeds
the Threshold

Context
When an Ethernet interface receives excessive error packets, faults such as packet
loss will occur. Because the interface is still in Up state, traffic is still transmitted
on the interface even if a backup link is configured. To avoid impact on services,
you can configure the interface to change to the Error-down state when it receives
excessive error packets. When the number of received error packets on the
interface exceeds the threshold, the system disables the interface and records the
interface status as ERROR DOWN(error-statistics) state (indicating that the
interface is Down because of excessive error packets). Services are then switched
to the backup link immediately.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run interface interface-type interface-number
The interface view is displayed.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 59


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

Step 3 (Optional) Run trap-threshold error-statistics threshold-value interval interval-


value
The alarm threshold of error packets and the alarm interval are configured.

By default, the alarm threshold of error packets is 3 and the alarm interval is 10
seconds.

Step 4 Run error-statistics threshold-event trigger error-down

The interface is configured to transit to the Error-down state when the number of
received error packets exceeds the threshold.

By default, an interface does not transit to the Error-down state when the number
of received error packets exceeds the threshold.

Step 5 (Optional) Run error-down-threshold error-statistics threshold-value interval


interval-value
The threshold and the interval for error packets that transit to the Error-Down
state are configured.

By default, the threshold for error packets is 3 and the interval is 10 seconds.

----End

Verifying the Configuration


Run the display error-down recovery [ interface interface-type interface-
number ] command in any view to check information about the interface in Error-
down state.

Follow-up Procedure
An interface in Error-down state can be recovered using either of the following
methods:
● Manual recovery: If a few interfaces need to be recovered forcibly, run the
shutdown and undo shutdown commands in the interface view.
Alternatively, run the restart command in the interface view to restart the
interfaces.
● Automatic recovery: If a large number of interfaces need to be recovered,
manual recovery is time consuming and some interfaces may be omitted. You
can run the error-down auto-recovery cause error-statistics interval
interval-value command in the system view to enable automatic interface
recovery and set the recovery delay time. An interface in Error-down state
automatically recovers when the specified delay time expires.

2.8.7 Configuring the Device to Count the IFG and Preamble


Traffic Statistics

Context
You can run the display interface command to view the running status and traffic
statistics on an interface. The Last 300 seconds input rate or Last 300 seconds

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 60


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

output rate field in the command output indicates the inbound or outbound
traffic rate on the interface in the last 300 seconds.

● If you want to obtain the total number of bytes passing through an interface
in a period, configure the device to count the bytes in the interframe gap
(IFG) and preamble when collecting traffic statistics on the interface. The
interface traffic rate is as follows:
Interface traffic rate = (Original packet length + IFG + Preamble) x Number of
packets passing through the interface every second
● If you want to obtain only the number of packet bytes passing through an
interface in a period, configure the device not to count the bytes in the IFG
and preamble when collecting traffic statistics on the interface. The interface
traffic rate is as follows:
Interface traffic rate = Original packet length x Number of packets passing
through the interface every second
By default, the IFG has a fixed value of 12 bytes and the preamble has a fixed
value of 8 bytes.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run interface interface-type interface-number

The interface view is displayed.

Step 3 Run set flow-statistics include-interframe

The device is configured to count the bytes in the IFG and preamble when
collecting traffic statistics on the interface.

By default, traffic statistics on an interface contain the IFG and preamble. You can
run the display interface command to view the running status and traffic
statistics on an interface. The Last 300 seconds input rate or Last 300 seconds
output rate field in the command output indicates the rate of incoming or
outgoing traffic on the interface in the last 300 seconds.

----End

2.8.8 Setting the Jumbo Frame Length Allowed on an


Interface

Context
A jumbo frame is an Ethernet frame longer than 1518 bytes or a VLAN frame
longer than 1522 bytes.

When transmitting a large amount of data (such as files and videos), an Ethernet
interface may receive jumbo frames. If the jumbo frame length exceeds the
default data frame length that can be processed, the device directly discards the
jumbo frames. You can set the jumbo frame length allowed on an interface.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 61


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

After you configure the device to allow jumbo frames, packet forwarding becomes
more flexible. If multiple common Ethernet frames are used to transmit a data
packet, many redundant contents such as interframe gaps (IFGs) and preambles
are also transmitted. If jumbo frames are used to transmit the data packet, fewer
frames, as well as fewer IFGs and preambles, are transmitted, improving
bandwidth efficiency.
Setting the jumbo frame length to the maximum value may not be the optimal
choice. When a jumbo frame is transmitted on a network, the jumbo frame length
must be supported by all devices on the transmission path. Otherwise, the jumbo
frame will be discarded during transmission.

NOTE

S500, S5735-S, S5735S-S, S5735-S-I, S2730S-S, S5735-L-I, S5735-L1,S300, S5735-L, S5735S-


L, S5735S-L1, S5735-L-I, and S5735S-L-M do not support the configuration of the jumbo
frame length allowed on interfaces, and the maximum frame length allowed by interfaces
is 10240 bytes.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run interface interface-type interface-number
The Ethernet interface view is displayed.
Step 3 Run jumboframe enable [ value ]
The maximum frame length allowed on the interface is set.
By default, the maximum frame length allowed on an interface is 9216 bytes.
If you run the jumboframe enable command on an Ethernet interface without
specifying the value parameter, the maximum jumbo frame length allowed on the
interface is 9216 bytes.

NOTE

If the length of an outgoing packet exceeds the maximum frame length allowed on an
interface, the interface can directly forward the packet.

----End

2.8.9 Configuring the MTU of an Interface


Context
The maximum transmission unit (MTU) determines the maximum number of
bytes in IP packets each time a sender can send. The MTU of an IP packet is the
number of bytes from the IP header to the data of the packet.
When the IP layer receives an IP packet to be sent, it checks to which local
interface the packet needs to be sent and obtains the MTU configured on the
interface. The IP layer then compares the MTU with the packet length. If the
packet length is longer than the MTU, the IP layer fragments the packet into

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 62


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

smaller packets, which are shorter than or equal to the MTU. If unfragmentation is
configured, some packets may be discarded during data transmission at the IP
layer. To ensure that large packets are not discarded during transmission,
configure forcible fragmentation.

The size of data frames is limited at the network layer. Therefore, a proper MTU is
a prerequisite for normal communication on a network.
● If the configured MTU is excessively small and the packet size is larger,
packets are discarded when being forwarded through the forwarding chip.
Packets are broken into a great number of fragments when being forwarded
through the CPU, affecting proper data transmission.
● If the size of packets exceeds the MTU supported by a transit node or a
receiver, the transit node or receiver fragments the packets or even discards
them, aggravating the network transmission load.

The default MTU is recommended. When the size of packets to be transmitted or


the device that receives packets changes, you can change the MTU based on the
actual network.

NOTE

The configured MTU takes effect for data packets on the control plane.
For S5732-H, S6730-H, S6730S-H, S6730-S, S6730S-S, S5731-H, S5731S-H, S5731-S, and
S5731S-S, the configured MTU takes effect for data packets on the forwarding plane only
after you run the ipv4 fragment enable command to enable packet fragmentation. The
configured MTU takes effect for GRE packets on the forwarding plane without the need to
execute the ipv4 fragment enable command. For other switches, the configured MTU does
not take effect for data packets on the forwarding plane.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run interface interface-type interface-number

The Ethernet interface view is displayed.

Step 3 Run undo portswitch

The Ethernet interface is switched from Layer 2 mode to Layer 3 mode.

Step 4 Run mtu mtu

The MTU of the interface is configured.

By default, the MTU of an interface is 1500 bytes.

Configuring the MTU of an interface affects the maximum number of bytes in IP


packets to be sent by the interface at a time. This configuration also affects the
maximum frame length of sent Ethernet packets. The Ethernet packet size cannot
exceed the maximum frame length allowed by the peer interface, which can be
set using the jumboframe enable command.

Step 5 Run restart

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 63


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

The interface is restarted.

----End

2.8.10 Configuring the Log and Alarm Threshold for Inbound


and Outbound Bandwidth Usage

Context
Monitoring bandwidth usage helps you know current load on a device. If the
bandwidth usage exceeds a threshold, bandwidth resources are insufficient and
the device capacity needs to be expanded. For example, if the bandwidth usage
exceeds 95%, an alarm is generated, indicating that bandwidth resources are
almost exhausted. As a result, some services may be interrupted before device
capacity expansion.
You can configure two thresholds: low threshold (log threshold) and high
threshold (alarm threshold). The system generates a log when the bandwidth
usage exceeds the low threshold and generates an alarm when the bandwidth
usage exceeds the high threshold. This configuration ensures that you can expand
the device capacity in advance to avoid service interruptions caused by bandwidth
exhaustion.
As shown in Figure 2-6, the log threshold for bandwidth usage is 75% and alarm
threshold is 80%, and the interface bandwidth usage is collected at an interval of
1T.
● From 1T to 4T, the interface bandwidth usage is lower than the log threshold
75%. The system does not display any message.
● At 5T, the interface bandwidth usage reaches 75%. The system generates a
log to ask you whether to expand the device capacity.
● If you do not expand the device capacity, the interface bandwidth usage
reaches 80% at 6T. The system generates an alarm, indicating that the
bandwidth is almost exhausted and reminding you to take proper operations.

Figure 2-6 Bandwidth usage log and alarm thresholds

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 64


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run interface interface-type interface-number

The interface view is displayed.

Step 3 Run log-threshold { input-rate | output-rate } bandwidth-in-use [ resume-rate


resume-threshold ]
The log threshold for inbound and outbound bandwidth usage is configured for
the interface.

The default log threshold for inbound and outbound bandwidth usage on an
interface is 80%.

Step 4 Run trap-threshold { input-rate | output-rate } bandwidth-in-use [ resume-rate


resume-threshold ]
The alarm threshold for inbound and outbound bandwidth usage is configured for
the interface.

The default alarm threshold for inbound and outbound bandwidth usage on an
interface is 80%.

NOTE

To prevent logs and alarms from being frequently generated and cleared, set a large difference
between the values of bandwidth-in-use and resume-threshold.

----End

2.8.11 Configuring the Trap Threshold for a Sudden Traffic


Volume Change on Interfaces
Context
To allow the switch to detect real-time traffic volume changes on interfaces, you
can perform the following operations to configure the switch to generate a trap
when the traffic volume change percentage on interfaces exceeds the specified
threshold (value of threshold) and the bandwidth usage percentage is not lower
than the lower threshold (value of bandwidth-usage-threshold).

Traffic volume change percentage on interfaces = |Interface rate in the current


traffic statistics collection interval - Interface rate in the previous traffic statistics
collection interval| / Interface rate in the previous traffic statistics collection
interval

Procedure
Step 1 Run system-view

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 65


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

The system view is displayed.


Step 2 Run set flow-change-ratio start-check bandwidth-usage bandwidth-usage-
threshold
The lower threshold of the initial bandwidth usage percentage for triggering a
trap is configured.
By default, the lower threshold of the initial bandwidth usage percentage for
triggering a trap is 20%.
Step 3 Run set flow-change-ratio { input-threshold | output-threshold } upper-limit
threshold
The trap threshold for a sudden traffic volume change on interfaces is configured.
By default, the trap threshold for a sudden traffic volume change on interfaces is
50%.
If the trap function for a sudden traffic volume change is enabled (using the
snmp-agent trap enable feature ifpdt trap-name
hwInputRateChangeOverThresholdNotice or snmp-agent trap enable feature
ifpdt trap-name hwOutputRateChangeOverThresholdNotice command) after
the set flow-change-ratio command is enabled, a trap will be generated when
the traffic volume change percentage on interfaces exceeds the specified threshold
(value of threshold) and the bandwidth usage percentage is not lower than the
lower threshold (threshold configured using the set flow-change-ratio start-
check command).
Step 4 (Optional) Run set flow-stat interval
The traffic statistics collection interval is configured.
By default, the traffic statistics collection interval is 300 seconds.

----End

2.8.12 Disabling Detection of a Sudden Broadcast Traffic


Volume Change in the Inbound Direction of Interfaces
Context
By default, a switch checks whether the broadcast traffic volume in the inbound
direction of interfaces changes suddenly. If the switch detects a sudden broadcast
traffic volume change in the inbound direction of interfaces and the broadcast
traffic volume exceeds the upper threshold (20000 pps), an alarm is generated,
which facilitates network maintenance.
If the switch has many interfaces, detection of a sudden broadcast traffic volume
change in the inbound direction of interfaces consumes some CPU and memory
resources. You can disable the function.

Procedure
Step 1 Run system-view
The system view is displayed.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 66


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

Step 2 Run set flow-change-ratio input-broadcast-detect disable


Detection of a sudden broadcast traffic volume change in the inbound direction of
interfaces is disabled.
By default, detection of a sudden broadcast traffic volume change in the inbound
direction of interfaces is enabled.
----End

2.8.13 Enabling the Log Function for Inbound and Outbound


Packet Loss Caused by Congestion

Context
Network congestion during service transmission may cause packet loss. If a lot of
packets are discarded, services are affected. To better monitor the number of
discarded packets, you can run the log-threshold { input-discard | output-
discard }* command in the system view to enable the log function for inbound
and outbound packet loss caused by congestion. The device generates a log when
the number of discarded incoming and outgoing packets on the interface in a
specified period exceeds the threshold. Logs help you know the congestion on the
interface. You can determine whether to increase the bandwidth or cancel the
bandwidth limit on the interface based on the logs. In this way, the congestion
problem can be solved.

Procedure
Step 1 Run system-view
The system view is displayed.

Step 2 Run log-threshold { input-discard | output-discard }*


The log function for packet loss caused by congestion is enabled on all interfaces.
----End

2.9 Configuring Optical Interface Attributes

2.9.1 Configuring Interface Split and Merge


Context
Some 40GE optical interfaces and 100GE optical interfaces supported by the
device can be used as independent interfaces or each can be split into multiple
independent interfaces. A 40GE interface can be split into four 10GE interfaces. A
100GE interface can be split into four 25GE interfaces. With the interface split
function, interfaces on the device can connect to various types of interfaces on the
remote device, allowing for flexible networking and lowering hardware costs.
After an interface is split, the original interface does not work. The converted
10GE or 40GE optical interfaces support the same configurations and features as

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 67


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

common optical interfaces, except that they are numbered in a different way. For
details about the numbering rule, see 1.1.2 Interface Numbering Rules.

NOTE

Only the S5731-S24N4X2Q-A, S5731-S24UN4X2Q, S5731-S8UM16UN2Q, S5731S-


S24N4X2Q-A1, S5731S-S24UN4X2Q-A, S5731S-S8UM16UN2Q-A, S5735S-H, S5736-S,
S5731-H24T4XC, S5731-H24P4XC, S5731-H48T4XC, S5731-H48P4XC, S5731-H24HB4XZ,
S5731-H48HB4XZ, S5731S-H, S6720S-EI, and S6720-EI support interface split and merge.
For the following models, after the S7C02000 or S7Q02000 card is installed, interfaces on
the card support interface split and merge: S5732-H24UM2CC, S5732-H48UM2CC, S5732-
H48XUM2CC, .

Table 2-3 lists connection modes for splitting 40GE interfaces.

Table 2-3 Connection modes for splitting 40GE interfaces


Connection Mode Description Configuration
Reference

1-to-4 high-speed cable The cable provides fixed For details, see "Cables -
(or copper cable) optical modules that can High-Speed Cable" in
be directly installed on Hardware Description of
optical interfaces, a specified model.
lowering costs. The cable
length is fixed and the
maximum length is 5 m.
1-to-4 high-speed cable
models: QSFP-4SFP10G-
CU1M, QSFP-4SFP10G-
CU3M, and
QSFP-4SFP10G-CU5M

1-to-4 active optical The cable provides fixed For details, see "Cables -
cable (AOC) optical modules that can Optical Fiber" in
be directly installed on Hardware Description of
optical interfaces, a specified model.
lowering costs. The cable
length is fixed and the
maximum length is 10
m.
1-to-4 AOC model:
QSFP-4SFP10-AOC10M

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 68


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

Connection Mode Description Configuration


Reference

1-to-4 40GE optical The local and remote For details, see
module + common 10GE interfaces can have a 1- "Pluggable Modules for
optical module + optical to-4 40GE optical Interfaces" in Hardware
fiber module and common Description of a specified
10GE optical modules model.
installed respectively and
be connected using a
dedicated 1-to-4 optical
fiber. The
communication distance
can be adjusted. The
optical fibers do not
provide optical modules
and the costs are high.
1-to-4 40GE optical
module models:
QSFP-40G-iSR4,
QSFP-40G-eSR4,
QSFP-40G-iSM4,
QSFP-40G-eSM4, and
CFP-40G-SR4
1-to-4 optical fiber
model: MPO-4*DLC

Common 40GE optical If the local and remote For details, see
module + optical fiber interfaces are both split "Pluggable Modules for
40GE interfaces, they Interfaces" in Hardware
can have the same 40GE Description of a specified
QSFP+ optical modules model.
installed and be
connected using an
optical fiber.
1-to-4 40GE optical
module models:
QSFP-40G-iSR4,
QSFP-40G-eSR4,
QSFP-40G-iSM4,
QSFP-40G-eSM4, and
CFP-40G-SR4
1-to-4 optical fiber
model: MPO-MPO

Table 2-4 lists connection modes for splitting 100GE interfaces.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 69


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

Table 2-4 Connection modes for splitting 100GE interfaces

Connection Mode Description Configuration


Reference

1-to-4 100GE optical The local and remote For details, see
module + common 25GE interfaces can have a 1- "Pluggable Modules for
optical module + optical to-4 100GE optical Interfaces" in Hardware
fiber module and common Description of a specified
25GE optical modules model.
installed respectively and
be connected using a
dedicated 1-to-4 optical
fiber. The
communication distance
can be adjusted. The
optical fibers do not
provide optical modules
and the costs are high.
1-to-4 100GE optical
modules: QSFP28-100G-
SR4, QSFP-100G-
CWDM4-Lite,
QSFP-100G-SWDM4,
and QSFP-100G-eSR4
1-to-4 optical fiber
model: MPO-4*DLC

NOTICE

If interface split or merge is configured on an interface, the original configuration


on the interface is lost. Therefore, exercise caution when deciding to perform the
interface split or merge operation.
If interface split is not configured, the device does not support split-capable
optical fibers.

Procedure
● Configuring Interface Split
– Splitting a 40GE interface into four 10GE interfaces
i. Run system-view
The system view is displayed.
ii. Run interface 40ge interface-number
The 40GE interface view is displayed.
iii. Run port split split-type 40GE:4*XGE
The 40GE interface is split into four 10GE interfaces.
By default, a 40GE interface is used as an independent interface.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 70


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

– Splitting a 100GE interface into four 25GE interfaces


i. Run system-view
The system view is displayed.
ii. Run interface 100ge interface-number
The 100GE interface view is displayed.
iii. Run port split split-type 100GE:4*25GE
The 100GE interface is split into four 25GE interfaces.
By default, a 100GE interface is used as an independent interface.
NOTE

After configuring interface split, save the configuration and restart the device to make
the configuration take effect.
● Configuring Interface Merge
– Merging four converted 10GE interfaces into a 40GE interface
i. Run system-view
The system view is displayed.
ii. Run interface xgigabitethernet interface-number
The view of a converted 10GE interface is displayed.
iii. Run undo port split
The four converted 10GE interfaces are merged into a 40GE
interface.
To merge converted interfaces, you only need to run this command
in the view of one converted interface.
– Merging four converted 25GE interfaces into a 100GE interface
i. Run system-view
The system view is displayed.
ii. Run interface 25ge interface-number
The view of any converted 25GE interface is displayed.
iii. Run undo port split
The four converted 25GE interfaces are merged into a 100GE
interface.
To merge converted interfaces, you only need to run this command
in the view of one converted interface.
NOTE

After configuring interface merge, save the configuration and restart the device to
make the configuration take effect.

----End

Verifying the Configuration


Run the display port split [ slot slot-id ] command to view interface split
information.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 71


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

2.9.2 Configuring Unidirectional Single-Fiber Communication


Context
During network management and maintenance, the administrator may need to
send traffic from users to a specified server for analysis and processing. If a server
can receive and send packets, there is a possibility that the server forwards user
traffic to other devices, causing a security risk. The unidirectional single-fiber
communication function can address this issue. A single fiber means that two
optical modules are connected by only one fiber, and unidirectional
communication means that packets can be sent in only one direction. With this
function, a switch can only send but cannot receive packets, and an analysis server
can only receive but cannot send packets. The data security on the analysis server
is ensured.
An optical module provides a TX end and an RX end. Generally, two optical
modules are connected by two fibers. The TX and RX ends of one module are
respectively connected to the RX and TX ends of another module. A device
transmits and receives packets through two independent fibers. If the
unidirectional single-fiber communication function is disabled, two devices cannot
communicate with each other through a single fiber. After this function is
configured, the devices can use only one fiber to communicate with each other.
As shown in Figure 2-7, SwitchA is connected to the upper-layer traffic
distribution device through XGE0/0/1. The traffic sent from the traffic distribution
device enters SwitchA through XGE0/0/1. SwitchA transmits packets through
XGE0/0/2, and the analysis server receives packets through the optical interface.
After the unidirectional single-fiber function is configured on XGE0/0/2, you only
need to connect the TX end of the optical module on XGE0/0/2 to the RX end of
the optical module on the analysis server through one fiber. Then SwitchA can
transmit packets to the analysis server through a single fiber, and the analysis
server can receive packets through the single fiber. In addition, the TX end of the
optical module on the analysis server is not connected, so the analysis server
cannot transmit packets, ensuring data security on the server.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 72


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

Figure 2-7 Networking diagram of unidirectional single-fiber communication

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 73


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

NOTE

The first four GE optical ports on the S5731-S48S4X, S5731-S48S4X-A, S5731S-S48S4X-A,


and S5731S-S48S4X-A1 do not support this configuration.
GE, XGE, 25GE, and 40GE interfaces on the S5731-H24HB4XZ, S5731-H48HB4XZ, S5731S-
H24HB4XZ-A, and S5731S-H48HB4XZ-A support this configuration. On other S5731-H, only
XGE, 25GE, and 40GE interfaces support this configuration.

On the S5732-H, S6730-H, and S6730S-H, only 25GE, 40GE, and 100GE interfaces support
this configuration.
On the S6730-S and S6730S-S, only 40GE interfaces support this configuration.
GE optical interfaces on the following models do not support this command: S5720-52X-
LI-24S-AC1, S5720-52X-LI-48S-AC1, S5720-52X-LI-48S-DC1, S5736-S24S4XC, S5736-
S48S4XC.
XGE optical interfaces on the following models support this command after they have GE
optical modules installed: S6735-S, S6720-EI, S6720S-EI.
Optical interfaces of other models support this command.
Note the following:
● A GE optical interface supports this command only when it works at the rate of 1000
Mbit/s.
● An XGE optical interface supports this command only when it has no optical module
installed or has an XGE optical module installed.
● A 25GE optical interface supports this command only when it has no optical module
installed or has a GE, XGE, or 25GE optical module installed.
● A 40GE optical interface supports this command only when it has no optical module
installed or has a 40GE optical module installed.
● A 100GE optical interface supports this command only when it has no optical module
installed or has a 40GE or 100GE optical module installed.
● The QSFP-40G-SR-BD, QSFP-40G-SDLC-PAM, QSFP-40G-LR4-Lite, QSFP-40G-LX4-MM,
and QSFP-40G-eSDLC-PAM optical modules do not support the single-fiber function.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run interface interface-type interface-number
The interface view is displayed.
Step 3 Run single-fiber enable
Unidirectional single-fiber communication is configured.
By default, unidirectional single-fiber communication is disabled.

----End

2.9.3 Configuring the Training Function on a 40GE Interface


Context
With the increase of transmission rate or frequency, attenuation of signal's high-
frequency components becomes increasingly severe. To guarantee transmission
performance of signals, it is necessary to compensate for signals, and commonly

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 74


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

used compensation technologies are pre-emphasis and balancing. The pre-


emphasis technology increases high-frequency components of signals at the
transmit end of transmission lines to compensate attenuation during the
transmission. However, the pre-emphasis technology increases crosstalk while
amplifying high-frequency components. To solve this problem, the balancing
technology is developed. The balancing technology is used at the receive end of
transmission lines to function like a filter for filtering high-frequency crosstalk.
After the training function is enabled on an interface, the transmit end exchanges
frames with the receive end to automatically set the pre-emphasis and balancing
parameters, improving processing efficiency of the two technologies. Note that the
negotiated parameters for the training function are obtained based on the site
environment. If the site environment changes, for example, from high-temperature
environment to low-temperature environment, the parameters may be inaccurate.
Therefore, bit errors may occur when the training function is enabled. The training
function is optional in IEEE802.3 standards, and its implementation on different
types of products from various vendors may differ.
When connecting two devices, enable or disable the training function on both
ends simultaneously. By default, the training function is enabled on an interface. If
the training function is disabled on the remote device or the remote device does
not support the function, run the training disable or undo training enable
command to disable the function.

NOTE

● The training function can only be configured on the 40GE interfaces of the S6720-EI and
S6720S-EI.
● S5735S-H, S5731-H, S5731S-H24T4XC-A, S5731S-H48T4XC-A and S5736-S.
● When the ES5D21Q02Q00 or ES5D21Q04Q01 card is installed on these switches,
the training function can be configured on 40GE interfaces and is enabled by
default.
● When the S7C02000/S7Q02001 card is installed on these switches, the training
function cannot be configured.
● When the S7C02000/S7Q02001 card is connected to the ES5D21Q02Q00 or
ES5D21Q04Q01 card in a version earlier than V200R021C01 using a high-speed
cable, the 40GE interfaces on both ends cannot go Up. This issue does not exist
when the cards are connected using optical modules.
● When the S7C02000/S7Q02001 card is connected to the ES5D21Q02Q00 or
ES5D21Q04Q01 card in V200R021C01 or a later version using a high-speed cable,
the training function must be disabled on the 40GE interfaces of the
ES5D21Q02Q00 or ES5D21Q04Q01 card so that the 40GE interfaces at both ends
can go Up. This issue does not exist when the cards are connected using optical
modules.
● When high-speed cables are used for stack connections, the training function is
enabled by default on the ES5D21Q02Q00 or ES5D21Q04Q01 card in a version
earlier than V200R021C01. In V200R021C01 and later versions, the training
function is disabled by default, and the S7Q02001 card cannot connect to stack
interfaces in versions earlier than V200R021C01. This issue does not exist when
optical modules are used for stack connections.
● When a switch that is installed with the ES5D21Q02Q00 or ES5D21Q04Q01 card is
connected to S5732-H, S6730-S or S6730-H, the training function must be disabled
on 40GE interfaces, so that the 40G interfaces at both ends can go Up.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 75


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run interface interface-type interface-number
The interface view is displayed.
Step 3 Run training disable or undo training enable
The training function is disabled on the interface.
By default, the training function is enabled on an interface.
Precautions
● The training disable and undo training enable commands can be configured
on a 40GE interface only when the interface connects to a high-speed cable
and is not a physical member interface in a stack.
● After a cable is installed on a 40GE interface without the training disable
configuration, the training enable configuration is automatically generated
on the interface.
● If no cable is installed on an interface, only the training enable and undo
training disable commands can be configured on the interface.
● If the display this include-default command is run on an interface to view
the training configuration after a cable is installed on the interface, the
default training enable configuration is always displayed in the command
output and does not change with the training configuration change.
● The training configuration on an interface takes effect only after a cable is
installed on the interface. If the cable is replaced with an optical module, the
training disable and training enable configurations will be automatically
deleted from the interface.
● If a 40GE interface is configured as a physical member interface in a stack
system, the training disable and training enable configurations will be
automatically deleted from the interface.
● If a 40GE interface has been configured as a physical member interface in a
stack system, the training function is disabled on the interface by default and
cannot be enabled.
● If the training disable or undo training enable command is configured on a
40GE interface of the S6720S-26Q-EI-24S-AC or S6720S-26Q-EI-24S-DC after
a cable is installed on the interface, and the interface is connected to a
remote interface on which the training function is disabled or a remote
interface that does not support the training function, the two interfaces may
not go Up or go Up after a delay. Therefore, configure the training disable or
undo training enable command only when the training function is disabled
on the remote interface or the remote interface does not support the training
function. In other scenarios, it is recommended that you do not disable the
training function.
● If the training configuration does not exist on an interface of a switch running
V200R008C00 or an earlier version, the training disable configuration is
automatically generated on the interface after the system software is
upgraded to a version later than V200R009C00. If the training configuration

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 76


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

exists on the interface, the configuration remains unchanged after the system
software is upgraded to a version later than V200R009C00.

----End

2.9.4 Configuring the Training Function on a 100GE Interface


Context
With the increase of transmission rate or frequency, attenuation of signal's high-
frequency components becomes increasingly severe. To guarantee transmission
performance of signals, it is necessary to compensate for signals, and commonly
used compensation technologies are pre-emphasis and balancing. The pre-
emphasis technology increases high-frequency components of signals at the
transmit end of transmission lines to compensate attenuation during the
transmission. However, the pre-emphasis technology increases crosstalk while
amplifying high-frequency components. To solve this problem, the balancing
technology is developed. The balancing technology is used at the receive end of
transmission lines to function like a filter for filtering high-frequency crosstalk.
After the training function is enabled on a 100GE interface, the transmit end
exchanges frames with the receive end to automatically set the pre-emphasis and
balancing parameters, improving processing efficiency of the two technologies.
Note that the negotiated parameters for the training function are obtained based
on the site environment. If the site environment changes, for example, from high-
temperature environment to low-temperature environment, the parameters may
be inaccurate. Therefore, bit errors may occur when the training function is
enabled. The training function is optional in IEEE802.3 standards, and its
implementation on different types of products from various vendors may differ.
When connecting two devices, enable or disable the training function on both
ends simultaneously. By default, the training function is enabled on a 100GE
interface. If the training function is disabled on the remote device or the remote
device does not support the function, run the training disable or undo training
enable command to disable the function.

NOTE

Only the S6735-S supports this command.


The training disable and undo training enable commands can be configured on a 100GE
interface only when the interface connects to a 40GE or 100GE cable.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run interface interface-type interface-number
The interface view is displayed.
Step 3 Run training disable or undo training enable
The training function is disabled on the interface.
By default, the training function is enabled on an interface.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 77


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

Precautions

● After a 40GE or 100GE cable is installed on a 100GE interface without the


training disable configuration, the training enable configuration is
automatically generated on the interface.
● If no cable is installed on an interface, only the training enable and undo
training disable commands can be configured on the interface.
● If the display this include-default command is run on an interface to view
the training configuration after a cable is installed on the interface, the
default training enable configuration is always displayed in the command
output and does not change with the training configuration change.
● The training configuration on an interface takes effect only after a cable is
installed on the interface. If the cable is replaced with an optical module, the
training disable and training enable configurations will be automatically
deleted from the interface.

----End

2.9.5 Configuring an Interface to Transit to Error-Down State


When the Optical Power Is Low

Context
Low optical power on an Ethernet optical interface may cause problems such as
packet loss. Because the interface is still in Up state, traffic is still transmitted on
the interface even if a backup link is configured. To avoid impact on services, you
can configure the interface to change to the Error-down state when the optical
power is low. When the optical power on the interface falls below the lower alarm
threshold, the system disables the interface and records the interface status as
ERROR DOWN(transceiver-power-low) state (indicating that the interface is
Down because of low optical power). Services are then switched to the backup
link immediately.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run interface interface-type interface-number

The interface view is displayed.

Step 3 Run transceiver power low trigger error-down

The interface is configured to transit to the Error-down state when the optical
power is low.

By default, an interface does not transit to the Error-down state when the optical
power is low.

----End

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 78


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

Verifying the Configuration


Run the display error-down recovery [ interface interface-type interface-
number ] command in any view to check information about the interface in Error-
down state.

Follow-up Procedure
An interface in Error-down state can be recovered using either of the following
methods:
● Manual recovery: If a few interfaces need to be recovered forcibly, run the
shutdown and undo shutdown commands in the interface view.
Alternatively, run the restart command in the interface view to restart the
interfaces.
● Automatic recovery: If a large number of interfaces need to be recovered,
manual recovery is time consuming and some interfaces may be omitted. You
can run the error-down auto-recovery cause transceiver-power-low
interval interval-value command in the system view to enable automatic
interface recovery and set the recovery delay time. An interface in Error-down
state automatically recovers when the specified delay time expires.

2.10 Configuring Electrical Interface Attributes

2.10.1 Configuring the MDI Type of an Electrical Interface

Context
Two types of twisted pair cables can be used to connect Ethernet devices:
● Straight-through cable: connects different types of devices, such as a switch
and a PC, or a switch and a router.
● Crossover cable: connects the same type of devices, such as two switches, two
routers, or two PCs.
Generally, if two interfaces are connected using a twisted pair cable, the transmit
and receive pins of one interface are respectively connected to the receive and
transmit pins of the other interface so that the link can be Up. Straight-through
and crossover cables have different pin assignments. Ethernet interfaces must
support negotiation and crossover of receive and transmit pins to adapt to the
cables connected to them. The device supports three medium dependent interface
(MDI) types: auto, normal, and across.
Generally, when two interfaces at both ends of a link use the auto type, they can
communicate regardless of whether a straight-through or crossover cable is used.
You need to manually set the MDI type to normal or across only when the device
cannot identify the network cable type. When configuring the MDI type on an
interface, pay attention to the following points:
● When a straight-through cable is used, configure different MDI types for the
local and remote interfaces. For example, configure the across type for one
interface and normal type for the other interface.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 79


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

● When a crossover cable is used, configure the same MDI type for the local
and remote interfaces. For example, configure the across or normal type for
both interfaces or auto type for one interface.

NOTE

Electrical interfaces support the MDI type configuration.


The XGE electrical interfaces on the ES5D21X08T00 card of the S5731-H, and S5731S-H can
only use the auto MDI type.
The MDI type can be configured on an optical interface that has a GE copper module
installed. Before installing a GE copper module on a 25GE optical interface, you need to run
the port mode ge command to configure the interface to work at the rate of 1 Gbit/s.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run interface interface-type interface-number
The Ethernet interface view is displayed.
Step 3 Run mdi { across | auto | normal }
The MDI type is set for the Ethernet interface.
By default, an Ethernet interface uses the auto type and automatically identifies
the network cable type.

----End

Verifying the Configuration


Run the display interface [ interface-type [ interface-number ] ] command in any
view or the display this interface command in the interface view to check the
current interface status. Check the Mdi field in the command output.

2.10.2 Configuring the Clock Negotiation Mode for an XGE


Electrical Interface

Context
On a modern communications network, most telecommunications services require
that the frequency offset or time difference between devices be in an acceptable
range. When an XGE electrical interface on an ES5D21X08T00 card of a Huawei
device connects to a non-Huawei device, the clock negotiation mode of the XGE
electrical interface on the local device is auto-negotiation by default. The two
devices determine the master/slave relationship based on the negotiation result
and perform network clock synchronization. When the local device negotiates to
become the master device, the interfaces on both ends may fail to go Up or their
rate may decrease due to the impact of the non-Huawei device. In this case, run
the port clock-mode slave command to set the clock negotiation mode of the
XGE electrical interface of the local device to the slave mode. This configuration
ensures clock synchronization between the two devices.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 80


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

NOTE

Only the XGE electrical interfaces of the ES5D21X08T00 cards support this function.

Procedure
1. Run system-view
The system view is displayed.
2. Run interface XGigabitEthernet interface-number
The XGE interface view is displayed.
3. Run port clock-mode slave
The clock negotiation mode of the XGE electrical interface is set to slave.
By default, the clock negotiation mode of an XGE electrical interface is the
auto-negotiation mode.

2.11 Maintaining Ethernet Interfaces

2.11.1 Viewing Brief Information About Ethernet Interfaces

Context
During interface troubleshooting, you can view brief information about Ethernet
interfaces, including the physical status, auto-negotiation mode, duplex mode,
rate, and average inbound and outbound bandwidth usage of interfaces within the
latest period of time. The information helps you locate and rectify interface faults.
NOTE

To prevent existing traffic statistics from affecting fault cause analysis, you can run the reset
counters interface [ interface-type [ interface-number ] ] command to clear traffic statistics on
an interface, and then view brief information about Ethernet interfaces.

Procedure
● Run the display interface ethernet brief [ main ] command to view brief
information about Ethernet interfaces.

----End

2.11.2 Clearing Interface Statistics

Context
To monitor the status of an Ethernet interface or locate faults on the interface,
collect traffic statistics on the interface. Before collecting traffic statistics on an
Ethernet interface within a period, clear the existing traffic statistics on this
interface.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 81


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

NOTICE

Traffic statistics cannot be restored after being cleared. Confirm your operation
before clearing them.

Procedure
● Run the reset counters interface [ interface-type [ interface-number ] ]
command to clear statistics on a specified interface.
● Run the reset counters if-mib interface [ interface-type [ interface-
number ] ] command to clear interface traffic statistics displayed on the NMS.
● Run the reset statistics-peak interface interface-type interface-number
command to clear peak rate statistics on an interface.
● Run the reset virtual-cable-test { interface-type interface-number | all }
command to clear virtual cable test results on an interface.
----End

2.11.3 One-Click Configuration Deletion on an Interface


# Run the clear configuration interface command in the system view to delete
configurations on GE0/0/1.
<HUAWEI> system-view
[HUAWEI] clear configuration interface gigabitethernet 0/0/1
Warning: All configurations of the interface will be cleared, and its state will be shutdown. Continue? [Y/
N] :y
Info: Total 5 command(s) executed, 5 successful, 0 failed.

# Run the clear configuration this command in the interface view to delete
configurations on GE0/0/1.
<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] clear configuration this
Warning: All configurations of the interface will be cleared, and its state will be shutdown. Continue? [Y/
N] :y
Info: Total 3 command(s) executed, 3 successful, 0 failed.

NOTE

After the configurations are deleted, the interface changes to shutdown state.

2.11.4 Configuring Virtual Cable Test


Context
Virtual cable test (VCT) technology uses time domain reflectometry (TDR) to
detect the cable status. When pulse signals are transmitted in a cable, some
energy of the signals is reflected at the end or a failure point on the cable. This
phenomenon is called TDR. The VCT algorithm measures the time spent on
transmitting pulse signals over a cable, reaching the failure point, and returning
the pulse signals. The measured time is converted into the distance.
As shown in Figure 2-8, GE0/0/1 of SwitchA is connected to GE0/0/2 of SwitchB
using a network cable. A failure point exists on the network cable. After VCT is

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 82


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

configured on GE0/0/1, the system generates pulse signals. After the pulse signals
reach the failure point, some energy is reflected to GE0/0/1. In this example, the
distance between SwitchA and the failure point is L, the period from sending pulse
signals to receiving reflected pulse signals is T, and the transmission rate of pulse
signals in the cable is V. The following formula is used to calculate the distance
between the failure point and GE0/0/1:

L = (V x T)/2

Figure 2-8 VCT

VCT detects the network cable fault type and identifies the failure point,
facilitating fault location on network cables.

NOTE

The MEth management interfaces of the following devices support this function: S5731-S,
S5731S-S, S5731-H, S5731S-H, S5732-H, S6730-S, S6730S-S, S6730-H, S6730S-H, S6735-S
Service interfaces on the following devices do not support this function:
● MultiGE interfaces on the S5720-28X-PWH-LI-AC and S5736-S24UM4XC
● XGE electrical interfaces on the ES5D21X08T00 card
For the S5731-S24N4X2Q-A, S5731-S24UN4X2Q, S5731-S8UM16UN2Q, S5731S-
S24N4X2Q-A1, S5731S-S24UN4X2Q-A, S5731S-S8UM16UN2Q-A, S5732-H24UM2CC (part
number: 02353SJY-020, 02353SJY-021, 02353SJY-024), and S5732-H48UM2CC (part
number: 02353SJT-020, 02353SJT-021, 02353SJT-023, 02353SJT-024), if the MultiGE
interface is configured to work in auto-negotiation mode, and the peer interface is set to
100 Mbit/s, the local check result obtained using the virtual-cable-test command is
inaccurate.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run interface interface-type interface-number

The interface view is displayed.

Step 3 Run virtual-cable-test

VCT is configured.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 83


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

NOTE

● The test result is only for reference and may be inaccurate for cables of some vendors.
● If the detection result is Unknown, you are advised to use the cable analyzer to perform
the test.
● The test result is related to the cable signal attenuation. When the cable length is
shorter than 3 m, the cable signal attenuation mostly is resulted from the connector, not
the cable. The test result is therefore inaccurate.
● Running the virtual-cable-test command may affect services on the interface in a short
period of time, and the interface in Up state may alternate between Up and Down.
● Combo electrical interfaces support cable tests, but cable tests are not recommended on
combo electrical interfaces because services will be interrupted.
● This command can be used on an XGE optical interface or GE optical interface when the
interface has a GE copper module installed.
● After a 25GE optical interface is configured to work at the rate of 1 Gbit/s using the
port mode ge command and has a GE copper module installed, the virtual-cable-test
command can be configured on the interface.
● When a GE electrical interface on the S5720-LI, S2730S-S, S5735-L-I, S5735-L1, S300,
S5735-L, S5735S-L1, S5735S-L, S5735S-L-M, S5720S-LI, S5735S-H, S5736-S, S500,
S5735-S, S5735S-S, S5735-S-I, and S5720I-SI works at a rate of 1000 Mbit/s or 100
Mbit/s and the interface is up, the detection result is inaccurate.
● On the S6720S-EI, S5732-H, S6730-H, S6730S-H, S6730-S, S6730S-S, S6735-S, and
S6720-EI, when a GE electrical interface works at a rate of 100 Mbit/s, the detection
result is inaccurate.
● On the S5731-H, S5731S-H, S5731-S, and S5731S-S, when a GE electrical interface
works at a rate of 10 Mbit/s, 100 Mbit/s, or 1000 Mbit/s and the interface is up, the
detection result is inaccurate.
● The test result is inaccurate when the interface is in the Up state or the remote interface
is shut down.
● An FE electrical port uses only two pairs of wire pairs. The test result of the two pairs of
wire pairs that are not used during the VCT test is inaccurate.
● When a GE electrical port works at a rate of 10 Mbit/s or 100 Mbit/s, only two pairs of
cables are used to detect the VCT status. The other two pairs of cables do not detect or
return the default result.
● The virtual cable test (VCT) cannot be performed on multiple interfaces of the device at
the same time.

----End

Verifying the Configuration


Run the display virtual-cable-test interface-type interface-number command in
any view to check the latest VCT result on a specified Ethernet interface.

2.11.5 Configuring the Network Cable Quality Check

Context
The network cable quality check allows you to locate network cable quality
problems and take corresponding measures promptly, avoiding packet loss and its
impact on services.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 84


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

NOTE

This function is supported only on the XGE electrical interfaces on the ES5D21X08T00 card
of the S5731-H, and S5731S-H, GE electrical interfaces on the S5731-H, S2730S-S, S5735-L-
I, S5735-L1,S300, S5735-L, S5735S-L1, S5735S-L, S5735S-L-M, S5735-S (except the S5735-
S48S4X), S500, S5735S-S, S5735-S-I, S5720I-SI, and and MultiGE electrical interfaces on the
S5720-28X-PWH-LI-AC, S5720-28X-PWH-LI-ACF, S5732-H24UM2CC, S5732-H48UM2CC,
S5732-H48XUM2CC, S5736-S24UM4XC.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run interface interface-type interface-number
The interface view is displayed.
Step 3 Run cable-snr-test
The network cable quality check is configured.

NOTE

● This command checks real-time quality of the network cable on an interface, and the
network cable quality changes with the external environment.
● A MultiGE electrical interface supports accurate network cable quality check only when
it works at the rate of 2.5 Gbit/s or higher.
● An XGE electrical interface supports accurate network cable quality check only when it
works at the rate of 10 Gbit/s.
● A GE electrical interface supports accurate network cable quality check only when it
works at the rate of 1 Gbit/s.
● An interface does not support the network cable quality check when it is Down or in
loopback detection mode.
● After the interface goes Up, wait for several minutes before running this command.
Otherwise, the command fails to be delivered.

----End

2.11.6 Configuring Internal Loopback Detection

Context
When testing some special functions, for example, locating an Ethernet fault, you
need to enable loopback detection on Ethernet interfaces to check whether the
interfaces are working properly. After loopback detection is enabled on an
Ethernet interface, the interface is in Up state if it works properly, and is in Down
state if it fails.
In internal loopback detection, a packet from an interface is sent back to the
interface through the internal chip. Internal loopback detection checks whether
the connection between the interface and internal chip is normal. In external
loopback detection, a packet from an interface is sent back to the interface
through a loopback connector. External loopback detection checks whether the
interface properly sends and receives packets. Currently, the device supports only

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 85


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

internal loopback detection. As shown in Figure 2-9, after internal loopback


detection is enabled on GE0/0/1, the chip generates some test packets, and these
test packets are sent back to the chip through GE0/0/1. The internal loopback
detection is complete.

Figure 2-9 Internal loopback detection

NOTICE

After internal loopback detection is enabled on an interface, other functions may


be affected. After the test is complete, run the undo loopback command to
disable loopback detection. The original configuration on the interface is then
restored.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run interface interface-type interface-number
The interface view is displayed.
Step 3 Run loopback internal
Internal loopback detection is configured on the Ethernet interface.
By default, internal loopback detection is disabled on an Ethernet interface.

----End

Verifying the Configuration


Run the display interface [ interface-type [ interface-number ] ] command in any
view or the display this interface command in the interface view to check the
current interface status. Check the Loopback field in the command output.

NOTE

After loopback detection is enabled on an interface, the Speed field in the display this
interface command output indicates the configured interface rate or the rate of the
installed optical module, copper module, or network cable, and the Bandwidth field in the
display interface ethernet brief command output indicates the actual interface rate.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 86


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

2.11.7 Configuring the Log Function for Interface Up/Down


Changes
Context
You can disable the log function for interface up/down changes in the following
situation: A large number of interfaces repeatedly alternate between up and down
states and users do not need to pay attention to the up/down changes of these
interfaces, for example, interfaces alternate between up and down states when
APs connected to the network go online and offline.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run interface interface-type interface-number
The interface view is displayed.
Step 3 Run set log updown disable
The log function for interface up/down changes is disabled.
By default, the log function for interface up/down changes is enabled.

----End

2.12 Configuration Examples for Ethernet Interfaces

2.12.1 Example for Configuring the Working Mode of a


Combo Interface
Networking Requirements
As shown in Figure 2-10, PC1, PC2, and PC3 connect to GE0/0/1, GE0/0/2, and
GE0/0/3 of the switch respectively. Due to limitations of network adapters on the
PCs, the maximum transmission rate is 100 Mbit/s. The Switch connects to the
Internet through the combo interface GE0/0/4. You can configure the working
mode of the combo interface based on the remote interface type. In this example,
the remote interface at the Internet side is an electrical interface.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 87


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

Figure 2-10 Networking diagram for configuring the working mode of a combo
interface

Configuration Roadmap
The configuration roadmap is as follows:
● Configure the combo interface to work as an electrical interface. This
configuration ensures that the combo interface's working mode does not
change when the transmission medium changes, for example, a GE copper
module is installed.

Procedure
Step 1 Configure the combo interface GE0/0/4 to work as an electrical interface.
<HUAWEI> system-view
[HUAWEI] sysname Switch
[Switch] interface gigabitethernet 0/0/4
[Switch-GigabitEthernet0/0/4] combo-port copper
[Switch-GigabitEthernet0/0/4] quit

Step 2 Verify the configuration.


Run the display interface GigabitEthernet 0/0/4 command in any view to check
the working mode of the combo interface.
[Switch] display interface gigabitethernet 0/0/4
...
Port Mode: FORCE COPPER
Speed : 1000, Loopback: NONE
Duplex: FULL, Negotiation: ENABLE
Mdi : AUTO, Flow-control: DISABLE
...

The command output shows that the combo interface works as an electrical
interface.

----End

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 88


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

Configuration File
Configuration file of the Switch
#
sysname Switch
#
interface GigabitEthernet0/0/4
combo-port copper
#
return

2.12.2 Example for Configuring the Rate and Duplex Mode in


Non-Auto-Negotiation Mode
Networking Requirements
As shown in Figure 2-11, Server1, Server2, and Server3 form a server cluster and
connect to GE0/0/1, GE0/0/2, and GE0/0/3 of the switch respectively. The switch
connects to the Internet through GE0/0/4.
Due to limitations of network adapters on the servers, GE0/0/1, GE0/0/2, and
GE0/0/3 interfaces can only work in half-duplex mode after negotiating with
connected server interfaces. As a result, packet loss occurs when the service traffic
volume is high. In addition, the rate is negotiated to 1000 Mbit/s for GE0/0/1,
GE0/0/2, and GE0/0/3. When the three servers concurrently send data at the rate
of 1000 Mbit/s, the outbound interface GE0/0/4 will be congested. Users require
that packet loss and congestion do not occur.

Figure 2-11 Networking diagram for configuring the rate and duplex mode in
non-auto-negotiation mode

Configuration Roadmap
The configuration roadmap is as follows:

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 89


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

● Configure the switch interfaces to work in non-auto-negotiation mode to


prevent the interface rate from being affected by the network adapter rate on
the servers.
● Set the rate to 100 Mbit/s for the interfaces working in non-auto-negotiation
mode to avoid congestion on the outbound interface.
● Set the duplex mode to full-duplex for the interfaces working in non-auto-
negotiation mode to avoid packet loss.

Procedure
Step 1 Create a port group and add GE0/0/1, GE0/0/2, and GE0/0/3 to the port group.
<HUAWEI> system-view
[HUAWEI] sysname Switch
[Switch] port-group portgroup1
[Switch-port-group-portgroup1] group-member gigabitethernet 0/0/1 to gigabitethernet 0/0/3

Step 2 Configure GE0/0/1, GE0/0/2, and GE0/0/3 to work in non-auto-negotiation mode,


and set the duplex mode to full-duplex and rate to 100 Mbit/s for these interfaces
in a batch.
[Switch-port-group-portgroup1] undo negotiation auto
[Switch-GigabitEthernet0/0/1] undo negotiation auto
[Switch-GigabitEthernet0/0/2] undo negotiation auto
[Switch-GigabitEthernet0/0/3] undo negotiation auto
[Switch-port-group-portgroup1] speed 100
[Switch-GigabitEthernet0/0/1] speed 100
[Switch-GigabitEthernet0/0/2] speed 100
[Switch-GigabitEthernet0/0/3] speed 100
[Switch-port-group-portgroup1] duplex full
[Switch-GigabitEthernet0/0/1] duplex full
[Switch-GigabitEthernet0/0/2] duplex full
[Switch-GigabitEthernet0/0/3] duplex full
[Switch-port-group-portgroup1] quit

Step 3 Verify the configuration.


Run the display interface GigabitEthernet 0/0/1 command in any view to check
the interface rate and duplex mode.
[Switch] display interface gigabitethernet 0/0/1
...
Port Mode: COMMON COPPER
Speed : 100, Loopback: NONE
Duplex: FULL, Negotiation: DISABLE
Mdi : AUTO, Flow-control: DISABLE
...

The command output shows that the interface works in non-negotiation mode,
the rate is 100 Mbit/s, and the duplex mode is full-duplex.
Similarly, run the display interface GigabitEthernet 0/0/2 and display interface
GigabitEthernet 0/0/3 commands on GE0/0/2 and GE0/0/3 respectively to check
interface working information.

----End

Configuration File
Configuration file of the Switch
#
sysname Switch

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 90


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

#
interface GigabitEthernet0/0/1
undo negotiation auto
speed 100
#
interface GigabitEthernet0/0/2
undo negotiation auto
speed 100
#
interface GigabitEthernet0/0/3
undo negotiation auto
speed 100
#
port-group portgroup1
group-member GigabitEthernet0/0/1
group-member GigabitEthernet0/0/2
group-member GigabitEthernet0/0/3
#
return

2.12.3 Example for Switching an Interface to Layer 3 Mode

Networking Requirements
In Figure 2-12, PC1, PC2, and PC3 are on three network segments, and SwitchC,
SwitchD, and SwitchE are access switches for the three network segments,
respectively. To enable SwitchA and SwitchB to communicate with each other and
provide high link bandwidth, Layer 3 Eth-Trunk interfaces need to be used
between SwitchA and SwitchB. In addition, three physical Ethernet interfaces on
SwitchB need to be used as gateway interfaces for the three network segments.

NOTE

Only interfaces on the following models support switching between Layer 2 and Layer 3
modes: S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6735-S, S6720-EI, S6720S-EI,
S6730-H, S6730S-H, S6730-S and S6730S-S.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 91


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

Figure 2-12 Configuring the rate and duplex mode in non-auto-negotiation mode

Configuration Roadmap
The configuration roadmap is as follows:
● Switch interfaces to Layer 3 mode.
● Configure the IP addresses of Layer 3 Ethernet interfaces as gateway
addresses.

Procedure
Step 1 Switch the interface working mode to Layer 3.
# Switch a single interface to Layer 3 mode.
<HUAWEI> system-view
[HUAWEI] sysname SwitchB
[SwitchB] interface gigabitethernet 0/0/1
[SwitchB-GigabitEthernet0/0/1] undo portswitch
[SwitchB-GigabitEthernet0/0/1] quit

# Switch Ethernet interfaces to Layer 3 mode in a batch.


[SwitchB] undo portswitch batch gigabitethernet 0/0/2 to 0/0/3

# Configure an Eth-Trunk interface and switch it to Layer 3 mode.


[SwitchB] interface eth-trunk 1
[SwitchB-Eth-Trunk1] quit
[SwitchB] interface gigabitethernet 0/0/4
[SwitchB-GigabitEthernet0/0/4] eth-trunk 1
[SwitchB-GigabitEthernet0/0/4] quit
[SwitchB] interface gigabitethernet 0/0/5
[SwitchB-GigabitEthernet0/0/5] eth-trunk 1
[SwitchB-GigabitEthernet0/0/5] quit
[SwitchB] interface eth-trunk 1

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 92


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

[SwitchB-Eth-Trunk1] undo portswitch


[SwitchB-Eth-Trunk1] quit

Step 2 Configure the IP addresses of Layer 3 Ethernet interfaces as gateway addresses.

# Configure the IP address of GE0/0/1 as a gateway address. The configurations of


GE0/0/2, GE0/0/3, and GE0/0/4 are similar to the configuration of GE0/0/1. For
details, see the configuration files.
[SwitchB] interface gigabitethernet 0/0/1
[SwitchB-GigabitEthernet0/0/1] ip address 10.10.1.1 24
[SwitchB-GigabitEthernet0/0/1] quit

Step 3 Verify the configuration.

# Run the display interface GigabitEthernet 0/0/1 command in any view to


check the current working mode of the specified interface.
[SwitchB] display interface GigabitEthernet 0/0/1
...
Description:
Route Port,The Maximum Frame Length is 9216
Internet protocol processing : disabled
...

The command output shows that the interface works in Layer 3 mode.

----End

Configuration Files
SwitchB configuration file
#
sysname SwitchB
#
interface Eth-Trunk1
undo portswitch
ip address 10.10.4.1 255.255.255.0
#
interface GigabitEthernet0/0/1
undo portswitch
ip address 10.10.1.1 255.255.255.0
#
interface GigabitEthernet0/0/2
undo portswitch
ip address 10.10.2.1 255.255.255.0
#
interface GigabitEthernet0/0/3
undo portswitch
ip address 10.10.3.1 255.255.255.0
#
interface GigabitEthernet0/0/4
eth-trunk 1
#
interface GigabitEthernet0/0/5
eth-trunk 1
#
return

2.13 Troubleshooting Ethernet Interfaces

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 93


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

2.13.1 An Ethernet Interface Is Physically Down


Fault Description
An Ethernet interface is physically Down.

Troubleshooting Procedure
1. Check whether the devices are powered on, and the interface modules and
the link between the interfaces work properly.
If the two devices are connected by a twisted pair, check the following items.
Item Expected Result Follow-up Procedure

Twisted pair The tester shows that the If the twisted pair is faulty,
working status twisted pair works properly. replace it.

Twisted pair The twisted pair length is If the twisted pair length
length less than 100 m. exceeds 100 m, perform
NOTE either of the following
The 10/100/1000M electrical operations:
interfaces use RJ45
● Shorten the distance
connectors and twisted pairs
higher than Category 5. The between the two
maximum transmission devices.
distance of such cables is 100 ● If the distance between
m.
the two devices cannot
be shortened, deploy a
repeater, hub, or switch
between the devices.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 94


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

Item Expected Result Follow-up Procedure

Twisted pair Twisted pair cables are If the twisted pair type is
type classified into straight- incorrect, replace the
through cables and twisted pair.
crossover cables.
A straight-through cable
connects Ethernet
interfaces between the
following devices:
● A router and a hub
● A router and an
Ethernet switch
● A computer and an
Ethernet switch
● A computer and a hub
A crossover cable connects
Ethernet interfaces
between the following
devices:
● Two routers
● A router and a
computer
● Two hubs
● A hub and a switch
● Two switches
● Two computers

If the two devices are connected by optical fibers, check the following items.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 95


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

Item Expected Result Follow-up Procedure

Types of optical The optical fiber type If the optical fiber type
modules and matches the optical does not match the optical
optical fibers module type. For details module type, replace the
about mappings between optical module or optical
optical modules and fiber.
optical fibers, see
"Pluggable Modules for
Interfaces - Important
Notes About Using Optical
Modules Certified for
Huawei Switches" in
Hardware Description of a
specified model.
Determine whether the
optical fiber type matches
the optical module type
according to the following
information:
● A multimode optical
fiber can be used
together with a
multimode optical
module.
● A single-mode optical
fiber can only be used
with a single-mode
optical module.
Generally, a single-mode
optical fiber is yellow,
and a multimode optical
fiber is orange.
● Two connected optical
modules must have the
same wavelength.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 96


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

Item Expected Result Follow-up Procedure

Optical fiber The optical fiber length If the optical fiber length
length and must be shorter than the exceeds the maximum
maximum maximum transmission transmission distance of
transmission distance of an optical the optical modules,
distance of module. For the maximum shorten the distance
optical modules transmission distance between the devices or use
supported by different optical modules with a
optical modules, see longer transmission
"Pluggable Modules for distance.
Interfaces - Important
Notes About Using Optical
Modules Certified for
Huawei Switches" in
Hardware Description of a
specified model.

Optical signal The tester shows that the If the attenuation is high,
attenuation optical signal attenuation replace the optical fibers. If
is in the allowed range. For the fault persists, shorten
the attenuation range, see the distance between the
"Pluggable Modules for devices and use shorter
Interfaces - Important optical fibers.
Notes About Using Optical
Modules Certified for
Huawei Switches" in
Hardware Description of a
specified model.

Optical fiber The tester shows that If optical signals cannot be


working status optical signals are sent and sent or received, replace
received properly. the optical fibers. If the
During a loopback test, an fault persists, replace the
interface is Up when both optical modules.
ends of an optical fiber are
connected to the same
optical module installed on
the interface.

If the fault persists, go to step 2.


2. Check whether the local and remote interfaces have been manually shut
down.
Run the display interface command and check the current state field in the
command output. If the current state field is Administratively down, the
interfaces are shut down. Run the undo shutdown command on the
interfaces.
If the interface is still Down, go to step 3.
3. Check whether the two interfaces have the same duplex mode, rate, and
auto-negotiation mode.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 97


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

Run the display interface command on the two interfaces to check their
rates, duplex modes, and auto-negotiation modes.

Item Description Follow-up Procedure

Negotiation Auto-negotiation mode of The two interfaces must


the interface: work in the same auto-
● ENABLE: indicates that negotiation mode. Run the
the interface works in negotiation auto
auto-negotiation mode. command in the interface
view to configure the
● DISABLE: indicates that interfaces to work in auto-
the interface works in negotiation mode. If the
non-auto-negotiation fault persists, configure the
mode. interfaces to work in non-
auto-negotiation mode and
use the same rate and
duplex mode.

Speed Interface rate. If the rates of the


interfaces are different, run
the speed command in the
interface view to set the
same rate on the two
interfaces.

Duplex Duplex mode of the If the duplex modes of the


interface. interfaces are different, run
the duplex command in
the interface view to set
the same duplex mode on
the two interfaces.

Mdi MDI type of the interface: The two interfaces must


● across: indicates that support the same MDI
the interface can use a type. By default, an
crossover cable. interface uses the auto
type. If the interfaces do
● auto: indicates that the not use this type, run the
interface automatically mdi command to set the
identifies the network MDI type of the interfaces
cable type. That is, the to auto.
interface can use a
straight-through cable
or a crossover cable.
● normal: indicates that
the interface can use a
straight-through cable.

If the fault persists, go to step 4.


4. Check whether the local or remote device has a hardware fault.
Connect the devices using other interfaces. If the fault persists, go to step 5.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 98


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

5. Collect the following information and contact technical support personnel:


– Results of the preceding troubleshooting procedure
– Configuration file, logs, and alarms of the device

2.13.2 An Ethernet Interface Frequently Alternates Between


Up and Down States
Fault Description
An Ethernet interface frequently alternates between Up and Down states.

Troubleshooting Procedure
1. Check whether the interface modules and the link between the interfaces
work properly.
If the two devices are connected by a twisted pair, check the following items.
Item Expected Result Follow-up Procedure

Twisted pair The tester shows that the If the twisted pair is faulty,
working status twisted pair works properly. replace it.

Twisted pair The twisted pair length is If the twisted pair length
length less than 100 m. exceeds 100 m, perform
NOTE either of the following
The 10/100/1000M electrical operations:
interfaces use RJ45
● Shorten the distance
connectors and twisted pairs
higher than Category 5. The between the two
maximum transmission devices.
distance of such cables is 100 ● If the distance between
m.
the two devices cannot
be shortened, deploy a
repeater, hub, or switch
between the devices.

If the two devices are connected by optical fibers, check the following items.
Item Expected Result Follow-up Procedure

Optical fiber The tester shows that If optical signals cannot be


working status optical signals are sent and sent or received, replace
received properly. the optical fibers. If the
In a loopback test, the two fault persists, replace the
interfaces are Up. optical modules.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 99


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

Item Expected Result Follow-up Procedure

Types of optical The optical fiber type If the optical fiber type
modules and matches the optical does not match the optical
optical fibers module type. For details module type, replace the
about mappings between optical module or optical
optical modules and fiber.
optical fibers, see
"Pluggable Modules for
Interfaces - Important
Notes About Using Optical
Modules Certified for
Huawei Switches" in the
Hardware Description of a
specified model.

Optical fiber The optical fiber length If the optical fiber length
length and must be shorter than the exceeds the maximum
maximum maximum transmission transmission distance of
transmission distance of an optical the optical modules,
distance of module. For the maximum shorten the distance
optical modules transmission distance between the devices or use
supported by different optical modules with a
optical modules, see longer transmission
"Pluggable Modules for distance.
Interfaces - Important
Notes About Using Optical
Modules Certified for
Huawei Switches" in the
Hardware Description of a
specified model.

Optical signal The tester shows that the If the attenuation is high,
attenuation optical signal attenuation replace the optical fibers. If
is in the allowed range. For the fault persists, shorten
the attenuation range, see the distance between the
"Pluggable Modules for devices and use shorter
Interfaces - Important optical fibers.
Notes About Using Optical
Modules Certified for
Huawei Switches" in the
Hardware Description of a
specified model.

If the fault persists, go to step 2.


2. Check whether the two interfaces have the same duplex mode, rate, and
auto-negotiation mode.
Run the display interface command on the two interfaces to check their
rates, duplex modes, and auto-negotiation modes.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 100


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

Item Description Follow-up Procedure

Negotiation Auto-negotiation mode of The two interfaces must


the interface: work in the same auto-
● ENABLE: indicates that negotiation mode. Run the
the interface works in negotiation auto
auto-negotiation mode. command in the interface
view to configure the
● DISABLE: indicates that interfaces to work in auto-
the interface works in negotiation mode. If the
non-auto-negotiation fault persists, configure the
mode. interfaces to work in non-
auto-negotiation mode and
use the same rate and
duplex mode.

Speed Current rate of the If the rates of the


interface. interfaces are different, run
the speed command in the
interface view to set the
same rate on the two
interfaces.

Duplex Duplex mode of the If the duplex modes of the


interface. interfaces are different, run
the duplex command in
the interface view to set
the same duplex mode on
the two interfaces.

If the fault persists, go to step 3.


3. Check the interface Up/Down log information to rectify the fault.
Up/Down Log Possible Cause Follow-up Procedure
Information

Multiple Up/ The remote device is No action is required. Wait


Down logs are restarting, so the local until the remote device
generated on interface instantly finishes restarting.
the interface alternates between Up and
within a short Down states for multiple
period (60s). times.
The interface
instantly
alternate
between Up
and Down
states.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 101


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

Up/Down Log Possible Cause Follow-up Procedure


Information

A group of An active/standby No action is required. Wait


interfaces switchover is performed on until the remote device
alternate the remote device. When finishes the active/standby
between Up multiple interfaces of the switchover.
and Down local device connect to the
states same remote device, the
simultaneously. interfaces alternate
between Up and Down
states simultaneously if an
active/standby switchover
occurs on the remote
device.

It takes a long This log information is No action is required.


period for the informational. The remote
interface to device performs operations
change from on the local interface.
Down to Up.

The Up/Down ● The optical module does ● Replace the optical


logs are not match the module and check
generated on hardware; the optical whether the optical
the interface at module is sensitive to module or optical fiber
different times. the signal jitter; or the is properly connected.
In this period, receive optical power is ● Connect the local
the interface too low. interface to another
instantly ● The remote or local remote interface.
alternates interface is faulty.
between Up ● Disable port protection
and Down ● Port protection is on the remote device.
states at an configured on the
interval shorter remote device.
than 1s.

If the fault persists, go to step 4.


4. Check whether the local or remote device has a hardware fault.
Connect the devices using other interfaces.
If the fault persists, go to step 5.
5. Collect the following information and contact technical support personnel:
– Results of the preceding troubleshooting procedure
– Configuration file, logs, and alarms of the device

2.14 FAQ About Ethernet Interfaces

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 102


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

2.14.1 How Can Two Interfaces at Both Ends of a Link


Determine the Rate and Duplex Mode Through Auto-
Negotiation?
The auto-negotiation function provides an information exchange method for
connected devices. After auto-negotiation is enabled, devices at both ends of a
physical link can exchange information and automatically choose the same
working parameters. In this way, the two devices can work at the maximum rate
supported by both of them. For example, a GE interface connects to an FE
interface and their rate is negotiated to 100 Mbit/s, which is the maximum rate
supported by both of them.

2.14.2 How Can Packet Loss Be Avoided When Two Interfaces


at Both Ends of a Link Work in Auto-Negotiation Mode and
Use the Half-Duplex Mode?
You can configure the local and remote devices to work in non-auto-negotiation
mode, and set their duplex mode to full-duplex to avoid packet loss.
The configuration is as follows:
<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] undo negotiation auto
[HUAWEI-GigabitEthernet0/0/1] duplex full

2.14.3 What Are the Differences Between a Combo Interface


and a Common Interface?
A combo interface consists of a GE electrical interface and a GE optical interface
on the panel. The multiplexed electrical and optical interfaces share one internal
forwarding interface and cannot work at the same time. When one interface
works, the other interface is disabled. You can use the electrical or optical
interface based on the remote interface type. The electrical and optical interfaces
share one interface view. When you enable the electrical or optical interface,
configure the interface attributes (such as the rate and duplex mode) in the same
interface view.
For example, part 3 on the panel shown in Figure 2-13 consists of eight combo
interfaces, each of which contains a GE electrical interface and a GE optical
interface on the panel. The electrical and optical interfaces share one interface
view and cannot work concurrently.

Figure 2-13 Device panel

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 103


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 2 Ethernet Interface Configuration

2.14.4 Why Is a Non-Connected Interface Up?


If loopback internal command has been configured on the interface to enable
internal loopback detection, the interface is Up.
You can run the display interface gigabitethernet 0/0/1 command in any view
to check whether internal loopback detection is enabled on GE0/0/1.
<HUAWEI> display interface gigabitethernet 0/0/1
...
Port Mode: FORCE COPPER
Speed : 1000, Loopback: INTERNAL
Duplex: FULL, Negotiation: ENABLE
Mdi : AUTO, Flow-control: DISABLE
...

The command output shows that internal loopback detection is enabled on the
interface.

2.14.5 Can an IP Address Be Directly Assigned to a Physical


Interface?
An MEth management port is a Layer 3 interface. You can directly configure an IP
address for the interface.
To configure an IP address for a service interface, configure a VLANIF virtual
interface, and assign an IP address to the VLANIF interface. Example:
<HUAWEI> system-view
[HUAWEI] vlan 10
[HUAWEI-vlan10] quit
[HUAWEI] interface vlanif 10
[HUAWEI-Vlanif10] ip address 192.168.1.10 24

In V200R005C00 and later versions, run the undo portswitch command changes
the working mode of Ethernet interfaces from Layer 2 mode to Layer 3 mode.
Ethernet interfaces working at Layer 3 support IP address configuration.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 104


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 3 Logical Interface Configuration

3 Logical Interface Configuration

3.1 Overview of Logical Interfaces


3.2 Licensing Requirements and Limitations for Logical Interfaces
3.3 Configuring a Logical Interface

3.1 Overview of Logical Interfaces


This section describes logical interfaces supported by switches.

● Eth-Trunk
An Eth-Trunk has Layer 2 and Layer 3 features and is formed by binding
multiple Ethernet interfaces to provide more bandwidth and higher
transmission reliability. For details about how to configure an Eth-Trunk, see
Link Aggregation Configuration in the S300, S500, S2700, S5700, and S6700
V200R023C00 Configuration Guide - Ethernet Switching.
● Tunnel interface
A tunnel interface has Layer 3 features, transmits packets, and identifies and
processes packets transmitted over a tunnel.
● VLANIF interface
A VLANIF interface has Layer 3 features, and enables VLANs to communicate
and can have Layer 3 services deployed after being assigned an IP address.
For details about how to configure a VLANIF interface, see Configuration
Examples in "VLAN Configuration" in the S300, S500, S2700, S5700, and
S6700 V200R023C00 Configuration Guide - Ethernet Switching.
● Ethernet sub-interface
Ethernet sub-interfaces are multiple logical interfaces configured on a main
interface to allow the main interface to communicate with multiple remote
interfaces. Ethernet sub-interfaces can share physical layer parameters of their
main interface, or be configured with their respective link layer parameters
and network layer parameters. Disabling or activating Ethernet sub-interfaces
does not affect the main interface status, but the main interface status
change affects the status of Ethernet sub-interfaces. Ethernet sub-interfaces
work properly only when their main interface is in Up state.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 105


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 3 Logical Interface Configuration

Ethernet sub-interfaces are classified into Layer 2 Ethernet sub-interfaces and


Layer 3 Ethernet sub-interfaces based on whether IP addresses are configured.
– Layer 2 Ethernet sub-interfaces: have no IP address configured, work at
the data link layer, and are used for across-tunnel packet forwarding in
the same VLAN on the same network segment, for example, in L2VPN
scenarios.
– Layer 3 Ethernet sub-interfaces: have IP addresses configured, work at
the network layer, and are used for packet forwarding between different
network segments, for example, in L3VPN scenarios.
● Loopback interface
According to TCP/IP, an interface with an IP address in the range of 127.0.0.0
to 127.255.255.255 is a loopback interface. A loopback interface can be either
of the following:
– Loopback interface
A loopback interface is used when you need an interface that must be
always in the Up state. A loopback interface has the following
advantages:

▪ Once a loopback interface is created, its physical status and data link
protocol status always stay Up, regardless of whether an IP address is
configured for the loopback interface.

▪ A loopback interface can be assigned an IP address with a 32-bit


mask, which reduces address consumption. The IP address of a
loopback interface can be advertised immediately after being
configured.

▪ No link layer protocol can be configured for a loopback interface.


Therefore, no data link layer negotiation is required, allowing the link
layer protocol status of the interface to stay Up.

▪ The device drops the packet with a non-local IP address as the


destination IP address and a local loopback interface as the
outbound interface.
The advantages of a loopback interface help improve configuration
reliability. The IP address of a loopback interface can be used as follows:

▪ Can be configured as a packet's source IP address to improve


network reliability.

▪ Can be used to control an access interface and filter logs to simplify


information displaying.
– InLoopback0 interface
An InLoopBack0 interface is a fixed loopback interface that is
automatically created at the system startup.
An InLoopBack0 interface uses the fixed loopback address 127.0.0.1/8 to
receive data packets destined for the host where the InLoopBack0
interface resides. The loopback address of an InLoopBack0 interface is not
advertised.
● NULL interface
A null interface is used to filter routes because any data packets received by
the null interface are discarded.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 106


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 3 Logical Interface Configuration

● NVE interface
An NVE interface is a logical interface used to establish a VXLAN tunnel with
another NVE device. For details about how to configure an NVE interface, see
S300, S500, S2700, S5700, and S6700 V200R023C00 Configuration Guide -
VXLAN Configuration.
● VBDIF interface
A VBDIF interface is a virtual interface based on a bridge domain and
supporting Layer 3 features. VBDIF interfaces implement communication
between BDs, between BD and non-BD networks, and between BD and Layer
3 networks. For details about how to configure a VBDIF interface, see S300,
S500, S2700, S5700, and S6700 V200R023C00 Configuration Guide - VXLAN
Configuration.
● VE interface
A VE interface is used when other data link layer protocols need to be carried
by the Ethernet protocol. A VE sub-interface can be created to allow an
L2VPN to access to an L3VPN.

3.2 Licensing Requirements and Limitations for Logical


Interfaces
Involved Network Element
Other network elements are not required.

Licensing Requirements
A logical interface is a basic feature of a switch and is not under license control.

Feature Support in V200R023C00


All models of S300, S500, S2700, S5700, and S6700 series switches support logical
interfaces.

NOTE

For details about software mappings, visit Hardware Center and select the desired product
model.
The S5731-L and S5731S-L are remote units and do not support web-based management,
YANG, or commands. They can be configured only through configuration delivery by the
central device. For details, see "Simplified Architecture Configuration (the Solar System
Solution)" in the S300, S500, S2700, S5700, and S6700 V200R023C00 Configuration Guide -
Device Management.

Feature Limitations
● For Layer 2 interfaces, only hybrid and trunk interfaces support Ethernet sub-
interface configuration. After a Layer 2 interface is switched to a Layer 3
interface using the undo portswitch command, the interface supports Layer 3
Ethernet sub-interface configuration.
● After an interface is added to an Eth-Trunk, you can only configure sub-
interfaces on the Eth-Trunk, but not on the interface.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 107


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 3 Logical Interface Configuration

● For the S5732-H, S6730-H, S6730S-H, S6730-S, and S6730S-S: Configuring


traffic statistics collection on sub-interfaces may affect the forwarding
performance. For example, some packets may be discarded when all
interfaces forward packets at the line rate. Therefore, configure traffic
statistics collection on sub-interfaces if necessary.

3.3 Configuring a Logical Interface

3.3.1 Configuring a VLANIF Interface


Context
A VLANIF interface is a Layer 3 logical interface. After an IP address is assigned,
the VLANIF interface enables VLANs to communicate and can have Layer 3
services deployed.
NOTE
A VLANIF interface goes Up only after the following conditions are met:
● The corresponding VLAN must have been created.
● A physical interface or Eth-Trunk in Up state has been added to the corresponding
VLAN.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run interface vlanif vlan-id

A VLANIF interface is created and the VLANIF interface view is displayed.

Step 3 Run ip address ip-address { mask | mask-length } [ sub ]

An IP address is assigned to the VLANIF interface.

Step 4 (Optional) Run damping time delay-time

The delay after which the VLANIF interface goes Down is set.

By default, the delay is 0 seconds, that is, a VLANIF interface goes Down
immediately after the corresponding VLAN goes Down.

Setting a delay after which a VLANIF interface goes Down prevents network
flapping caused by status change of the VLANIF interface. This function is also
called VLAN damping.

Enable the VLAN damping function on the VLANIF interface. After the last
member interface in Up state in the corresponding VLAN goes Down, the VLAN
damping-enabled device reports the VLAN Down event to the VLANIF interface
after the configured delay. If a member interface in the VLAN goes Up during the
delay, the VLANIF interface remains in Up state.

Step 5 (Optional) Run mtu mtu

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 108


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 3 Logical Interface Configuration

The MTU of the VLANIF interface is set.


By default, the MTU of a VLANIF interface is 1500 bytes.

----End

Verifying the Configuration


● Run the display interface vlanif vlan-id command to view the status of a
VLANIF interface.

3.3.2 Configuring an Ethernet Sub-interface


Context
Ethernet sub-interfaces are multiple logical interfaces configured on a main
interface to allow the main interface to communicate with multiple remote
interfaces. Ethernet sub-interfaces can share physical layer parameters of their
main interface, or be configured with their respective link layer parameters and
network layer parameters. Disabling or activating Ethernet sub-interfaces does not
affect the main interface status, but the main interface status change affects the
status of Ethernet sub-interfaces. Ethernet sub-interfaces work properly only when
their main interface is in Up state. Associating an Ethernet sub-interface with a
VLAN implements inter-VLAN communication and applies to Dot1q termination,
QinQ termination and VXLAN scenarios.

NOTE

● Only the S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6735-S, S6720-EI, S6720S-
EI, S6730-H, S6730S-H, S6730-S, and S6730S-S support Ethernet sub-interfaces.
● Only hybrid and trunk interfaces on the preceding switches support Layer 2 Ethernet
sub-interface configuration.
● After you run the undo portswitch command to switch Layer 2 interfaces on the
preceding series of switches into Layer 3 interfaces, you can configure Layer 3 Ethernet
sub-interfaces on the interfaces.
● After an interface is added to an Eth-Trunk, sub-interfaces cannot be configured on the
interface.
● VLAN termination sub-interfaces cannot be created on a VCMP client.

Pre-configuration Tasks
Before configuring an Ethernet sub-interface, properly connect the physical
interface of the Ethernet sub-interface.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run interface interface-type interface-number.subinterface-number [ mode l2 ]
The Ethernet sub-interface view is displayed.
subinterface-number specifies the number of an Ethernet sub-interface. mode l2
indicates that the sub-interface is configured to work in Layer 2 mode for the

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 109


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 3 Logical Interface Configuration

VXLAN service. You need to specify this parameter only when configuring the
VXLAN service.
Step 3 Configure an Ethernet sub-interface to transmit services based on the service type.
● Layer 2 Ethernet sub-interface
– When configuring a Layer 2 sub-interface, you only need to configure a
sub-interface for termination.
VLAN packets are classified into Dot1q packets (one layer of VLAN tag)
and QinQ packets (double layers of tags). Accordingly, there are two
VLAN tag termination modes. Dot1q termination terminates Dot1q
packets and QinQ termination terminates QinQ packets. Run either of
the following commands to configure a sub-interface for termination
based on site requirements.

▪ Run dot1q termination vid low-pe-vid [ to high-pe-vid ]


The allowed VLAN is configured on the sub-interface for dot1q VLAN
termination.

▪ Run qinq termination pe-vid pe-vid ce-vid ce-vid1 [ to ce-vid2 ]


The allowed VLAN is configured on the sub-interface for qinq VLAN
termination.
– Configure the VXLAN access service on the Layer 2 sub-interface.
You must configure the sub-interface to work in Layer 2 mode for the
VXLAN service.
i. Run encapsulation { dot1q { vid pe-vid } | default | untag | qinq
{ vid vlan-vid ce-vid ce-vid } }
An encapsulation mode is configured for a Layer 2 sub-interface to
specify the type of packets that can pass through the sub-interface.
By default, the encapsulation mode of packets allowed to pass a
Layer 2 sub-interface is not configured.
ii. Run bridge-domain bd-id
A specified Layer 2 sub-interface is associated with a BD so that data
packets can be forwarded in the BD.
By default, a Layer 2 sub-interface is not associated with a BD.
● Layer 3 Ethernet sub-interface (IPv4)
a. Run ip address ip-address { mask | mask-length } [ sub ]
The IP address of the sub-interface is configured.
NOTE

Specify the sub parameter when you need to configure a secondary IP address
for the sub-interface.
b. Configure a sub-interface for termination.
VLAN packets are classified into Dot1q packets (one layer of VLAN tag)
and QinQ packets (double layers of tags). Accordingly, there are two
VLAN tag termination modes. Dot1q termination terminates Dot1q
packets and QinQ termination terminates QinQ packets. Run either of
the following commands to configure a sub-interface for termination
based on site requirements.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 110


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 3 Logical Interface Configuration

▪ Run dot1q termination vid low-pe-vid [ to high-pe-vid ]


The allowed VLAN is configured on the sub-interface for dot1q VLAN
termination.

▪ Run qinq termination pe-vid pe-vid ce-vid ce-vid1 [ to ce-vid2 ]


The allowed VLAN is configured on the sub-interface for qinq VLAN
termination.
c. Run arp broadcast enable
The ARP broadcast function is enabled on the sub-interface.
NOTE

When you enable or disable the ARP broadcast function on a sub-interface, the
routing status of the sub-interface becomes Down and then Up. This result in flapping
of routes on the entire network, affecting the normal operation of services.
● Layer 3 Ethernet sub-interface (IPv6)
a. Configure a sub-interface for termination.
VLAN packets are classified into Dot1q packets (one layer of VLAN tag)
and QinQ packets (double layers of tags). Accordingly, there are two
VLAN tag termination modes. Dot1q termination terminates Dot1q
packets and QinQ termination terminates QinQ packets. Run either of
the following commands to configure a sub-interface for termination
based on site requirements.

▪ Run dot1q termination vid low-pe-vid [ to high-pe-vid ]


The allowed VLAN is configured on the sub-interface for dot1q VLAN
termination.

▪ Run qinq termination pe-vid pe-vid ce-vid ce-vid1 [ to ce-vid2 ]


The allowed VLAN is configured on the termination sub-interface for
qinq VLAN termination.
b. Run ipv6 enable
The IPv6 service is enabled on the sub-interface.
c. Run ipv6 address { ipv6-address prefix-length | ipv6-address/prefix-
length }
The global unicast IPv6 address is configured for the termination sub-
interface.
d. Run ipv6 nd ns multicast-enable
A termination sub-interface is enabled from sending NS multicast
packets.

----End

Verifying the Configuration


● Run the display interface [ interface-type [ interface-number
[.subnumber ] ] ] command to check the status of a specified Ethernet sub-
interface.
● Run the display dot1q information termination [ interface interface-type
interface-number [.subinterface-number ] ] command to check names of all

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 111


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 3 Logical Interface Configuration

interfaces configured with dot1q VLAN tag termination and the sub-interface
configuration.
● Run the display qinq information termination [ interface interface-type
interface-number [.subinterface-number ] ] command to check names of all
interfaces configured with QinQ VLAN tag termination and the sub-interface
configuration.

3.3.3 Configuring a Loopback Interface


Context
A loopback interface has the following features:
● Is always Up and has the loopback feature.
● Can be configured with the mask of all 1s.
Based on the preceding features, the loopback interface has the following
applications.
● The IP address of a loopback interface is specified as the source address of
packets to improve network reliability.
● When no router ID is configured for dynamic routing protocols, the maximum
IP address of the loopback interface is automatically configured as the router
ID.
● The loopback interface is configured as the source interface to send Border
Gateway Protocol (BGP) packets to ensure that the BGP session functions
properly when the physical interface is faulty.
● The loopback interface can be configured with the mask of 255.255.255.255
to save IP address resources.
● The loopback interface can be assigned an IPv4 address and configured to
check the source IPv4 addresses of packets.

Pre-Configuration
Before configuring a loopback interface, power on the device and perform self-
check.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run interface loopback loopback-number
A loopback interface is created and the loopback interface view is displayed.
You can create or delete a loopback interface dynamically. After a loopback
interface is created, the link-layer protocol is always Up unless the loopback
interface is deleted.
Step 3 Run ip address ip-address { mask | mask-length } [ sub ]
The IP address of the loopback interface is configured.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 112


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 3 Logical Interface Configuration

Step 4 (Optional) Run ip verify source-address

The loopback interface is configured to check the source IPv4 addresses of


packets.

----End

Verifying the Configuration


● Run the display interface loopback [ loopback-number ] command to check
the status of a loopback interface.

3.3.4 Configuring a NULL Interface

Context
A NULL0 interface is created automatically. The NULL0 interface is always Up and
cannot forward packets. Any packets sent to the NULL0 interface are discarded. If
the next hop of a static route to a network segment is a NULL interface, all the
data packets destined for this network segment are discarded. Therefore, the
packets that you want to filter out can be sent to the NULL0 interface directly
without configuring the access control list.

For example, run the following static route configuration command to discard
packets sent to the network segment of 192.168.0.0/24.
[HUAWEI] ip route-static 192.168.0.0 255.255.255.0 NULL 0

Pre-configuration Tasks
Before configuring a NULL interface, power on the device and perform self-check.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run interface null 0

The NULL interface view is displayed.

The NULL interface stays in Up state. It cannot forward data packets. You cannot
configure an IP address for it or encapsulate it with protocols.

----End

Verifying the Configuration


● Run the display interface null [ 0 ] command to check the status of a null
interface.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 113


S300, S500, S2700, S5700 and S6700 Series Ethernet
Switches
Configuration Guide - Interface Management 3 Logical Interface Configuration

3.3.5 Configuring a VE Interface


Context
You can use VE interfaces when other link layer protocols need to be carried by
the Ethernet protocol.
NOTE

Only the S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6730-H, S6730S-H, S6730-S, and
S6730S-S support VE interface configuration.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run interface virtual-ethernet ve-number
A VE interface is created and the VE interface view is displayed.
Step 3 Configure a VE interface based on actual requirements.
● Configure the VE interface to work in Layer 2 mode.
Run portswitch
The working mode of the VE interface is changed from Layer 3 mode to Layer
2 mode.
By default, a VE interface works in Layer 3 mode.
● Configure a VE sub-interface.
You need to create a VE sub-interface when configuring an L2VPN to access
to an L3VPN.
a. Run ve-group ve-group-id { l2-terminate | l3-access }
A Layer 2 or Layer 3 VE interface is created.
b. Run quit
Return to the system view.
c. Run interface virtual-ethernet ve-number.subnumber
A VE sub-interface is created and the VE sub-interface view is displayed.

----End

Verifying the Configuration


● Run the display interface virtual-ethernet [ ve-number | main ] command
to check the status and statistics of the VE interface.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 114

You might also like