1. Configure an IP address on the router that is connected to the switch: for example, 192.168.1.1 24
2. Configure the following on the switch:
<switch>system-view
[Switch]vlan 10
[Switch-vlan10]quit
[Switch]interface VLAN 10
[switch-vlanif 10]IP Address 192.168.1.2 24//Guarantee and router IP on the same network segment
[Switch-vlanif 10]quit
[Switch]interface Ethernet 0/0/1
[Switch-interface Ethernet 0/0/1]port hybrid untagged VLAN//untag way to join VLAN10
[Switch-interface Ethernet 0/0/1]quit
After the above configuration is done, 192.168.1.1 and 192.168.1.2 should be able to ping each other on the router and switch.
3. Then configure the telnet login command on the switch:
[SWITCH]AAA
[Switch-aaa]local-user admin Password Simple admin//2 admin is the account password, you can set your own
[Switch-aaa]local-user Admin Privilege Level 3//Set account levels, 3 for superlative
[Switch-aaa]local-user service-type telnet//Set local account service type is Telnet
[Switch-aaa]quit
[Switch]user-interface vty 0 4
[Switch-user-vty0-4]authentication-mode AAA//Set Login user authentication mode is AAA, set account password in just set up account
[Switch-user-vty0-4]protocol bind all//BIND user Agreement for all, including Telnet/ftp/ssh. This is the user interface that is used when logging on to the switch in these ways.
[Switch-user-vty0-4]quit
OK, working Gaocheng. It should be possible to telnet to the switch at this time. Follow my steps, the first step to the back is no problem, I have done N. All of them are hand-punched, hoping to help you.
Huawei Switch Telnet configuration