Configuration
Use the following commands to enable telnet access to the router.
First check how many virtual terminal router supports.
(Depending on the router model, the output might be different)
Router#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)#line vty 0 ? <1-4> Last Line number
Enable access to virtual terminals and set the “cisco” as the password to access user mode:
Router(config)#line vty 0 4 Router(config-line)#password cisco Router(config-line)#login
Enable access to virtual terminals and set the “cisco” as the password to access CONFIG mode:
Router(config)#line vty 0 4 Router(config-line)#login local Router(config-line)#end Will use username and password set at congif level: Router(config)#username [my_username] privilege 15 password [my_password]
Verification
To verify use the following command
Router#show line Tty Typ Tx/Rx A Modem Roty AccO AccI Uses Noise Overruns Int * 0 CTY - - - - - 0 0 0/0 - 97 AUX 9600/9600 - - - - - 0 0 0/0 - 98 VTY - - - - - 1 0 0/0 - 99 VTY - - - - - 0 0 0/0 - 100 VTY - - - - - 0 0 0/0 - 101 VTY - - - - - 0 0 0/0 - 102 VTY - - - - - 0 0 0/0 - Line(s) not in async mode -or- with no hardware support: 1-96 Router#
Thats it. Now you can access the router remotely using telnet.
Disable telnet:
Router(config)#no line vty 0 4