<Huawei>system-view #进入系统视图
Enter system view, return user view with Ctrl+Z.
[Huawei]telnet server enable #配置开启telnet(默认开启)
Info: The Telnet server has been enabled.
[Huawei]telnet server port 23 #配置telnet端口(默认为23)
Info: The port is already bound to the Telnet server.
[Huawei]user-interface vty 0 4 #进入vty用户界面视图
[Huawei-ui-vty0-4]authentication-mode ? #用户验证方式(aaa验证、passwd验证、none不验证)
aaa AAA authentication
none Login without checking
password Authentication through the password of a user terminal interface
[Huawei-ui-vty0-4]authentication-mode aaa #配置验证模式为aaa
[Huawei-ui-vty0-4]quit #退出用户界面视图
[Huawei]aaa #进入aaa验证
[Huawei-aaa]local-user huawei password cipher huawei #设置登陆用户和密码
Info: Add a new user.
[Huawei-aaa]local-user huawei privilege level 3 #配置用户级别
[Huawei-aaa]local-user huawei service-type telnet#配置用户登陆方式
[Huawei]user-interface vty 0 4
[Huawei-ui-vty0-4]authentication-mode password #配置验证方式为password
[Huawei-ui-vty0-4]set authentication password cipher huawei #配置验证密码
[Huawei-ui-vty0-4]user privilege level 3 #配置用户级别
[Huawei-ui-vty0-4]authentication-mode none
6.telnet登陆
aaa验证方式,通过telnet交换机ip地址,需要输入用户名密码才能登陆
passwd验证方式,需要输入密码
none验证方式,直接进入