Huawei switches enable Telnet service and modify ports

1. Use password authentication method:

<Huawei>system-view Enter system view

[Huawei]telnet server enable //Enable Telnet service

[Huawei]user-interface vty 0 4 //Try to enter VTY

[Huawei-ui-vty0-4]authentication-mode password //Set the authentication mode to password

Please configure the login password (maximum length 16):mf88855514   //Enter the password

[Huawei-ui-vty0-4]user privilege level 15 // Set level (0-15)

[Huawei-ui-vty0-4]protocol inbound telnet //Specify the protocol supported by the VTY user interface as Telnet

2. Use the user name and password authentication method (AAA)

<Huawei>system-view Enter system view

[Huawei]telnet server enable //Enable Telnet service

[Huawei]user-interface vty 0 4 //Try to enter VTY

[Huawei-ui-vty0-4]authentication-mode aaa //Set the authentication mode to aaa

[Huawei-ui-vty0-4]protocol inbound telnet //Specify the protocol supported by the VTY user interface as Telnet

[Huawei]aaa //Try to enter AAA

[Huawei-aaa]local-user mingfeng password cipher mf88855514 //Set the user name (mingfeng) and password (mf88855514)

Info: Add a new user.

[Huawei-aaa]local-user mingfeng service-type telnet //Set the user mingfeng access type to Telnet

[Huawei-aaa]local-user mingfeng privilege level 15 //Set the level of local user mingfeng to 15 (0-15), default to 0

3. View Telnet port status

[Huawei]display telnet server status 

 TELNET IPV4 server                      :Enable

 TELNET IPV6 server                      :Enable

 TELNET server port                      :23

4. Modify Telnet port

[Huawei]telnet server port 2323 //The default port is 23

[Huawei]dis telnet server status 

 TELNET IPV4 server                      :Enable

 TELNET IPV6 server                      :Enable

 TELNET server port                      :2323


Guess you like

Origin blog.51cto.com/2764044/2596526