Lab 2: Security Router

   -----                 
  | R1  |                
   -----                 
f0/0 │ .254              
     │                   
     │                   
     │   192.168.10.0/24 
     │                   
 .1  │                   
    __  _                
   [__]|=|               
   /++/|_|               
    PC 1        
  
! Set console password
R1(config)#line console 0
R1(config-line)#password 123
R1(config-line)#login

! Delete console password
R1(config)#line console 0
R1(config-line)#no password 123
R1(config-line)#no login


! Privilege password :
   + enable password
   + secret password
   
! Set enable password
R(config)#enable password 456 ! clear text

! Delete enable password
R(config)#no enable password 

! Set secret password
R(config)#enable secret 789 ! hash (MD5)

! Delete secret password
R(config)#no enable secret 
		            	
! Service password encryption (encrypts all clear text password to MD7)
R1(config)#service password-encryption 

! Stop encryption service 
R1(config)#no service password-encryption


! Set banner motd
R1(config)# banner motd #
-----------
CCNA motd
-----------
#

! Delete banner motd
R1(config)# no banner motd

! Set banner login
R1(config)# banner login #
------------
CCNA login
------------
#

! Delete banner login
R1(config)# no banner login

! Telnet
R1(config)#line vty 0 4
R1(config-line)#password abc   
R1(config-line)#transport input telnet
R1(config-line)#login

R1(config)#enable secret cisco

! Disable Telnet
R1(config)#line vty 0 4
R1(config-line)#no password abc   
R1(config-line)#no login


! Telnet without password
R1(config)#line vty 0 4
R1(config-line)#privilege level 15
R1(config-line)#transport input telnet
R1(config-line)#no login