首先通过console端口连接到交换机或者使用曾经配置过的telnet登录确保权限
1.认证方式为none的telnet
[h3c]telnet server enable !--开启telnet服务功能
[h3c]user-interface vty 0 !--进入vty0用户界面视图
[h3c-ui-vty0]authentication-mode none !--配置登录不要密码认证
[h3c-ui-vty0]user privilege level 2 !--用户界面可访问的界面命令级别为2
[h3c-ui-vty0]protocol inbound telnet !--支持telnet协议
[h3c-ui-vty0]screen-lenth 30 !--用户终端界面一屏幕显示30行命令
[h3c-ui-vty0]history-command max-size 20 !--命令历史缓冲20条
[h3c-ui-vty0]idle-timeout 6 !--设置用户界面超时时间6分钟
[h3c-ui-vty0]save
2.认证方式为password的telnet
[h3c]telnet server enable !--开启telnet服务功能
[h3c]user-interface vty 0 !--进入vty0用户界面视图
[h3c-ui-vty0]authentication-mode password !--配置登录要密码认证
[h3c-ui-vty0]set authentication password simple 123456 !--设置密码并以明文显示,需要加密使用cipher
[h3c-ui-vty0]user privilege level 2 !--用户界面可访问的界面命令级别为2
[h3c-ui-vty0]protocol inbound telnet !--支持协议telnet、ssh、all选一个
[h3c-ui-vty0]screen-lenth 30 !--用户终端界面一屏幕显示30行命令
[h3c-ui-vty0]history-command max-size 20 !--命令历史缓冲20条
[h3c-ui-vty0]idle-timeout 6 !--设置用户界面超时时间6分钟
[h3c-ui-vty0]save
3.认证方式为Scheme的telnet登录
[h3c]local-user elvhome !--创建本地用户视图,默认无
[h3c-luser-elvhome]password simple 123456 !--配置用户密码
[h3c-luser-elvhome]service-type telnet 2 !--vty用户类型及登录级别
[h3c-luser-elvhome]quite !--退出本地用户配置,返回系统视图
[h3c]user-interface vty 0 !--进入vty0用户界面视图,多个同时进入 0-4
[h3c-ui-vty0]authentication-mode scheme !--配置登录为scheme认证
[h3c-ui-vty0]set authentication password simple 123456 !--设置密码并以明文显示,需要加密使用cipher
[h3c-ui-vty0]user privilege level 3 !--用户界面可访问的界面命令级别为3
[h3c-ui-vty0]protocol inbound telnet !--支持telnet协议
[h3c-ui-vty0]screen-lenth 30 !--用户终端界面一屏幕显示30行命令
[h3c-ui-vty0]history-command max-size 20 !--命令历史缓冲20条
[h3c-ui-vty0]idle-timeout 6 !--设置用户界面超时时间6分钟
[h3c-ui-vty0]save





