Reference : www.cisco.com

Configuring Command-Line Access to the Router

RouterNR-1>en
RouterNR-1#configure ter
Enter configuration commands, one per line. End with CNTL/Z.

RouterNR-1(config)#line vty 0 4
RouterNR-1(config-line)#password cat12345
RouterNR-1(config-line)#login
RouterNR-1(config-line)#end
RouterNR-1#wr

Configuring Command-Line Enable Password

RouterNR-1#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.

RouterNR-1(config)#username tpk password cat12345
RouterNR-1(config)#enable secret cat12345
RouterNR-1(config)#service password-encryption

Configuring Command-Line Set domain-name

RouterNR-1(config)#ip domain-name cattelecom.com

Configuring Command-Line Generate the RSA Keys

RouterNR-1(config)#crypto key generate rsa
The name for the keys will be: RouterNR-1.cattelecom.com
Choose the size of the key modulus in the range of 360 to 4096 for your
General Purpose Keys. Choosing a key modulus greater than 512 may take
a few minutes.

How many bits in the modulus [512]:
% Generating 512 bit RSA keys, keys will be non-exportable…
[OK] (elapsed time was 0 seconds)

RouterNR-1(config)#
*May 25 03:19:01.783: RSA key size needs to be atleast 768 bits for ssh version 2
*May 25 03:19:01.783: %SSH-5-ENABLED: SSH 1.5 has been enabled
RouterNR-1(config)#

Configuring Command-Line Interface Loopback
RouterNR-1(config)#interface loopback 0
*May 25 03:29:35.527: %LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback0, changed state to
updd
RouterNR-1(config-if)#ip address 10.180.3.102 255.255.255.0
RouterNR-1(config-if)#end
RouterNR-1#wr
RouterNR-1#show running-config interface loopback 0
Building configuration…

Current configuration : 66 bytes
!
interface Loopback0
ip address 10.180.3.102 255.255.255.0
end

RouterNR-1#

 

Advertisements