LAB - MANUAL & EXAMPLES

In this section command line interface ( C.L.I.) will be taken into consideration .
you can easily understand concepts by reading illustrated examples.


For any doubts in these example contact :
pawar121@gmail..com - withing 24 hour your query will be solved .


All these command are practised in a software CISCO PACKET TRACER .








COMMAND LINE INTERFACE 


·        To enter the hyper terminal

Programs à Accessories à Communication àHyperTerminal
(HyperTerminal window opens)
-prompts for the screen name (not the router name)
-connect to window à select com1 à ok
-com1 properties window à select restore default à ok


·         Switch ON the router (if new router that is not configured it will ask -----

Would u like to enter initial configuration dialog[yes/no]: no

Press return to get started (enter)

Router>                             
                         *  User Mode/User Executable Mode

Router> enable (enter)
Router#
              
*   Privileged Mode/Enable Mode – Executable Mode.
                                
  The following commands can be executed in this mode                     
            Router#show running-config(enter)
                     Router#debug xxx
            Router#copy xxx

Router#configure terminal(enter)
Router(config)#

*  Global Configuration Mode Any configuration change in this mode affects the whole router.

         Router(config)#interface e 0/fastethernet 0/  S0 / S 1(enter)
         Router(config-if)#

*  Specific Configuration Mode – configuration changes to specific part of the router like lines and interfaces.




·        Setting User mode Password

         Router(config)#Line console 0(enter)
         Router(config-line)#password xxxx
         Router(config-line)#login

·        To set username & password for the user mode

        Router(config)#username xxxx password xxxx
        Router(config)#Line console 0
        Router(config-line)#login local

·        To change the hostname

Router(config)#hostname HOR(enter)
HOR(config)#

·        T o encrypt all the passwords

         Router(config)#service password-encryption

·        To set password for the privileged mode

         Router(config)#enable password/secret xxxx

























QUESTIONS

1 .   What are the different modes in a router?

  • Router> ------------- User mode or the user executable mode
     Enable (enter)
          
  • Router# ---------- Privileged mode/Enable mode
                   Show running-config
                   Debug xxx
                   Ping A.B.C.D
           
  • Router# configure terminal (enter)
            Router(config)# ----------- Global configuration mode

  • Router(config)#interface ethernet 0/fastethernet 0/serial 0/ serial 1(enter)
  • Router(config)# line console 0
            Router(config-if/line)# ---------- Specific configuration mode

2 .  Difference between Login and Login Local?

  • Login activates the usermode entry password for a single user without username.

  • Login local activates the username and password for the same usermode, incase of multiple users.

3 .   How to encrypt our passwords?

  • Router(config)#service password-encryption – Encrypts all the passwords at a time. The passwords once encrypted, cannot be decrypted by any command.

4 .  How to set password to the user mode?

  • Router(config)#Line console 0(enter)
Router(config-line)#password xxxx
Router(config-line)#login - Login activates the usermode entry password for a single user without username.

5 .  How to set password to the privilege mode?

  • Router(config)#enable password/secret xxxx

6 .  How to set username and password to the user mode?

  • Router(config)#username xxxx password xxxx
  • Router(config-line)#login local - Login local activates the username and password for the same usermode, incase of multiple users.