class 13 - Basic Commands in Router Thursday, July 05, 2007

download class 13 - Basic Commands in Router Thursday, July 05, 2007

of 33

Transcript of class 13 - Basic Commands in Router Thursday, July 05, 2007

  • 8/6/2019 class 13 - Basic Commands in Router Thursday, July 05, 2007

    1/33

    Basic Commands in Router

  • 8/6/2019 class 13 - Basic Commands in Router Thursday, July 05, 2007

    2/33

    E ntraining to the US E R EXE C mode

    User Ex ec Mode (User Mode) it a entry point toconfigure the routers.

    From user e x ec mode we cannot make changesin the router

    We can set password to protect the anonymous

    user to get into this modeThe prompt :

    Host Name>

  • 8/6/2019 class 13 - Basic Commands in Router Thursday, July 05, 2007

    3/33

    E ntraining to the privileged mode

    In privilege Mode we can view the configuration

    Copy the configurations

    Set few configurations

    The prompt :

    Host name >enableHost name#

  • 8/6/2019 class 13 - Basic Commands in Router Thursday, July 05, 2007

    4/33

    E ntraining to the Global Configurationmode

    In Global Configuration Mode we can make globalchanges in the router configuration

    In it also called as Power Mode because the commandwe apply will affect the entire router configuration

    The prompt :

    Host Name>enable

    Host Name#configure terminal

    Host Name(config)#

  • 8/6/2019 class 13 - Basic Commands in Router Thursday, July 05, 2007

    5/33

    E ntraining to the interface mode

    Interface mode helps us to configure an interfacein the ROUT E R

    The prompt :Host Name >enable

    Host Name#configure terminal

    Host Name(config)#interface e0

    Host Name(config-if)#

  • 8/6/2019 class 13 - Basic Commands in Router Thursday, July 05, 2007

    6/33

    Command to set the time and date

    Host Name #clock set hh:min:sec dd mmyyyy

    Host Name #clock set 20:56:12 25 09 2004

  • 8/6/2019 class 13 - Basic Commands in Router Thursday, July 05, 2007

    7/33

    Command to check the time and date set

    Host Name # show clock

  • 8/6/2019 class 13 - Basic Commands in Router Thursday, July 05, 2007

    8/33

    Command to display recently typedcommands

    Host Name # show history

  • 8/6/2019 class 13 - Basic Commands in Router Thursday, July 05, 2007

    9/33

    Command to set the history size

    Host Name # terminal history size

  • 8/6/2019 class 13 - Basic Commands in Router Thursday, July 05, 2007

    10/33

    Command to view the configuration of

    the router Host Name # show version

    Aita# show versionCisco Internetwork Operating System SoftwareIOS (tm) 2500 Software (C2500-JS-L), Version 12.0(3), RELEASE SOFTWARE (fc1)Copyright (c) 1986-1999 by cisco Systems, Inc.Compiled Mon 08-Feb-99 18:18 by phanguyeImage text-base: 0x03050C84, data-base: 0x00001000

    ROM: System Bootstrap, Version 11.0(10c), SOFTWAREBOOTFLASH: 3000 Bootstrap Software (IGS-BOOT-R), Version 11.0 router up tme is 20 minutes

    System restarted by reloadSystem image file is "flash:c2500-js-l_120-3.bin"

    Configuration register is 0x2102

  • 8/6/2019 class 13 - Basic Commands in Router Thursday, July 05, 2007

    11/33

    Command to set a privilege password

    Host Name (config)#enable password

    Host Name>enable

    Host Name #config terminalHost Name (config)# enable password cisco

  • 8/6/2019 class 13 - Basic Commands in Router Thursday, July 05, 2007

    12/33

    Command to set a encrypted privilege password

    Host Name (config)#enable secret

    Host Name >enableHost Name #config terminalHost Name (config)# enable secret cisco

  • 8/6/2019 class 13 - Basic Commands in Router Thursday, July 05, 2007

    13/33

    Command to set a user-mode password

    Host Name (config)#line console 0

    Host Name (config-line)#login

    Host Name (config-line)#password

    Host Name (config)# line console 0Host Name (config-line)# loginHost Name (config-line)# password aita

  • 8/6/2019 class 13 - Basic Commands in Router Thursday, July 05, 2007

    14/33

    Command to manually encrypt the password

    Host Name (config)#service password-encryption

  • 8/6/2019 class 13 - Basic Commands in Router Thursday, July 05, 2007

    15/33

    Command to disable the manually encrypt the password

    Host Name (config)# no service password-encryption

  • 8/6/2019 class 13 - Basic Commands in Router Thursday, July 05, 2007

    16/33

    Command to set Banner

    Host Name (config)#banner motd #message #

  • 8/6/2019 class 13 - Basic Commands in Router Thursday, July 05, 2007

    17/33

    Configuring an InterfaceConfiguring an Interface

    RouterA(config)# interface type port-number

    RouterA(config-if)#

  • 8/6/2019 class 13 - Basic Commands in Router Thursday, July 05, 2007

    18/33

    Command to set clock rate for a interface

    Host Name (config)#interface e0

    Host Name (config-if)#clock rate

    RouterA(config-if)# clock rate 64000RouterA(config-if)#

  • 8/6/2019 class 13 - Basic Commands in Router Thursday, July 05, 2007

    19/33

    Command to set Band width to an interface

    Host Name (config)#interface e0

    Host Name (config-if)#bandwidth

    RouterA(config-if)# bandwidth 64

    RouterA(config-if)# exitRouterA(config)# exitRouterA#

  • 8/6/2019 class 13 - Basic Commands in Router Thursday, July 05, 2007

    20/33

    Command to set hostname to a router

    Host Name (config)#hostname

  • 8/6/2019 class 13 - Basic Commands in Router Thursday, July 05, 2007

    21/33

    Command to display the running-configuration

    Host Name #show running-configuration

  • 8/6/2019 class 13 - Basic Commands in Router Thursday, July 05, 2007

    22/33

    Command to display the startup-configuration

    Host Name #show running-configuration

  • 8/6/2019 class 13 - Basic Commands in Router Thursday, July 05, 2007

    23/33

    Command to copy the configuration from running-configuration to startup-configuration

    Host Name #copy running-config startup-config

    Host Name >enableHost Name #copy running-config startup-configDestination filename [startup-config]?Building configuration

    Host Name #

  • 8/6/2019 class 13 - Basic Commands in Router Thursday, July 05, 2007

    24/33

    Command to assign a ip address to an interface

    Host Name #config terminal

    Host Name (config)#interface e0

    Host Name (config-if)#ip address

    Host Name (config-if)#no shutdown

  • 8/6/2019 class 13 - Basic Commands in Router Thursday, July 05, 2007

    25/33

    Command to display the information about an interface

    Host Name #show interface e0Router# show interface serial 0Serial0 is up, line protocol is up

    Hardware is HD64570Internet address is 10.140.4.2/24

    MTU 1500 bytes, BW 64 Kbit, DLY 20000 usec, rely 255/255, load 1/255Encapsulation HDLC, loopback not set, keepalive set (10 sec)Last input 00:00:09, output 00:00:04, output hang neverLast clearing of "show interface" counters neverInput queue: 0/75/0 (size/max/drops); Total output drops: 0Queueing strategy: weighted fairOutput queue: 0/1000/64/0 (size/max total/threshold/drops)

    Conversations 0/1/256 (active/max active/max total)Reserved Conversations 0/0 (allocated/max allocated)

    5 minute input rate 0 bits/sec, 0 packets/sec5 minute output rate 0 bits/sec, 0 packets/sec

  • 8/6/2019 class 13 - Basic Commands in Router Thursday, July 05, 2007

    26/33

    Command to display the information about all the

    Host Name #show interface

    Router# show interfaceEthernet0 is up, line protocol is up

    Hardware is Lance, address is 00e0.1e5d.ae2f (bia 00e0.1e5d.ae2f)Internet address is 10.1.1.11/24MTU 1500 bytes, BW 10000 Kbit, DLY 1000 usec, rely 255/255, load 1/255Encapsulation ARPA, loopback not set, keepalive set (10 sec)ARP type: ARPA, ARP Timeout 04:00:00Last input 00:00:07, output 00:00:08, output hang neverLast clearing of "show interface" counters neverQueueing strategy: fifoOutput queue 0/40, 0 drops; input queue 0/75, 0 drops5 minute input rate 0 bits/sec, 0 packets/sec5 minute output rate 0 bits/sec, 0 packets/sec

    81833 packets input, 27556491 bytes, 0 no bufferReceived 42308 broadcasts, 0 runts, 0 giants, 0 throttles1 input errors, 0 CRC, 0 frame, 0 overrun, 1 ignored, 0 abort0 input packets with dribble condition detected55794 packets output, 3929696 bytes, 0 underruns0 output errors, 0 collisions, 1 interface resets0 babbles, 0 late collision, 4 deferred0 lost carrier, 0 no carrier0 output buffer failures, 0 output buffers swapped out

  • 8/6/2019 class 13 - Basic Commands in Router Thursday, July 05, 2007

    27/33

    show flash Command

    Host Name #show flash

    System flash directory:File Length Name/status

    1 10084696 c2500-js-l_120-3.bin

    [10084760 bytes used, 6692456 available, 16777216 total]16384K bytes of processor board System flash (Read ONLY)

  • 8/6/2019 class 13 - Basic Commands in Router Thursday, July 05, 2007

    28/33

    Configuration Register ValuesConfiguration Register Values

    Configuration Register Boot Field Value

    0x2100

    0x2102 to 0x210F

    0x2101

    Meaning

    Use ROM monitor mode(Manually boot using the bcommand)

    Examine NVRAM for boot systemcommands (0x2 default if router hasFlash)

    Automatically boot from ROM (Provides IOS subset)

    RouterA#configure terminal

    RouterA(config)# config-register 0x2102

    RouterA#reload

  • 8/6/2019 class 13 - Basic Commands in Router Thursday, July 05, 2007

    29/33

    RouterA(config)# line vty 0 4RouterA(config-line)# loginRouterA(config-line)# password aita

    Command to configure Virtual

    Terminal Password

  • 8/6/2019 class 13 - Basic Commands in Router Thursday, July 05, 2007

    30/33

    Router# show interfaces serial 1

    Serial1 is up, line protocol is up

    Hardware is HD64570

    Description: 64Kb Line to San Jose:: :: :: :: :: :: :: :: ::

    Operational..................Connection problem...Interface problem........Disabled ......................

    Serial1 is up, line protocol is upSerial1 is up, line protocol is downSerial1 is down, line protocol is downSerial1 is administratively down, line protocol is down

    KeepalivesCarrier Detect

    Interpreting Interface Status

  • 8/6/2019 class 13 - Basic Commands in Router Thursday, July 05, 2007

    31/33

    (Automatic scrolling of long lines).

    Move to the beginning of the command line.

    Move to the end of the command line.

    Move back one word.

    Move forward one character.

    Move back one character.

    Move forward one word.

    Using E nhanced E ditingCommands

    Using E nhanced E ditingCommands

    Delete a single character.

  • 8/6/2019 class 13 - Basic Commands in Router Thursday, July 05, 2007

    32/33

    Redisplays the line.

    Erases a line.

    Erases a word.

    Returns to the EXEC MODE.

    TAB Finishes typing a command.

    Using E nhanced E ditingCommands

    Using E nhanced E ditingCommands

  • 8/6/2019 class 13 - Basic Commands in Router Thursday, July 05, 2007

    33/33

    Ctrl-P or Up arrow Last (previous) command recall

    Ctrl-N or Down arrow More recent command recall

    Router> show history Show command buffer contents

    Router> terminal history size lines Set session command buffer size

    Using E nhanced E ditingCommands