This section describes how to maintain the interface.
3.1 Introduction to Interfaces
This section describes different types of interfaces. The interfaces are provided by the S2300 to receive and send data.
Interfaces are classified into management interfaces and service interfaces based on their functions; interfaces are classified into physical interfaces and logical interfaces based on their physical forms.
NOTE
A physical interface is sometimes called a port. Both physical interfaces and logical interfaces are called interfaces in this document.
Management Interface
Management interfaces are used to manage and configure a device. You can log in to the S2300 through a management interface to configure and manage the S2300. Management interfaces do not transmit service data.
The management interface of the S2300 is a console interface.
Table 3-1 Description of management interfaces
Name Description Usage
Console interface
The console interface complies with the EIA/TIA-232 standard and the interface type is DCE.
The console interface is connected to the COM series port of a configuration terminal. It is used to set up the onsite configuration environment.
The following table shows the rule for numbering management interfaces.
Table 3-2 Management interface numbers
Name Number
Console interface Console 0
Classification of Service Interfaces
Service interfaces are used to transmit service data. They are classified into 100 Mbit/s interfaces, 1 Gbit/s interfaces and 10 Gbit/s interfaces according to their rates; they are classified into electrical interfaces and optical interfaces according to their electrical properties.
The rules for numbering service interfaces are as follows:
In a single S2300, interfaces are numbered in the format slot ID/subcard ID/interface sequence number.
l Slot ID: indicates the slot where an interface is located. The value is 0.
l Subcard ID: indicates the subcard where an interface is located. The value is 0.
l Interface sequence number: indicates the sequence number of an interface.
In a stack system, interfaces are numbered in the format stack ID/subcard ID/interface sequence number.
l Stack ID: indicates the ID of an S2300 in the stack system. The value ranges from 1 to 16.
l Subcard ID: indicates the ID of a subcard. The value is 0.
l Interface sequence number: indicates the sequence number of an interface on the S2300.
Table 3-3 FE and GE interface numbering rule
Figure of Interface Numbering Description
1
2 The S2300 has two rows of service
interfaces with the lower-left interface numbered 1. The other interfaces are numbered in ascending order from bottom to up, and then from left to right.
For example, the upper-left interface numbered 0/0/2.
Physical Interfaces
Physical interfaces are interfaces that actually exist on the S2300.
Physical interfaces include management interfaces and service interfaces.
The S2300 supports the following physical interfaces:
l Console interface l Eth interface
l Fast Ethernet interface l Gigabit Ethernet interface
Logical Interfaces
Logical interfaces do not exist and are set up by configurations.
The S2300 supports the following logical interfaces:
l Eth-Trunk
The Eth-Trunk consists of Ethernet links only.
The Eth-Trunk technique has the following advantages:
– Increased bandwidth: The bandwidth of an Eth-Trunk is the total bandwidth of all member interfaces.
– Improved reliability: When a link fails, traffic is automatically switched to other available links. This ensures link reliability.
For details about the Eth-Trunk configuration, see "Configuring the Eth-Trunk" in the Quidway S2300 Series Ethernet Switches Configuration Guide - Ethernet.
l Loopback interface
A loopback interface is a virtual interface. The TCP/IP protocol suite defines IP address 127.0.0.0 as a loopback address. When the system starts, it automatically creates an interface using the loopback address 127.0.0.1 to receive all data packets sent to the local device.
Some applications need a local interface with a specified IP address without affecting the configuration of physical interfaces. This IP address has a 32-bit mask (to save IP addresses) and can be advertised by routing protocols.
The status of a loopback interface is always Up; therefore, the IP address of the loopback interface can be used as the router ID, the label switching router (LSR) ID, or be land to a tunnel.
For details, see 3.3 Configuring the Loopback Interface.
l Null interface
Null interfaces are similar to null devices supported by certain operating systems. Any data packets sent to a null interface are discarded. Null interfaces are used for route selection and policy-based routing (PBR). For example, if a packet matches no route during route selection, the packet is sent to the null interface.
l VLANIF interface
When the S2300 needs to communicate with devices at the network layer, you can create a logical interface of the Virtual Local Area Network (VLAN) on the S2300, namely, a VLANIF interface. You can assign IP addresses to VLANIF interfaces because VLANIF interfaces work at the network layer. The S2300 then communicates with devices at the network layer through VLANIF interfaces.
For details about the configuration, see "Configuring the VLANIF Interface" in the Quidway S2300 Series Ethernet Switches Configuration Guide - Ethernet.
3.2 Setting Basic Parameters of an Interface
This section describes how to set the basic parameters of an interface.
3.2.1 Establishing the Configuration Task
Before configuring advanced functions of an interface such as the working mode and routes, you need to complete the basic configuration of the interface.
Applicable Environment
To facilitate the configuration and maintenance of an interface, the S2300 provides interface views. The commands related to the interface are valid only in the interface views.
The basic interface configurations include entering an interface view, configuring interface description, enabling an interface, and disabling an interface.
Pre-configuration Tasks
Installing the LPU on the S2300
Data Preparation
To set parameters of an interface, you need the following data.
No. Data
1 Type and number of the interface to be configured 2 Description of the interface
3.2.2 Entering the Interface View
To configure an interface, you need to enter the interface view.
Context
Do as follows on the S2300.
Procedure
Step 1 Run:
system-view
The system view is displayed.
Step 2 Run:
interface interface-type interface-number
The view of a specified interface is displayed.
interface-type specifies the type of the interface and interface-number specifies the number of the interface.
----End
3.2.3 Viewing All the Commands in the Interface View
After entering the interface view, you can view all the commands in the interface view.
Context
Do as follows on the S2300.
Procedure
Step 1 Run:
system-view
The system view is displayed.
Step 2 Run:
interface interface-type interface-number
The view of a specified interface is displayed.
Step 3 Run:
?
All the commands in the view of the specified interface are displayed.
----End
3.2.4 Configuring the Description for an Interface
The description configured for an interface on the S2300 helps you identify and memorize the usage of the interface, which facilitates the management.
Procedure
Step 1 Run:
system-view
The system view is displayed.
Step 2 Run:
interface interface-type interface-number
The view of a specified interface is displayed.
Step 3 Run:
description description
The description is configured for the interface.
----End
3.2.5 Starting and Shutting Down an Interface
When a physical interface is idle and is not connected to a cable, shut down this interface to protect the interface against interference. To use a shutdown interface, you need to start the interface.
Context
NOTE
l A null interface is always Up and cannot be shut down by command.
l A loopback interface is always Up and cannot be shut down by command.
Procedure
l Shutting down the interface Do as follows on the S2300.
1. Run:
system-view
The system view is displayed.
2. Run:
interface interface-type interface-number
The view of a specified interface is displayed.
3. Run:
shutdown
The interface is shut down.
NOTE
By default, an interface is enabled.
l Starting an interface Do as follows on the S2300.
1. Run:
system-view
The system view is displayed.
2. Run:
interface interface-type interface-number
The view of a specified interface is displayed.
3. Run:
undo shutdown
The interface is started.
----End
3.2.6 Further Configuration an Interface
After configuring basic parameters, configure the interface as required.
Context
When you access a network through an interface, you need to further setting multiple parameters of the interface based on the networking requirements in addition to performing basic
configurations on the interface.
Further configurations of an interface include:
l Configuring the operation mode of an interface l Configuring routes
For the detailed Configuration, please see the other configuration manuals of S2300.
For the detailed Configuration, please see Quidway S2300 Series Ethernet Switches
Configuration Guide - Ethernet and Quidway S2300 Series Ethernet Switches Configuration Guide - IP Routing.
3.2.7 Checking the Configuration
After completing the basic configuration of an interface, you can use the display commands to check the configuration.
Procedure
Step 1 Run the display interface [ interface-type [ interface-number ] ] command to check the running status of the interface and the statistics on the interface.
Step 2 Run the display interface description command to check the brief information about the interface
Step 3 Run the display ip interface [ interface-type interface-number ] command to check the main configurations of the interface.
Step 4 Run the display ip interface brief [ interface-type interface-number ] command to check the brief state of the interface.
----End
3.3 Configuring the Loopback Interface
This section describes how to configure the loopback interface.
3.3.1 Establishing the Configuration Task
The users can create or delete a loopback interface. When being created, the loopback interface remains in the Up state until you delete it.
Applicable Environment
Some applications need to be configured with a local interface with a specified IP address when the configuration of a physical interface is not affected. In this case, the IP address of the local interface needs to be advertised by routing protocols. Loopback interfaces are used to improve the reliability of the configuration.
Pre-configuration Tasks
Before configuring the loopback interface, complete the following task:
l Switching on the S2300
Data Preparation
To configure the loopback interface, you need the following data.
No. Data
1 Number of the loopback interface 2 IP address of the loopback interface
3.3.2 Configuring IPv4 Parameters of the Loopback Interface
A loopback interface can be assigned an IPv4 address, configured to check the source IPv4 addresses of packets.
Procedure
Step 1 Run:
system-view
The system view is displayed.
Step 2 Run:
interface loopback interface-number
A loopback interface is created.
The value of interface-number ranges from 0 to 1023. A maximum of 1024 loopback interfaces can be created.
Step 3 Run:
ip address ip-address { mask | mask-length } [ sub ]
An IPv4 address is assigned to the loopback interface.
Step 4 (Optional) Run:
ip verify source-address
The loopback interface is configured to check the source IPv4 addresses of packets.
----End
3.3.3 Checking the Configuration
After configuring a loopback interface, run the following commands to check the configuration.
Procedure
Step 1 Run the display interface loopback [ number ] command to check the status of the loopback interface.
----End
3.4 Maintaining the Interface
This section describes how to maintain the interface.
3.4.1 Clearing Statistics Information on the Interface
The statistics on the interface cannot be restored after you clear them. So, confirm the action before you use the command.
Procedure
Step 1 Run the reset counters interface [ interface-type [ interface-number ] ] command in the user view to clear the statistics on the interface.
----End
3.4.2 Debugging the Interface
When an interface works abnormally, you can debug the interface.
Context
CAUTION
Debugging affects the performance of the system. So, after debugging, run the undo debugging all command to disable it immediately.
For the description about debugging commands, see the Quidway S2300 Series Ethernet Switches Debugging Reference.
For details about debugging commands on an interface, see the following chapters.
4 Basic Configuration
About This Chapter
This chapter describes how to configure the basic system environment and the basic user environment.