Archive for the ‘ CISCO ’ Category

How to configure router by using CLI mode………

I am doing my CCNA course from Cisco Local Academy RUET. Today our Cisco teacher tought us how configure a router by using CLI command mode. thats I like to share with you……………… I learned to configure by two method  1st is config mode it is very easy everyone can configure by this method using mouse click but it is not right procedure because practically it is not possible so our sir tought us by using CLI mode……..Now I will discuss how to configure router by using CLI mode….you have to mind it that today was my 1st class about this topics to it may some mistake, If you get some mistake then please inform me………

At first we have to enter the router through a router port from a networking computer(which is connected to network) to do this we will use console mode(command promod) and write a command telnet ip address of router ……

  example if fast ethernet ip address is 172.16.3.61 then we will write

telnet 172.16.3.61      //then press enter

after pressing enter then asking password you must know the port password by which you want to enter the router….to give the password you may use the following command

CCNA(config)#li
CCNA(config)#line co
CCNA(config)#line console 0
CCNA(config-line)#pass
CCNA(config-line)#password cisco
CCNA(config-line)#log
CCNA(config-line)#login
CCNA(config-line)#exit
CCNA(config)#li
CCNA(config)#line vty 0
CCNA(config-line)#pass
CCNA(config-line)#password cisco
CCNA(config-line)#log
CCNA(config-line)#login
CCNA(config-line)#exit
CCNA(config)#en
CCNA(config)#ser
CCNA(config)#service en
CCNA(config)#service ?
  password-encryption  Encrypt system passwords

 

//in the following command cisco is given password

after entering the router you can configure by writting following command. At first you have to enable  the router
Router>en
Router>enable
Router#?
Exec commands:
  <1-99>      Session number to resume
  clear       Reset functions
  clock       Manage the system clock
  configure   Enter configuration mode
  connect     Open a terminal connection
  copy        Copy from one file to another
  debug       Debugging functions (see also ‘undebug’)
  delete      Delete a file
  dir         List files on a filesystem
  disable     Turn off privileged commands
  disconnect  Disconnect an existing network connection
  enable      Turn on privileged commands
  erase       Erase a filesystem
  exit        Exit from the EXEC
  logout      Exit from the EXEC
  no          Disable debugging informations
  ping        Send echo messages
  reload      Halt and perform a cold restart
  resume      Resume an active network connection
  setup       Run the SETUP command facility
  show        Show running system information
  telnet      Open a telnet connection
  traceroute  Trace route to destination
  undebug     Disable debugging functions (see also ‘debug’)
  write       Write running configuration to memory, network, or terminal

Router#conf
Router#configure t
Router#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#int
Router(config)#interface fa
Router(config)#interface fastEthernet0/0
Router(config-if)#ip add
Router(config-if)#ip address 172.16.1.254 255.255.255.0
Router(config-if)#no sh do
Router(config-if)#no sh down

%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
Router(config-if)#no
Router(config-if)#no sh
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#int
Router(config)#interface se
Router(config)#interface serial2/0
Router(config-if)#ip add
Router(config-if)#ip address 172.16.3.1 255.255.255.0
Router(config-if)#no sh
Router(config-if)#no shutdown

I pasted the following code from my concole command mode it may have some mistake if you find then inform me ………..  sorry i am very busy for my class test exam so recently i will update it ……….and will write with full feature.

Advertisements