How to configure the Telnet login function


You can log in to a switch through Telnet only when the switch has an IP address and the VTY user authentication method and VTY user level have been configured. By default, the preceding configurations are unavailable on the switch, and you must log in to the switch through the console interface and complete the configurations.

Perform the following configurations:
Set a management IP address for the switch.
# If the switch has a management interface, configure an IP address for the management interface.
[HUAWEI] interface meth 0/0/1
[HUAWEI-MEth0/0/1] ip address 24
[HUAWEI-MEth0/0/1] quit# If the switch has no management interface, configure an IP address for the WLANIF interface.
[HUAWEI] vlan 4094
[HUAWEI-vlan4094] quit
[HUAWEI] interface gigabitethernet 0/0/48
[HUAWEI-GigabitEthernet0/0/48] port link-type hybrid
[HUAWEI-GigabitEthernet0/0/48] port hybrid untagged vlan 4094
[HUAWEI-GigabitEthernet0/0/48] quit
[HUAWEI] interface vlanif 4094
[HUAWEI-Vlanif4094] ip address 24
[HUAWEI-Vlanif4094] quit
Configure reachable routes between the PC and switch so that the PC can successfully ping the switch.

If the PC is directly connected to the switch, ensure that the IP address of the PC is in the same network segment as the management IP address of the switch.

If the PC is not directly connected to the switch, configure reachable routes between the PC and switch.
Set the authentication mode for Telnet login to AAA.
[HUAWEI] user-interface vty 0 4
[HUAWEI-ui-vty0-4] authentication-mode aaa
[HUAWEI-ui-vty0-4] quit
Configure the Telnet login user parameters. Set the user name and password to admin@6789, and user level to 3.
[HUAWEI] aaa
[HUAWEI-aaa] local-user admin password irreversible-cipher admin@6789
[HUAWEI-aaa] local-user admin privilege level 3
[HUAWEI-aaa] local-user admin service-type telnet

Other related questions:
Method for configuring Telnet login to the USG6000 series
To understand how to log in to the USG6000 series through Telnet, log in to Huawei Enterprise Service Support website, view or download the product document based on the product model and version, and search the product document for the following case: Configuring Telnet Login to the CLI.

Configuring Telnet login on the USG2000&5000
For details on how to configure Telnet login on the USG2000&5000, visit the Huawei enterprise website. View or download the desired product documentation by the device model and version. For example, search for "Logging in to the device through Telnet" in the product documentation.

If you have more questions, you can seek help from following ways:
To iKnow To Live Chat
Scroll to top