Telnet(前提pc可以ping通设备)

# 配置VTY用户界面的最大个数。
[Telnet_Server]user-interface maximum-vty 15
# 配置VTY用户界面的终端属性。
[Telnet_Server]user-interface vty 0 14
[Telnet_Server-ui-vty0-14]protocol inbound telnet
[Telnet_Server-ui-vty0-14]shell
[Telnet_Server-ui-vty0-14]idle-timeout 20
[Telnet_Server-ui-vty0-14]screen-length 0
[Telnet_Server-ui-vty0-14]history-command max-size 20
# 配置VTY用户界面的用户验证方式。
[Telnet_Server-ui-vty0-14]authentication-mode aaa
[Telnet_Server-ui-vty0-14]quit
配置登录用户的相关信息
# 配置登录验证方式。
[Telnet_Server]aaa
[Telnet_Server-aaa]local-user admin1234 password cipher lizhiwei
[Telnet_Server-aaa]local-user admin1234 service-type telnet
[Telnet_Server-aaa]local-user admin1234 privilege level 3
[Telnet_Server-aaa] quit
#登陆测试

网友评论