Management Interfaces and Management IP Addresses of S Series Switches
Overview
To manage a switch, you need to use its management interface and management IP address. This document describes the management interfaces supported by switches and how to configure management IP addresses for switches.
Management Interface
Typically, you can manage a switch through SNMP, web system, Telnet, and console port. Network management can be classified into in-band management and out-of-band management. In-band management means that management data and service data are transmitted over the same link. When the traffic of management data is light, in-band management can be used because the network-wide performance is not affected. In out-of-band management, management data and service data are transmitted over different links. Using a dedicated network management channel to manage the network can improve the efficiency and reliability of network management and improve the security of network management data.
To manage a switch, you need to connect to the management interface of the switch. Switches currently support the following management interfaces: console port, mini USB port, Ethernet management port, and service interface. Select a management interface as required.
Console Port
You can log in to a switch through the console port of the switch when you log in to the switch for the first time or cannot remotely log in to the switch, or the switch cannot start. To log in to a switch through the console port of the switch, connect the serial port of your PC to the console port of the switch using a dedicated console cable. Then you can perform related configurations to manage the switch locally. For details, see First Login Through the Console Port. As the basic login mode, login through the console port is out-of-band management mode and is the basis for other login modes such as Telnet login and STelnet login. Figure 1-1 shows the connection between a PC and a switch through the console port.
Mini USB Port
If no console port is available on a switch, use a mini USB cable to connect the USB port of a PC to the mini USB port of the switch for the first login to the switch and then configure and manage the switch. For details, see First Login Through the Mini USB Port. Communication parameters and login configurations are the same between login through the mini USB port and login through the console port, and the only difference is the connection mode. Management through mini USB port or a console port is out-of-band management. When both the mini USB port and console port have a cable connected, only the mini USB port works. Figure 1-2 shows the connection between a PC and a switch through the mini USB port.
Ethernet Management Port
An Ethernet management port is a special Ethernet interface that can be assigned an IP address but does not transmit services. Management through an Ethernet management port is out-of-band management. The Ethernet management port of a fixed switch refers to the MEth interface, and that of a modular switch refers to the ETH interface. Figure 1-3 shows the connection between a PC and a switch through the Ethernet management port.
Service Interface
A service interface is an Ethernet interface that transmits services. When you configure and manage a switch through its service interface, the management data and service data on the network are transmitted over the same link, that is, in-band management is used. Figure 1-4 shows the connection between a PC and a switch through a service interface.
Configuring a Management IP Address
A management IP address can be configured on an Ethernet management port or a service interface. You can directly configure an IP address for an Ethernet management port. Management IP address configuration on a service interface varies depending on whether a switch supports Layer 2/Layer 3 mode switching. If the switch supports Layer 2/Layer 3 mode switching, directly configure a management IP address on the service interface after the interface is changed to the Layer 3 mode. Otherwise, configure an IP address for the VLANIF interface of the VLAN to which the service interface is added. The following describe how to configure a management IP address on an Ethernet management port or a service interface and how to check the IP address.
Configuring a Management IP Address on an Ethernet Management Port
- For fixed switches:
- Run the interface MEth 0/0/1 command to enter the MEth interface view.
<HUAWEI> system-view [HUAWEI] interface MEth 0/0/1
- Run the ip address ip-address { mask | mask-length } command to configure an IP address for the MEth interface. The following assumes that the IP address of the Ethernet management port is 10.1.1.1/24.
[HUAWEI-MEth0/0/1] ip address 10.1.1.1 24
- Run the interface MEth 0/0/1 command to enter the MEth interface view.
- For modular switches:
- Run the interface Ethernet 0/0/0 command to enter the ETH interface view.
<HUAWEI> system-view [HUAWEI] interface Ethernet 0/0/0
- Run the ip address ip-address { mask | mask-length } command to configure an IP address for the ETH interface. The following assumes that the IP address of the Ethernet management port is 10.1.1.2/24.
[HUAWEI-Ethernet0/0/0] ip address 10.1.1.2 24
- Run the interface Ethernet 0/0/0 command to enter the ETH interface view.
Configuring a Management IP Address on a Service Interface
- Configure a management IP address on a service interface after the interface is changed to Layer 3 mode.
- Run the interface interface-type interface-number command to enter the Ethernet interface view. The following assumes that the interface connecting the switch to the PC is GigabitEthernet0/0/1.
<HUAWEI> system-view [HUAWEI] interface GigabitEthernet 0/0/1
- Run the undo portswitch command to change the working mode of the interface to Layer 3. By default, an Ethernet interface works in Layer 2 mode.
[HUAWEI-GigabitEthernet0/0/1] undo portswitch
- Run the ip address ip-address { mask | mask-length } command to configure an IP address for the interface. The following assumes that the IP address of the Layer 3 interface is 10.1.1.3/24.
[HUAWEI-GigabitEthernet0/0/1] ip address 10.1.1.3 24
- Run the interface interface-type interface-number command to enter the Ethernet interface view. The following assumes that the interface connecting the switch to the PC is GigabitEthernet0/0/1.
- Configure a management IP address on a VLANIF interface of the VLAN to which a service interface is added.
- Run the interface interface-type interface-number command to enter the Ethernet interface view. The following assumes that the interface connecting the switch to the PC is GigabitEthernet0/0/1.
<HUAWEI> system-view [HUAWEI] interface GigabitEthernet 0/0/1
- Run the port link-type access command to set the link type to access.
[HUAWEI-GigabitEthernet0/0/1] port link-type access
- Run the port default vlan vlan-id command to configure the default VLAN for the interface and add the interface to the VLAN.
[HUAWEI-GigabitEthernet0/0/1] port default vlan 4094 [HUAWEI-GigabitEthernet0/0/1] quit
- Run the interface Vlanif vlan-id command to create a VLANIF interface for the specified and enter the VLANIF interface view.
[HUAWEI] interface Vlanif 4094
- Run the ip address ip-address { mask | mask-length } command to configure an IP address for the VLANIF interface. The following assumes that the IP address of the VLANIF interface is 10.1.1.4/24.
[HUAWEI-Vlanif4094] ip address 10.1.1.4 24
- Run the interface interface-type interface-number command to enter the Ethernet interface view. The following assumes that the interface connecting the switch to the PC is GigabitEthernet0/0/1.
Querying the Management IP Address
Run the display ip interface [ interface-type interface-number ] command to check IP-related information of the specified interface. To check the IP address configured for the interface, check the Internet Address is field in the command output.
Run the display ip interface brief [ interface-type [ interface-number ] | slot slot-id [ card card-number ] ] command to check brief IP-related information of the specified interface. To check the IP address configured for the interface, check the IP Address/Mask field in the command output.
Run the display interface [ interface-type interface-number ] command to check information about the specified interface. To check the IP address configured for the interface, check the Internet Address is field in the command output.