0% found this document useful (0 votes)
18 views

01-01 Basic Configuration For Interfaces

Uploaded by

imannuel93
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views

01-01 Basic Configuration For Interfaces

Uploaded by

imannuel93
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

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

You might also like