How to Configurate Telnet Login for Huawei Switch? 22 Oct, 2025. Posted by:XPONSHOP

This blog will give a step on step guide on how to configurate Telnet login for Huawei Switch.

1. Identify Switch Model and Version

Different switch models and versions may require unique command lines or steps for Telnet configuration. To find the model and version of your switch, please use the following commands:

display curr
display version

Example output:
Switch model: S1730S-S24P4S-A2
Version: S1730 V200R021C01SPC200

2. Refer to Documentation

Consult the FutureMatrix S1700 HedEx document to locate the R21 version guide for Telnet login.

 

3. Console Cable Requirement

A console cable is necessary, and ensure that console login to the switch is operational. This is a mandatory requirement before configuring Telnet.

4. Configuring Telnet Login

With the prerequisites met, you can now proceed with the Telnet configuration.

Table 1 Telnet login configuration

operate

XPATH

edit-config/huawei-device:device/servers/telnet-server

 

Table 2 Telnet login configuration

project

data

description

Telnet Service FunctiontrueEnable the Telnet server function.
Telnet server port number23The Telnet server port number is set to 23.

 Request Example

<?xml version='1.0' encoding='UTF-8'?><rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="3">
  <edit-config>
    <target>
      <running/>
    </target>
    <config>
      <dev:device xmlns:dev="urn:huawei:params:xml:ns:yang:huawei-device">
        <dev:servers>
          <dev:telnet-server>
            <dev:enabled>true</dev:enabled>
            <dev:service-port>23</dev:service-port>
          </dev:telnet-server>
        </dev:servers>
      </dev:device>
    </config>
  </edit-config></rpc>

Example Response

Configuration Success Response Example

<?xml version='1.0' encoding='UTF-8'?><rpc-replyxmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="0">
 <ok/></rpc-reply>

Configuration failure response example

<?xml version='1.0' encoding='UTF-8'?><rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="3">
  <rpc-error>
    <error-type>application</error-type>
    <error-tag>operation-failed</error-tag>
    <error-severity>error</error-severity>
    <error-path>/huawei-device:device/servers/telnet-server/enabled</error-path>
    <error-message>parse rpc config error.(Invalid value in "enabled" element.).</error-message>
  </rpc-error></rpc-reply>
5. Troubleshooting Tips

If you encounter issues with Telnet access, consider the following troubleshooting steps:

  1. Check IP Connectivity: Ensure that the switch is reachable via its IP address from the Telnet client.

  2. Verify VTY Configuration: Double-check the VTY interface configuration to confirm that the correct settings are applied.

  3. Firewall Settings: Make sure there are no firewall rules blocking Telnet traffic on the network.

Configuring Telnet login on a Huawei Switch requires careful attention to detail, especially with respect to the specific model and version of the switch. By following this guide, you should be able to set up Telnet access effectively, allowing for remote management of the switch.

If you encounter any Telnet login issues in huawei switches or any project inquiry, please email us at sales@xponshop.com.

Comments
Leave a comment
Post comment
About XponShop blog describes some basics for Huawei / ZTE / Nokia / FiberHome GPON OLT, ONT, SFP, and Site Power... such as configurations, issue troubleshooting, knowledge sharing, and keeps updating.
Products from the blog