首先配置好telnet和console的访问,然后进入配置模式

ip http server

ip http secure-server

ip http authentication local

user name <cisco> privilege 15 password 0 <cisco>  配置用户为cisco,密码cisco

line vty 0 4

privilege level 15

login local

transport input telent

transport input telnet ssh

可选 logging buffered 51200 warning