CCNA2 mod11

Embed Size (px)

Citation preview

  • 7/30/2019 CCNA2 mod11

    1/47

    2006 Cisco Systems, Inc. All rights reserved. Cisco Public 1

    Configuring and testing

    CCNA Exploration Semester 1

    Chapter 11

  • 7/30/2019 CCNA2 mod11

    2/47

    2006 Cisco Systems, Inc. All rights reserved. Cisco Public 2

    Topics

    The Internetwork Operating System(IOS).

    Devices that have the IOS embedded.

    IOS commands available to a device.

    IOS modes of operation.

    Basic IOS commands.

    Basic show commands.

    Configuration files

  • 7/30/2019 CCNA2 mod11

    3/47

    2006 Cisco Systems, Inc. All rights reserved. Cisco Public 3

    Internetwork Operating System

    Most Cisco devices use the Cisco IOS.

    Details vary with the device and feature

    set.

    Normal access through a command line.

    Stored in flash memory and can beupgraded.

    Usually copied into RAM when the device

    is powered on, and run from RAM.

  • 7/30/2019 CCNA2 mod11

    4/47

    2006 Cisco Systems, Inc. All rights reserved. Cisco Public 4

    Access to the interface

    Console port via serial connection

    Initial configuration

    Disaster recoveryWhen network access has failed

    Password recovery

    As well as general management

    Console access does not require apassword. Configure a password. Lock

    the door.

  • 7/30/2019 CCNA2 mod11

    5/47

    2006 Cisco Systems, Inc. All rights reserved. Cisco Public 5

    Telnet, SSH, Aux

    Later management can be via Telnet

    There must be an IP address on the port

    A password must be configured

    Secure shell gives better security

    AUX port can be used locally or viamodem but by default does not showerror messages

  • 7/30/2019 CCNA2 mod11

    6/47

    2006 Cisco Systems, Inc. All rights reserved. Cisco Public 6

    Configuration files

    Hold the commands that have beenconfigured on the router to customise it.

    Running configuration in RAM holdscommands that are in current use

    Startup configuration in NVRAM holds

    saved commands. These are kept whenthe power is off and usually copied backinto RAM when the router is re-started.

  • 7/30/2019 CCNA2 mod11

    7/47 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 7

    Router storage areas

    ROM

    Permanent

    Holds POST, bootinstructions, basic IOS

    Flash

    Keeps contents

    Holds IOS image

    NVRAM

    Keeps contents

    Holds startupconfiguration file

    RAM

    Volatile

    Holds runnning config,tables, queues etc

  • 7/30/2019 CCNA2 mod11

    8/47 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 8

    Router IOS modes

    User EXEC mode

    Privileged EXEC mode

    enable disable+ password

    Global Configuration mode

    Configure terminal Exit or Ctrl+z

    Specific Configuration modes

    Exit EndVarious commands

  • 7/30/2019 CCNA2 mod11

    9/47 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 9

    Router prompts

    User EXEC mode

    Privileged EXEC mode

    Global Configuration mode

    Specific Configuration modes

    Router>

    Router#

    Router(config)#

    Router(config-if)#and others

  • 7/30/2019 CCNA2 mod11

    10/47 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 10

    EXEC modes

    You log in to User EXEC modeRouter>

    You can give basic monitoring commands but

    cannot change the configurationEnterenable to go to Privileged EXEC mode

    Router#

    Password may be used for security

    You can give more commands and can go toconfiguration modes

  • 7/30/2019 CCNA2 mod11

    11/47 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 11

    Configuration modes

    Start in privileged EXEC mode and enter theconfigure terminal (config t) commandRouter# config tRouter(config)#

    The prompt changes

    This is global configuration mode

    Additional commands take you to interfaceconfiguration, router configuration etc.

  • 7/30/2019 CCNA2 mod11

    12/47 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 12

    Leaving configuration modes

    From interface configuration mode thereare several ways of getting to privilegedEXEC

    Router(config-if)# exitRouter(config)# exitRouter#

    Router(config-if)# endRouter#

    Router(config-if)# Ctrl+z

    Router#

  • 7/30/2019 CCNA2 mod11

    13/47 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 13

    Command Structure

    Followed by

  • 7/30/2019 CCNA2 mod11

    14/47 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 14

    ? To get help

    ? Gives a list of commands availablefrom the current prompt.

    Command followed by space then ?Gives a list of keywords or argumentsthat can be used.

    Start of command followed by ? with nospace shows how the word can becontinued.

  • 7/30/2019 CCNA2 mod11

    15/47 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 15

    Shortened commands

    Router#show running-config

    Router#show run

    Router#sh ru

    It needs enough letters of each word to

    be unambiguous. (Tab key shows wholeword)

    Router#s ru

    % Ambiguous command: s

  • 7/30/2019 CCNA2 mod11

    16/47 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 16

    Other error messages

    Switch#clock set

    % Incomplete command

    Switch#clock set 19:50:00 25 6

    % Invalid input detected at ^ marker

    Router#show runming-config

    % Invalid input detected at ^ marker

    ^

    ^

  • 7/30/2019 CCNA2 mod11

    17/47 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 17

    Keyboard shortcuts

    Tab completes a partial command

    Backspace erases to left of cursor

    Ctrl+D erases at cursor (Delete doesnot)

    Ctrl+Z returns from any config modeto privileged exec mode

    Ctrl+C leave Setup mode

  • 7/30/2019 CCNA2 mod11

    18/47 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 18

    Show commands

    Show ? To get a list

    Many different show commands to

    give information about every aspectof the router and its operation

    We use some of the most common.

  • 7/30/2019 CCNA2 mod11

    19/47 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 19

    General show commands

    Show running-config shows theconfiguration file from RAM

    Show startup-config shows the saved

    configuration file from NVRAM

    Show version gives information about the

    IOS and the router itself. It shows theconfiguration register, which controls howthe router starts up.

  • 7/30/2019 CCNA2 mod11

    20/47 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 20

    Show interfaces

    Gives statistics for all interfaces In particular, says if the interface is up and if the

    protocol is up important in troubleshooting.

    Show interfaces serial 0/0 to show oneselected interface

    You can shorten to show int s 0/0

    Show ip interfaces gives IP statistics

  • 7/30/2019 CCNA2 mod11

    21/47 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 21

    Save configuration

    Router#copy running-config startup-config

    Router#copy run start (shortened)

    Router#wr (Old fashioned, short for write,but it works and is safe.)

    Beware! A typing error in the copy commandcan delete the operating system. If you getan odd message about Flash hands off

    call for help.

  • 7/30/2019 CCNA2 mod11

    22/47 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 22

    Hostname

    Router>enable

    Router#config t

    Router(config)#hostname Paris

    Paris(config)#

    Configure a suitable hostname so thatyou know which router you are managingand so that you can identify it in network

    documentation.

  • 7/30/2019 CCNA2 mod11

    23/47 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 23

    Console password

    Paris(config)#line con 0

    Paris(config-line)#password cisco

    Paris(config-line)#login

    Paris(config-line)#exit

    Restricts access via the console

    Use cisco as the password in labs.

    Use a proper strong password on

    production networks

  • 7/30/2019 CCNA2 mod11

    24/47 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 24

    Vty password for Telnet

    Paris(config)#line vty 0 4

    Paris(config-line)#password cisco

    Paris(config-line)#loginParis(config-line)#exit

    Allows and restricts access via 5 vty lines

    Use cisco as the password in labs.

    Use a proper strong, different password

    on production networks

  • 7/30/2019 CCNA2 mod11

    25/47

    2006 Cisco Systems, Inc. All rights reserved. Cisco Public 25

    Enable and enable secret

    Paris(config)#enable secret class

    The password class is needed when you

    type enable to enter privileged exec mode

    This password is encrypted

    Paris(config)#enable password ciscoNot encrypted, used on older routers

    If you configure both, then only the

    enable secret is used.

  • 7/30/2019 CCNA2 mod11

    26/47

    2006 Cisco Systems, Inc. All rights reserved. Cisco Public 26

    Message of the day

    Paris(config)#banner motd # Nounauthorised access #

    # is a delimiter to show where themessage starts and ends.

    Any character can be used as long as it

    does not appear in the message.

    The message should make it clear thatunauthorised access is forbidden.

  • 7/30/2019 CCNA2 mod11

    27/47

    2006 Cisco Systems, Inc. All rights reserved. Cisco Public 27

    Reload

    Shuts down the router and thenstarts it again.

    If the configuration has changed thenyou are prompted to save it.

    The running configuration in RAM is

    lost.

    The startup configuration fromNVRAM is (usually) loaded into RAM

    on startu .

  • 7/30/2019 CCNA2 mod11

    28/47

    2006 Cisco Systems, Inc. All rights reserved. Cisco Public 28

    Back up to TFTP server

    Start TFTP server software on host

    Paris#copy running-config tftp

    Remote host []? 172.16.1.1

    Name of configuration file to write [Paris-config]? Paris12Oct07

    Write file Paris12Oct07 to 172.16.1.1?[confirm] y

    Writing Paris12Oct07 ! ! ! ! ! ! [OK]

  • 7/30/2019 CCNA2 mod11

    29/47

    2006 Cisco Systems, Inc. All rights reserved. Cisco Public 29

    Back up as text file

    Start text capture

    Name file

    show run

    Stop text capture

    Open saved file and

  • 7/30/2019 CCNA2 mod11

    30/47

    2006 Cisco Systems, Inc. All rights reserved. Cisco Public 30

    TeraTerm text file

    TeraTerm is an open source Telnet client.

    It can also act as a SSH client

    It can capture text and save it as a file.

  • 7/30/2019 CCNA2 mod11

    31/47

    2006 Cisco Systems, Inc. All rights reserved. Cisco Public 31

    Erase startup configuration

    Paris#erase NVRAM:startup-config

    Paris#erase startup-config

    Paris#erase start

    If you reload, then the router starts up with the defaultconfiguration. No passwords, no IP addresses etc.

    Caution if you get this command wrong then you could

    erase something else, e.g. IOS

  • 7/30/2019 CCNA2 mod11

    32/47

    2006 Cisco Systems, Inc. All rights reserved. Cisco Public 32

    Restore file from TFTP server

    Router#copy tftp running-config

    You will be prompted for IP address and file name.

    Configuration is copied into RAM and takes effect atonce.

    Save to NVRAM.

  • 7/30/2019 CCNA2 mod11

    33/47

    2006 Cisco Systems, Inc. All rights reserved. Cisco Public 33

    Restore text file

    Go to global configurationmode

    Hyperterminal Transfer

    menu

    Send text file

    Or

    Copy text from text file

    Paste to host into Hyperterminal session

  • 7/30/2019 CCNA2 mod11

    34/47

    2006 Cisco Systems, Inc. All rights reserved. Cisco Public 34

    Configure a router interface

    Paris(config)#interface FastEthernet 0/0

    Paris(config-if)#ip address 172.16.1.1 255.255.0.0

    Paris(config-if)#no shutdown

    Paris(config-if)#exit

    Interface names vary, depending on whether the routeris modular and on the bandwidth.

    E.g. interface Ethernet 0 on an older router

  • 7/30/2019 CCNA2 mod11

    35/47

    2006 Cisco Systems, Inc. All rights reserved. Cisco Public 35

    Configure a router interface

    Paris(config)#interface serial 0/0

    Paris(config-if)#ip address 192.168.4.1 255.255.255.0

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

    Paris(config-if)#no shutdown

    Paris(config-if)#exit DCE only

  • 7/30/2019 CCNA2 mod11

    36/47

    2006 Cisco Systems, Inc. All rights reserved. Cisco Public 36

    Description

    Paris(config)#interface fa0/0

    Paris(config-if)#description Connects to Paris centralswitch

    Can include circuit and contact information

    Not needed for the operation of the router

    Valuable for documentation as it is included in the

    configuration listing

  • 7/30/2019 CCNA2 mod11

    37/47

    2006 Cisco Systems, Inc. All rights reserved. Cisco Public 37

    Switch interfaces

    Switch physical interfaces do not have IP addresses

    They are active by default and do not need the noshutdown command.

    It can be useful to give them a description.

  • 7/30/2019 CCNA2 mod11

    38/47

    2006 Cisco Systems, Inc. All rights reserved. Cisco Public 38

    Switch IP address

    The switch IP address goes on a virtual interface, not areal one, normally VLAN1.

    SwA(config)#interface VLAN1

    SwA(config-if)#ip address 172.16.255.1 255.255.0.0

    SwA(config-if)#no shutdown

    SwA(config-if)#exit

  • 7/30/2019 CCNA2 mod11

    39/47

    2006 Cisco Systems, Inc. All rights reserved. Cisco Public 39

    Switch default gateway

    SwA(config)#ip default gateway 172.16.255.254

    Just like a workstation, a switch needs a defaultgateway if it exchanges messages with devices on a

    different network. The default gateway is the address of the local router.

  • 7/30/2019 CCNA2 mod11

    40/47

    2006 Cisco Systems, Inc. All rights reserved. Cisco Public 40

    Interface show commands

    show interfaces states whether up or down, givessome protocol information and statistics about interfaceuse.

    show ip interface gives IP addresses and much more.

    show ip interface brief gives summary of IPaddresses and whether up/down. Very usefulcommand.

  • 7/30/2019 CCNA2 mod11

    41/47

    2006 Cisco Systems, Inc. All rights reserved. Cisco Public 41

    Up or down

    Interface status: Layer 1

    Up

    Down

    Administratively down (no shutdown to bring up)

    Protocol: Layer 2

    Up

    Down (no keepalive signal received)

  • 7/30/2019 CCNA2 mod11

    42/47

    2006 Cisco Systems, Inc. All rights reserved. Cisco Public 42

    Ping step by step

    Ping 127.0.0.1 (loopback, is TCP/IP OK?)

    Ping own IP address (are NIC hardware and softwareall right? Is IP address bound?)

    Ping local hosts (checks own configuration and that ofothers)

    Ping gateway

    Ping other intermediate routers Ping hosts on remote networks

  • 7/30/2019 CCNA2 mod11

    43/47

    2006 Cisco Systems, Inc. All rights reserved. Cisco Public 43

    Network baseline

    Measure and record performance

    At different times

    Under different conditions

    Repeatedly over a period of time

    Build up a record of network performance

    Useful in troubleshooting and optimising the network

    Helps predict future problems

    Helps planning for change

  • 7/30/2019 CCNA2 mod11

    44/47

    2006 Cisco Systems, Inc. All rights reserved. Cisco Public 44

    Find out about nodes

    Ping used from workstation, router or switch showsif destination can be reached

    Traceroute shows hops along the path

    Arp -a on workstation shows list of MAC and IPaddresses

    show mac-address-table on switch shows list of MACaddresses and switch ports

  • 7/30/2019 CCNA2 mod11

    45/47

    2006 Cisco Systems, Inc. All rights reserved. Cisco Public 45

    Summary

    Hierarchical Design model addresses performance,scalability, maintainability & manageability issues.

    Traffic Analysis is used to monitor networkperformance.

    Hierarchical Design Model is composed of 3 layers:

    Access

    Distribution

    Core

    Switches selected for each layer must meet the needsof each hierarchical layer as well as the needs of thebusiness.

  • 7/30/2019 CCNA2 mod11

    46/47

    2006 Cisco Systems, Inc. All rights reserved. Cisco Public 46

    Labs & Activities

    Type Detail

    Lab 11.1.6 Mandatory*

    Lab 11.1.7 Mandatory

    Lab 11.2.1 Mandatory

    Lab 11.2.2 Review carefully

    Lab 11..2.3 Mandatory

    * If no previous Packet Tracer experience, else strongly recommended

  • 7/30/2019 CCNA2 mod11

    47/47