Friday, January 8, 2010

Enable Remote Access on Cisco Router

Before using these commands, make sure that your interfaces are up and has proper IP Addresses.

MyRouter con0 is now available


Press RETURN to
get started.


MyRouter>en
--Enable Mode
MyRouter#config t
--Global Configuration Mode
Enter configuration
commands, one per line. End with CNTL/Z.
MyRouter(config)#line vty 0
4
--Interface Configuration
mode
.
MyRouter(config-line)#login
--Enable Authentication
% Login disabled on
line 66, until 'password' is set
% Login disabled on line 67, until
'password' is set
% Login disabled on line 68, until 'password' is set
%
Login disabled on line 69, until 'password' is set
% Login disabled on line
70, until 'password' is set
MyRouter(config-line)#password cisco
--Set Telnet Password
MyRouter(config-line)#logging synchronous
--Avoid interruption made by system
messages

MyRouter(config-line)#exit
--Exit Interface Configuration Mode
MyRouter(config)#exit
--Exit Global Configuration Mode
%SYS-5-CONFIG_I: Configured from console by console
MyRouter#


If you want to use SSH as access protocol instead of telnet, issue "transport input ssh" into Interface Configuration Mode. only this command will not enable ssh. you need to assign a hostname, domain name to the router. you also need to create a cryptographic key for SSH.

Change Cisco Hostname

Press RETURN to get started!

Router>en
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname MyRouter
MyRouter(config)#

Windows 7 Taskbar View