Router Configuration Itcn

  • Upload
    mk-bd

  • View
    251

  • Download
    1

Embed Size (px)

Citation preview

  • 7/27/2019 Router Configuration Itcn

    1/29

    Configuring a Router

    MM Clements

  • 7/27/2019 Router Configuration Itcn

    2/29

    Copyright 2003

    www.ciscopress.com

    This Week

    Command line interface

    Router configuration Modes for configuration

    Interface configuration

    Working with configurations using PacketTracer 5.x

  • 7/27/2019 Router Configuration Itcn

    3/29

    Copyright 2003

    www.ciscopress.com

    Conventions used in these notes

    All commands e.g. enable will use Courier

    font to distinguish them from text After each command has been entered you

    should press Enter (Return)

  • 7/27/2019 Router Configuration Itcn

    4/29

    Copyright 2003

    www.ciscopress.com

    Cisco IOS

    Internetwork Operating System

    Accessed via command line only No GUI makes for increased OS reliability

    and lower hardware requirements

    Has modes for operation unlike Linux or DOS

  • 7/27/2019 Router Configuration Itcn

    5/29

    Copyright 2003

    www.ciscopress.com

    Command-Line Interface Modes

  • 7/27/2019 Router Configuration Itcn

    6/29

    Copyright 2003

    www.ciscopress.com

    Global Configuration Modes

  • 7/27/2019 Router Configuration Itcn

    7/29

    Copyright 2003

    www.ciscopress.com

    Initial login to a router

    Power up router

    System information displayed Begins in User Executive mode

    Users can do little (damage!) here

    Enter Privileged Executive mode withenable command

    May be password protected

    User will be prompted if necessary

  • 7/27/2019 Router Configuration Itcn

    8/29

    Copyright 2003

    www.ciscopress.com

    Router Boot Process

    Router decompresses IOS image from Flash

    memory Legal information is displayed

    On first ever ( or clean ) boot, user is asked

    whether or not to enter configuration

    dialogue

    This is for non-Cisco educated people

    answer n ( for NO )

  • 7/27/2019 Router Configuration Itcn

    9/29

    Copyright 2003

    www.ciscopress.com

    System Bootstrap, Version 12.1(3r)T2, RELEASE SOFTWARE (fc1)

    Copyright (c) 2000 by cisco Systems, Inc.

    cisco 2620 (MPC860) processor (revision 0x200) with 60416K/5120K bytes of

    memory

    Self decompressing the image :#########################################################################

    # [OK]

    Restricted Rights Legend

    Use, duplication, or disclosure by the Government is

    subject to restrictions as set forth in subparagraph

    (c) of the Commercial Computer Software - Restricted

    Rights clause at FAR sec. 52.227-19 and subparagraph

    (c) (1) (ii) of the Rights in Technical Data and Computer

    Software clause at DFARS sec. 252.227-7013.

    Cisco Systems, Inc.

    170 West Tasman Drive

    San Jose, California 95134-1706

  • 7/27/2019 Router Configuration Itcn

    10/29

    Copyright 2003

    www.ciscopress.com

    Clean Boot Continued--- System Configuration Dialog ---

    Continue with configuration dialog? [yes/no]: n

    Press RETURN to get started!

    Router>?

    Exec commands:

    Session number to resume

    connect Open a terminal connection

    disable Turn off privileged commands

    disconnect Disconnect an existing network connection

    enable Turn on privileged commands

    Etc. etc.

  • 7/27/2019 Router Configuration Itcn

    11/29

    Copyright 2003

    www.ciscopress.com

    Learning the Commands

    Unlike Linux and DOS, all commands

    available can be accessed using a questionmark ( ? ) displays minor help too

    This allows all or partially typed commands

    to be shown

    E.g. to show all commands that begin with

    the letter c type c? at the prompt and

    press enter (return)

  • 7/27/2019 Router Configuration Itcn

    12/29

    Copyright 2003

    www.ciscopress.com

    Getting Going

    In User Exec the prompt is Router>

    From User Exec proceed to Privileged Execusing the enable command

    Now you are in Privileged Exec the prompt isRouter#

    This mode allows many parameters of the

    router to be viewed

    These can be seen using a show command

  • 7/27/2019 Router Configuration Itcn

    13/29

    Copyright 2003

    www.ciscopress.com

    Examining the show Commands

    There are many show commands that

    display the settings for the router Also useful for troubleshooting

    In both Privileged EXEC and User EXECmodes, the command show ? provides a list

    of available show commands

  • 7/27/2019 Router Configuration Itcn

    14/29

    Copyright 2003www.ciscopress.com

    Making Changes to the Router

    To change settings you need to enter Global

    Configuration mode This can be achieved using the configure

    terminal command

    The prompt now changes to Router(config)#

    A different set of commands are now available

    Many configuration modes exist too

  • 7/27/2019 Router Configuration Itcn

    15/29

    Copyright 2003www.ciscopress.com

    Configuring a Router Name

    A router should have a name to allow it to be

    easily identified The location is a good choice but any name

    can be set

    Router(config)#hostname Chatham

    Chatham(config)#

    The routers security should be considered too

  • 7/27/2019 Router Configuration Itcn

    16/29

    Copyright 2003www.ciscopress.com

    Router Identification Configuration

  • 7/27/2019 Router Configuration Itcn

    17/29

    Copyright 2003www.ciscopress.com

    Password Configuration

  • 7/27/2019 Router Configuration Itcn

    18/29

    Copyright 2003www.ciscopress.com

    Configuring an Ethernet Interface

    1. Enter global configuration mode

    2. Enter interface configuration mode3. Specify the interface address and subnet

    mask

    4. Enable the interface

  • 7/27/2019 Router Configuration Itcn

    19/29

    Copyright 2003www.ciscopress.com

    Setting FastEthernet Interface

    Router(config)#interface FastEthernet 0/0

    Router(config-if)#ip address 192.168.1.1

    255.255.255.0

    Router(config-if)#no shutdown

    %LINK-5-CHANGED: InterfaceFastEthernet0/0, changed state to up

    Router(config-if)#

  • 7/27/2019 Router Configuration Itcn

    20/29

    Copyright 2003www.ciscopress.com

    What interfaces does the router have?

    You need to use a show command

    show ip interface brief will list allinterfaces of the router

    The names of the interfaces must be entered

    to make changes to the interfaces of the

    router

  • 7/27/2019 Router Configuration Itcn

    21/29

    Copyright 2003www.ciscopress.com

    Router#show ip interface brief

    Interface IP-Address OK? Method Status Protocol

    FastEthernet0/0 unassigned YES unset administratively down down

    FastEthernet0/1 unassigned YES unset administratively down down

    Serial0/0 unassigned YES unset administratively down down

    Serial0/1 unassigned YES unset administratively down down

  • 7/27/2019 Router Configuration Itcn

    22/29

    Copyright 2003www.ciscopress.com

    Interface Configuration Commands

  • 7/27/2019 Router Configuration Itcn

    23/29

    Copyright 2003www.ciscopress.com

    Interface Descriptions

    An interface description should be used to identify

    important information such as a distant router, a

    circuit number, or a specific network segment.

  • 7/27/2019 Router Configuration Itcn

    24/29

    Copyright 2003www.ciscopress.com

    Adds, Moves, and Changes

  • 7/27/2019 Router Configuration Itcn

    25/29

    Copyright 2003 www.ciscopress.com

    Finishing the Configuration

    Once finished you should type the exit

    command to return one step back in the

    command mode structure

    To immediately return to Priv Exec, type theendcommand

    Now you need to save the configuration or ifpower is lost, the configuration is lost

  • 7/27/2019 Router Configuration Itcn

    26/29

    Copyright 2003 www.ciscopress.com

    Saving the Configuration

    When in Global Config mode, you are writing

    directly to DRAM

    The contents of DRAM can be accessed usingthe running-config file but are lost if the

    power is turned off

    The Priv Exec command copy running-config startup-config saves the contents

    of DRAM to NVRAM for the next reboot

  • 7/27/2019 Router Configuration Itcn

    27/29

    Copyright 2003 www.ciscopress.com

    Checking you have saved properly

    After issuing the copy running-config

    startup-config hcommand the router

    displays the following

    Router#copy running-config startup-config

    Destination filename [startup-config]?

    Building configuration...[OK]

    Router#

  • 7/27/2019 Router Configuration Itcn

    28/29

    Copyright 2003 www.ciscopress.com

    Rebooting the router

    At Priv Exec prompt, issue the reload

    command and confirm (Enter)

    The router restarts but no longer displays the

    same question about initial configuration

    You should be able see all of the information

    that you entered when in Priv Exec again

    Type the show running-config

    command and examine the output

  • 7/27/2019 Router Configuration Itcn

    29/29

    Copyright 2003 www.ciscopress.com

    Conclusion

    Cisco IOS allows command line modification

    A ? allows commands to be displayed CLI has modes for configuration

    Need to be in the right mode to make

    changes

    running-config file is the contents of DRAM

    startup-config file is used to store routers

    configuration for the next boot