Got it

【FAQ】How to configure telnet to login SW

Latest reply: Apr 18, 2020 14:29:56 6736 3 0 0


Does anyone know how to configure telnet to login SW.



  • x
  • convention:

Created Dec 9, 2012 13:38:34 Helpful(0) Helpful(0)


Equipment first power on must use Console port login, use the Console port login equipment way is the premise to realize the other way login. For example use Telnet login equipment IP address, need to configure after the Console portlogin in advance. Use serial cable to connect PC COM port and SW Console port, and make configuration.
1. Configure the management IP address of equipment (refer 1.1).
2. configure the router of PC and SW is reachable, and can ping.
If the PC and SW are direct connection, set PC address as the same network segment with SW management address; If the PC and SW are not direct connection, should configure corresponding route.
3. Configure SW Telnet verification mode is AAA the authentication[Quidway]user-interface vty 0 4 [Quidway-ui-vty0-4]authentication-mode aaa
4. Configure telnet login user parameter, username, password and privilege and so on. [Quidway]aaa // enter AAA view [Quidway-aaa]local-user admin password cipher admin//configure local-user admin,password is admin [Quidway-aaa]local-user admin privilege level 3 //configure user admin privilege level is 3 [Quidway-aaa]local-user admin service-type telnet //configure user admin service-type telnet
If do not configure user admin privilege level, it is 3 by default.(0—visit level, 1 –monitor level, 2—configure level, 3—management level )

Hope to help you!

View more
  • x
  • convention:

Created Apr 18, 2020 14:14:01 Helpful(10) Helpful(10)

thank you for sharing
View more
  • x
  • convention:

MVE Created Apr 18, 2020 14:29:56 Helpful(0) Helpful(0)

Hi friend!

Configuration Roadmap
The configuration roadmap is as follows:

1. Log in to the device using Telnet to remotely maintain the device.
2. Configure the administrator user name and password, and configure an AAA authentication policy to ensure that only users passing the authentication can log in to the device.
1. Enable the server function.
<HUAWEI> system-view
[HUAWEI] sysname Telnet_Server
[Telnet_Server] telnet server enable
2. Set parameters for the VTY user interface.
# Set the maximum number of VTY user interfaces.

[Telnet_Server] user-interface maximum-vty 15
# Set terminal attributes for the VTY user interface.

[Telnet_Server] user-interface vty 0 14
[Telnet_Server-ui-vty0-14] protocol inbound telnet
[Telnet_Server-ui-vty0-14] shell
[Telnet_Server-ui-vty0-14] idle-timeout 20
[Telnet_Server-ui-vty0-14] screen-length 0
[Telnet_Server-ui-vty0-14] history-command max-size 20
# Set an authentication mode for the VTY user interface.

[Telnet_Server-ui-vty0-14] authentication-mode aaa
[Telnet_Server-ui-vty0-14] quit
3. Configure the login user information.
# Set an authentication mode for login users.

[Telnet_Server] aaa
[Telnet_Server-aaa] local-user admin1234 password irreversible-cipher Helloworld@6789
[Telnet_Server-aaa] local-user admin1234 service-type telnet
[Telnet_Server-aaa] local-user admin1234 privilege level 3
[Telnet_Server-aaa] quit
4. Log in to the client.
Run commands on the Windows Command Prompt of the PC to log in to the device using Telnet.
C:\Documents and Settings\Administrator> telnet 23
Press Enter, and enter the configured user name and password in the login window. If authentication succeeds, the CLI is displayed, indicating that you have successfully logged in to the device. (The following information is only for reference.)

Login authentication

Info: The max number of VTY users is 15, and the number
     of current VTY users on line is 2.
     The current login time is 2012-08-06 10:33+00:00.
Configuration File
Telnet server configuration file

sysname Telnet_Server
telnet server enable
local-user admin1234 password irreversible-cipher $1a$aVW8S=aP=B<OWi1Bu'^R[=_!~oR*85r_nNY+kA(I}[TiLiVGR-i/'DFGAI-O$
local-user admin1234 privilege level 3
local-user admin1234 service-type telnet
user-interface maximum-vty 15
user-interface vty 0 14
authentication-mode aaa
history-command max-size 20
idle-timeout 20 0
screen-length 0
protocol inbound telnet

View more
  • x
  • convention:


You need to log in to comment to the post Login | Register

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " Privacy."

My Followers

Login and enjoy all the member benefits


Huawei Enterprise Support Community
Huawei Enterprise Support Community
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Please bind your phone number to obtain invitation bonus.