01-01 Basic Configuration For Interfaces
01-01 Basic Configuration For Interfaces
Switches
Configuration Guide - Interface Management 1 Basic Configuration for Interfaces
Physical interfaces are sometimes called ports. This document uses the term interface.
Table 1-1 describes the physical interfaces that the switch supports.
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.
Table 1-2 describes the management interfaces that the switch supports.
● 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.
NULL interface A null interface is used to filter routes because any data
packets received by the null interface are discarded.
Interface Description
Interface Number
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.
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.
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.
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.
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
Context
To facilitate switch management and maintenance, you can configure interface
descriptions. An interface description can contain:
Procedure
Step 1 Run system-view
----End
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
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
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
----End
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.
● Enable an interface.
a. Run system-view
----End
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.
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