First Login to a Switch (Applicable to S300, S500, S2700, S5700, and S6700 Running V200 Versions)
Overview of the First Login
Before being able to configure a new switch, you need to log in to the switch. Once logging in, you can configure the device name, management IP address, and system time, or configure Telnet or STelnet to implement remote login.
- Console port
- Web system
For details about remote login through Telnet or STelnet, see Configuring Telnet Login or Configuring STelnet Login.
First Login Through the Console Port
You can log in to a switch that is powered on for the first time through the console port from a PC.
Pre-configuration Tasks
Before logging in to a device through the console port, you have completed the following tasks:
- Power on the switch.
- Prepare a console cable.
Prepare the terminal emulation software.
For details about how to use specific terminal emulation software, see the related software user guide or online help.
Procedure
- Connect the switch to a PC using a console cable. The RJ45 connector connects to the switch's console port, and the DB9 connector connects to the PC's serial port (COM), as shown in Figure 3-64.
If a maintenance terminal (PC) does not have a DB9 serial port, purchase a USB-to-DB9 cable that has a DB9 male connector with nuts. Connect the DB9 female connector of the console cable to the DB9 male connector, and connect the USB connector to the USB port of the maintenance terminal.
- Start the terminal emulation software on the PC. Create a connection, select the connection port, and set communication parameters.
Ensure that the communication parameters you set in the terminal emulation software are consistent with the default parameter settings of the switch's console port. Table 3-30 describes the default parameter settings of the switch's console port.
Table 3-30 Default settings for the switch's console portParameter
Default Setting
Baud rate
9600 bit/s
Flow control
No flow control
Parity
No parity check
Stop bits
1
Data bits
8
Because flow control is not performed on the device by default, you need to deselect RTS/CTS in the software; otherwise, commands cannot be entered.
- The following information is displayed, prompting you to set the password. The following information is for reference only.
An initial password is required for the first login via the console. Set a password and keep it safe. Otherwise you will not be able to login via the console. Please configure the login password (8-16) Enter Password: Confirm Password: Warning: The authentication mode was changed to password authentication and the user level was changed to 15 on con0 at the first us er login. Warning: There is a risk on the user-interface which you login through. Please change the configuration of the user-interface as soo n as possible. <HUAWEI>
- To ensure device security, change the password periodically.
- The password entered in interactive mode is not displayed on the screen.
First Login Through the Web System (Traditional Management Mode)
Context
If a switch uses the factory settings and you do not have the console communication cables, or no serial interface is available on the PC, you can use the web system to log in to the switch for the first time as follows:
- For a switch with the ETH management interface, directly connect the PC to the ETH management interface to implement the first login through the web system.
- For a switch with the MODE button, you can press and hold down the MODE button to implement the first login through the web system.
- If you have logged in to the switch for the first time by holding down the MODE button for 6 seconds or longer and saved the configuration, default configurations of the ETH management interface are cleared. You are advised to preferentially log in to the device for the first time through the ETH management interface.
First login through the web system, SVF, USB-based deployment, and EasyDeploy cannot be used together.
Pre-configuration Tasks
Before logging in to a device through the web system, complete the following tasks:
- The switch is powered on.
- The switch uses the factory settings.
Default Settings
Parameter |
Default Setting |
---|---|
User privilege level |
15 |
Login IP address |
192.168.1.253 NOTE:
For a switch that uses factory settings and has the ETH management interface, the default IP address of the ETH management interface is 192.168.1.253. For other switches, the default IP address configured for Vlanif1 is 192.168.1.253 after the MODE button is held down. |
Procedure
- Connect a PC to the switch.
When you log in to the device through the web system for the first time, do not connect the device through a serial port. If you perform any operation through the serial port, you cannot log in to the device through the web system for the first time.
Directly connect the PC to the ETH management interface on the switch using network cables to achieve the first login.
The default IP address of the ETH management interface on a switch is 192.168.1.253/24.
Connect the PC to any Ethernet electrical interface of the switch using network cables. Press and hold down the MODE button for 6 seconds or longer.
Connect the PC to any Ethernet electrical interface of the switch using network cables. Press and hold down the MODE button for 6 seconds or longer. When all indicators on the switch are steady green, the switch enters the initial configuration mode, and the default IP address configured for Vlanif1 of the switch is 192.168.1.253/24.
- If a switch has been configured when users press and hold down the MODE button for 6 seconds, all indicators blink green fast. In this case, the switch is restored to the normal state after 10 seconds, without affecting the existing configuration.
- If a switch using factory settings has just started or has been configured through the serial interface when users press and hold down the MODE button for 6 seconds, the switch may fail to enter the initial configuration mode. When all indicators blink fast for 10s, the switch is restored to the factory default state.
- A switch automatically exits the initial configuration mode and is restored factory settings if users have not saved the settings after 10 minutes.
- Configure an IP address for the PC.
To ensure that the PC and switch are routable to each other, configure an IP address on the same network segment as the switch's IP address for the PC.
- Log in to the switch through the web system.
Open the web browser on the PC, enter https://192.168.1.253 in the address bar, and press Enter. The web system user creation page is displayed, as shown in Figure 3-65. After a new user is created, the web system login page is displayed, as shown in Figure 3-66.
First login to a switch through the web system requires that the browser on the PC be Microsoft Edge, Internet Explorer 10.0, Internet Explorer 11.0, Firefox 85.0 to 89.0, and Google Chrome 82.0 to 91.0. If the browser version or browser patch version is not within the preceding ranges, the web page may not be properly displayed. Upgrade the browser and browser patch.
When you log in to the web system for the first time, change the password to access the home page of the web system.
- Enter the created user name and password.
The following operation varies depending on different login methods:
If you log in to the switch for the first time by connecting the PC to the ETH management interface of the switch, the web system configuration page is directly displayed for device maintenance.
If you log in to the switch for the first time by pressing and holding down the MODE button, the initial configuration page is displayed, as shown in Figure 3-67.
Click apply and save the configurations.
After you exit from the initial configuration page, either of the following situations occurs depending on the configured management IP address:- The configured management IP address and 192.168.1.253/24 are on the same network segment. When you log out of the first login page of the web system, the web system login page is displayed.
- The configured management IP address and 192.168.1.253/24 are on different network segments. When you log out of the first login page of the web system, you cannot log in to the switch through the web system. In this case, you need to re-configure the PC's IP address to make the PC and the switch routable to each other.
After performing basic settings listed in Table 3-32, you can log in to a switch through the web system. After the configurations are complete, you can log in to the switch through the web system. Table 3-33 describes the optional configurations. After the configurations are complete, you can log in to the switch through Telnet or STelnet.
Table 3-32 Basic settingsItem
Description
Management IP Address
Indicates the management IP address of the switch. The value is in dotted decimal notation.
NOTE:To prevent an IP address conflict on the network, you are advised to modify the default IP addresses of switches before logging in to the switches for the first time.
Mask
Indicates the mask of the IP address. Select a subnet mask from the drop-down list box.
WEB User Level
Indicates the web user privilege level. Select a user privilege level from the drop-down list box. This parameter is optional.
Only users of privilege level 3 or higher are administrators with management rights. Users of privilege level 3 or lower are monitoring users. Administrator users have all operation rights of a web page, and monitoring users can only perform ping and tracert operations.
Table 3-33 Optional settingsItem
Description
Device Name
Specifies the device name.
The device name cannot contain question marks (?) and cannot start with spaces.
Telnet Server
Sets the Telnet function: Enable or disable the Telnet function.
Stelnet Server
Sets the STelnet function: Enable or disable the STelnet function.
User Name
Specifies the Telnet or STelnet login user name.
The user name cannot contain / : * ? " < > | ' or %, and cannot start with @.
Password
Specifies the password.
A secure password should contain at least two types of the following: lowercase letters, uppercase letters, numerals, special characters (such as ! $ # %). In addition, the password cannot contain spaces or single quotation marks (').
Confirm Password
Confirms the password.
The format is the same as that of Password
User Level
Indicates the Telnet or STelnet user privilege level. Select a user privilege level from the drop-down list box.
Only users of privilege level 3 or higher are administrators with management rights. Users of privilege level 3 or lower are monitoring users. Administrator users have all operation rights of a web page, and monitoring users can only perform ping and tracert operations.
First Login Through the Web System (NETCONF Mode)
Context
First login to a switch in NETCONF mode is different from the first login to a switch in traditional management mode. This section describes how to log in to a switch through the web system for the first time after the device is switched to the NETCONF mode.
You can directly connect the PC to the ETH management interface or press and hold down the MODE button to log in to the device through the web system for the first time.
- For a switch with the ETH management interface, directly connect the PC to the ETH management interface to implement the first login through the web system.
- For a switch with the MODE button, press and hold down the MODE button to implement the first login through the web system.
- If you have logged in to the switch for the first time by holding down the MODE button for 6 seconds or longer and saved the configuration, default configurations of the ETH management interface are cleared. You are advised to preferentially log in to the device for the first time through the ETH management interface.
First login through the web system, SVF, USB-based deployment, and EasyDeploy cannot be used together.
Pre-configuration Tasks
Before logging in to a device through the web system, complete the following tasks:
- The switch is powered on.
- The switch uses the factory settings.
Default Settings
Parameter |
Default Setting |
---|---|
User level |
15 |
Login IP address |
192.168.1.253 NOTE:
|
Procedure
- Connect a PC to the switch.
When you log in to the device through the web system for the first time, do not connect the device through a serial port. If you perform any operation through the serial port, you cannot log in to the device through the web system for the first time.
Directly connect the PC to the ETH management interface on the switch using network cables to achieve the first login.
The default IP address of the ETH management interface on a switch is 192.168.1.253/24.
Connect the PC to any Ethernet electrical interface of the switch using network cables. Press and hold down the MODE button for 6 seconds or longer.
Connect the PC to the first Ethernet electrical interface of the switch using network cables. Press and hold down the MODE button for 6 seconds or longer. When all indicators on the switch are steady green, the switch enters the initial configuration mode, and the default IP address configured for Vlanif4094 of the switch is 192.168.1.253/24.
- If a switch has been configured when users press and hold down the MODE button for 6 seconds, all indicators blink green fast. In this case, the switch is restored to the normal state after 10 seconds, without affecting the existing configuration.
- If a switch using factory settings has just started or has been configured through the serial interface when users press and hold down the MODE button for 6 seconds, the switch may fail to enter the initial configuration mode. When all indicators blink fast for 10s, the switch is restored to the factory default state.
- A switch automatically exits the initial configuration mode and is restored to the factory settings if users have not saved the settings after one hour.
- Configure an IP address for the PC.
To ensure that the PC and switch are routable to each other, configure an IP address on the same network segment as the switch's IP address for the PC.
- Log in to the switch through the web system.
Open the web browser on the PC, enter https://192.168.1.253 in the address bar, and press Enter. The user creation page of the web system is displayed, as shown in Figure 3-68. After a new user is created, the login page of the web system is displayed, as shown in Figure 3-69.
First login to a switch through the web system requires that the browser on the PC be Microsoft Edge, Internet Explorer 10.0, Internet Explorer 11.0, Firefox 85.0 to 89.0, and Google Chrome 82.0 to 91.0. If the browser version or browser patch version is not within the preceding ranges, the web page may not be properly displayed. Upgrade the browser and browser patch.
When you log in to the web system for the first time, change the password to access the home page of the web system.
- Enter the created user name and password, and click GO or press Enter to access the web system page.
The following operation varies depending on different login methods:
If you log in to the switch for the first time by connecting the PC to the ETH management interface of the switch, the web system configuration page is directly displayed for device maintenance.
If you log in to the switch for the first time by pressing and holding down the MODE button, the initial configuration page of the web system is displayed, as shown in Figure 3-70.
Click apply and save the configurations. After you exit from the initial configuration page, the login page of the web system is displayed. You can log in to the switch again to maintain the switch.
On the initial configuration page, select the configuration management mode and click apply. The device automatically configures other management modes.