institute of technology sligo - dept of computing router startup and setup & router...

51
Institute of Technology Sligo - Dept of Computing Router Startup and Router Startup and Setup Setup & Router Configuration & Router Configuration 1 1 Semester 2 Semester 2 Chapter 5/6 Chapter 5/6 Paul Flynn

Post on 15-Jan-2016

221 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Institute of Technology Sligo - Dept of Computing Router Startup and Setup & Router Configuration 1 Semester 2 Chapter 5/6 Paul Flynn

Institute of Technology Sligo - Dept of Computing

Router Startup and SetupRouter Startup and Setup& Router Configuration 1& Router Configuration 1

Semester 2Semester 2

Chapter 5/6Chapter 5/6

Paul Flynn

Page 2: Institute of Technology Sligo - Dept of Computing Router Startup and Setup & Router Configuration 1 Semester 2 Chapter 5/6 Paul Flynn

Institute of Technology Sligo - Dept of Computing

Table of ContentsTable of Contents

Boot Sequence and Setup ModeBoot Sequence and Setup Mode

System Configuration DialogSystem Configuration Dialog

Router Configuration Files Router Configuration Files

Router Configuration Modes Router Configuration Modes

Configuration Methods Configuration Methods

Challenge Labs Challenge Labs

Page 3: Institute of Technology Sligo - Dept of Computing Router Startup and Setup & Router Configuration 1 Semester 2 Chapter 5/6 Paul Flynn

Institute of Technology Sligo - Dept of Computing

Router Boot Sequence and Router Boot Sequence and Setup ModeSetup Mode Router Startup RoutineRouter Startup Routine

Router Startup Router Startup SequenceSequence

Related CommandsRelated Commands

Table of Contents

Page 4: Institute of Technology Sligo - Dept of Computing Router Startup and Setup & Router Configuration 1 Semester 2 Chapter 5/6 Paul Flynn

Institute of Technology Sligo - Dept of Computing

Router Startup Routine Router Startup Routine When a Cisco router powers up, it performs a power-When a Cisco router powers up, it performs a power-

on self test (POST). on self test (POST). Executes diagnostics from ROM on all hardware Executes diagnostics from ROM on all hardware Verifies the basic operation of the CPU, memory, and Verifies the basic operation of the CPU, memory, and

network interface ports network interface ports Proceeds with software initializationProceeds with software initialization

A router initializes by loading the bootstrap, the IOS, A router initializes by loading the bootstrap, the IOS, and a configuration file.and a configuration file. If the router cannot find a configuration file, then it enters If the router cannot find a configuration file, then it enters

setup modesetup mode NVRAM stores a backup copy of the new configuration from NVRAM stores a backup copy of the new configuration from

setup mode setup mode

Page 5: Institute of Technology Sligo - Dept of Computing Router Startup and Setup & Router Configuration 1 Semester 2 Chapter 5/6 Paul Flynn

Institute of Technology Sligo - Dept of Computing

Router Startup RoutineRouter Startup Routine The goal of the startup routines for Cisco IOS The goal of the startup routines for Cisco IOS

software is to start the router operations. The router software is to start the router operations. The router must deliver reliable performance in its job of must deliver reliable performance in its job of connecting the user networks it was configured to connecting the user networks it was configured to serve. To do this, the startup routines must: serve. To do this, the startup routines must: Make sure that the router comes up with all its hardware Make sure that the router comes up with all its hardware

tested. tested. Find and load the Cisco IOS software that the router uses Find and load the Cisco IOS software that the router uses

for its operating system. for its operating system. Find and apply the configuration statements about the Find and apply the configuration statements about the

router, including protocol functions and interface router, including protocol functions and interface addresses.addresses.

Page 6: Institute of Technology Sligo - Dept of Computing Router Startup and Setup & Router Configuration 1 Semester 2 Chapter 5/6 Paul Flynn

Institute of Technology Sligo - Dept of Computing

Router Startup SequenceRouter Startup Sequence After the power-on self test on the router, the following After the power-on self test on the router, the following

events occur as the router initializes:events occur as the router initializes: Step 1 Step 1 - The generic bootstrap loader, in ROM, executes on the CPU - The generic bootstrap loader, in ROM, executes on the CPU

card. A bootstrap is a simple, preset operation to load instructions that card. A bootstrap is a simple, preset operation to load instructions that in turn cause other instructions to be loaded into memory, or cause in turn cause other instructions to be loaded into memory, or cause entry into other configuration modes. entry into other configuration modes.

Step 2 Step 2 - The operating system (Cisco IOS) can be found in one of - The operating system (Cisco IOS) can be found in one of several places. The location is disclosed in the boot field of the several places. The location is disclosed in the boot field of the configuration register. If the boot field indicates a Flash, or network load, configuration register. If the boot field indicates a Flash, or network load, boot systemboot system commands in the configuration file indicate the exact commands in the configuration file indicate the exact location of the image. location of the image.

Step 3 Step 3 - The operating system image is loaded. Then, when it is loaded - The operating system image is loaded. Then, when it is loaded and operational, the operating system locates the hardware and and operational, the operating system locates the hardware and software components and lists the results on the console terminal.software components and lists the results on the console terminal.

Page 7: Institute of Technology Sligo - Dept of Computing Router Startup and Setup & Router Configuration 1 Semester 2 Chapter 5/6 Paul Flynn

Institute of Technology Sligo - Dept of Computing

Router Startup SequenceRouter Startup Sequence Step 4Step 4 -- The configuration file saved in NVRAM is loaded into -- The configuration file saved in NVRAM is loaded into

main memory and executed one line at a time. These main memory and executed one line at a time. These configuration commands start routing processes, supply configuration commands start routing processes, supply addresses for interfaces, set media characteristics, and so on. addresses for interfaces, set media characteristics, and so on.

Step 5Step 5 -- If no valid configuration file exists in NVRAM, the -- If no valid configuration file exists in NVRAM, the operating system executes a question-driven initial configuration operating system executes a question-driven initial configuration routine referred to as the routine referred to as the system configuration dialogsystem configuration dialog, also called , also called the the setup dialogsetup dialog..

Setup is not intended for entering complex Setup is not intended for entering complex protocol features in the router. It is used to bring protocol features in the router. It is used to bring up a minimal configuration.up a minimal configuration.

Page 8: Institute of Technology Sligo - Dept of Computing Router Startup and Setup & Router Configuration 1 Semester 2 Chapter 5/6 Paul Flynn

Institute of Technology Sligo - Dept of Computing

Know the sequence!Router Startup SequenceRouter Startup Sequence

Page 9: Institute of Technology Sligo - Dept of Computing Router Startup and Setup & Router Configuration 1 Semester 2 Chapter 5/6 Paul Flynn

Institute of Technology Sligo - Dept of Computing

Related CommandsRelated Commands show startup-configshow startup-config ((show configshow config on Cisco IOS 10.3 on Cisco IOS 10.3

or earlier) – display the backup configuration file.or earlier) – display the backup configuration file. show running-configshow running-config ( (write termwrite term on Cisco IOS 10.3 or on Cisco IOS 10.3 or

earlier) – display the active configuration file. earlier) – display the active configuration file. erase startup-configerase startup-config ( (write erasewrite erase on Cisco IOS 10.3 or on Cisco IOS 10.3 or

earlier) – deletes the backup configuration file in earlier) – deletes the backup configuration file in NVRAM.NVRAM.

reloadreload (reboot) command reloads the router, causing it (reboot) command reloads the router, causing it to run through the entire startup process. to run through the entire startup process.

setupsetup is used to enter setup mode from the privileged is used to enter setup mode from the privileged EXEC prompt EXEC prompt

Page 10: Institute of Technology Sligo - Dept of Computing Router Startup and Setup & Router Configuration 1 Semester 2 Chapter 5/6 Paul Flynn

Institute of Technology Sligo - Dept of Computing

System Configuration DialogSystem Configuration Dialog The The setupsetup Command Command Setting up global and Setting up global and

interface parametersinterface parameters Setting up script review Setting up script review

and useand use Setup Lab ChallengeSetup Lab Challenge

Table of Contents

Page 11: Institute of Technology Sligo - Dept of Computing Router Startup and Setup & Router Configuration 1 Semester 2 Chapter 5/6 Paul Flynn

Institute of Technology Sligo - Dept of Computing

The The setupsetup Command Command The main purpose of the setup mode is to bring up, The main purpose of the setup mode is to bring up,

quickly, a minimal configuration for any router that quickly, a minimal configuration for any router that cannot find its configuration from another source.cannot find its configuration from another source.

Default answers appear in square brackets Default answers appear in square brackets [ ][ ] following the question. Press the Return key to use following the question. Press the Return key to use these defaults. these defaults.

During the setup process, you can press During the setup process, you can press Control+CControl+C at any time to terminate the process and start over. at any time to terminate the process and start over.

Once setup is terminated, all interfaces will be Once setup is terminated, all interfaces will be administratively shutdown. administratively shutdown.

Page 12: Institute of Technology Sligo - Dept of Computing Router Startup and Setup & Router Configuration 1 Semester 2 Chapter 5/6 Paul Flynn

Institute of Technology Sligo - Dept of Computing

The The setupsetup Command Command When you completed, the screen will When you completed, the screen will display the configuration that you have just display the configuration that you have just created. created.

You will then be asked whether you want to You will then be asked whether you want to use this configuration. use this configuration. If you enter "yes", the configuration will be If you enter "yes", the configuration will be

executed and saved to NVRAM. executed and saved to NVRAM. If you answer "no", the configuration will not be If you answer "no", the configuration will not be

saved and the process will begin again.saved and the process will begin again. If a If a --More----More-- prompt appears, press the prompt appears, press the

space bar to continue..space bar to continue..

Page 13: Institute of Technology Sligo - Dept of Computing Router Startup and Setup & Router Configuration 1 Semester 2 Chapter 5/6 Paul Flynn

Institute of Technology Sligo - Dept of Computing

Setting Global ParametersSetting Global Parameters After viewing the current interface summary, a prompt After viewing the current interface summary, a prompt

will appear on your monitor, indicating that you are to will appear on your monitor, indicating that you are to enter the global parameters for your router. enter the global parameters for your router.

Configuring global parametersConfiguring global parameters appears on your appears on your monitor. It indicates that you are to enter the global monitor. It indicates that you are to enter the global parameters that you set for your router.parameters that you set for your router.

The first global parameter allows you to set the router The first global parameter allows you to set the router host name. host name. This host name will be part of the Cisco IOS prompts for all This host name will be part of the Cisco IOS prompts for all

configuration modes. configuration modes. At initial configuration, the default router name is At initial configuration, the default router name is [Router][Router]..

Page 14: Institute of Technology Sligo - Dept of Computing Router Startup and Setup & Router Configuration 1 Semester 2 Chapter 5/6 Paul Flynn

Institute of Technology Sligo - Dept of Computing

Setting Global ParametersSetting Global Parameters The next global parameters allows you to set the various passwords The next global parameters allows you to set the various passwords

used on the router. used on the router. You must enter an enable password. You must enter an enable password. When you enter a string of password characters for the prompt, "Enter When you enter a string of password characters for the prompt, "Enter

enable secret"; the characters are processed by Cisco proprietary enable secret"; the characters are processed by Cisco proprietary encryption. encryption.

This enhances the security of the password string. This enhances the security of the password string. Whenever anyone lists the contents of the router configuration file, this Whenever anyone lists the contents of the router configuration file, this

enable password appears as a meaningless string of characters. enable password appears as a meaningless string of characters. Setup recommends, but does not require, that the "enable Setup recommends, but does not require, that the "enable

password" be different from the "enable secret word". password" be different from the "enable secret word".

Page 15: Institute of Technology Sligo - Dept of Computing Router Startup and Setup & Router Configuration 1 Semester 2 Chapter 5/6 Paul Flynn

Institute of Technology Sligo - Dept of Computing

Setting Global ParametersSetting Global Parameters The "enable secret word" is a one-way The "enable secret word" is a one-way

cryptographic secret word that is used instead of cryptographic secret word that is used instead of the "enable password" when it exists. The the "enable password" when it exists. The "enable password" is used when no "enable "enable password" is used when no "enable secret word" exists. It is also used when using secret word" exists. It is also used when using older versions of the IOS. older versions of the IOS.

All passwords are case sensitive and can be All passwords are case sensitive and can be alphanumeric. alphanumeric.

Page 16: Institute of Technology Sligo - Dept of Computing Router Startup and Setup & Router Configuration 1 Semester 2 Chapter 5/6 Paul Flynn

Institute of Technology Sligo - Dept of Computing

Setting Global ParametersSetting Global Parameters

When you are prompted for parameters for When you are prompted for parameters for each installed interface, use the each installed interface, use the configuration values that you have configuration values that you have selected for your router. selected for your router.

Whenever you answerWhenever you answer yes yes to a prompt, to a prompt, additional questions may appear regarding additional questions may appear regarding the protocol.the protocol.

Page 17: Institute of Technology Sligo - Dept of Computing Router Startup and Setup & Router Configuration 1 Semester 2 Chapter 5/6 Paul Flynn

Institute of Technology Sligo - Dept of Computing

Interface ParametersInterface Parameters

When you are prompted for parameters for When you are prompted for parameters for each installed interface, you need to use each installed interface, you need to use the configuration values you have the configuration values you have determined for your interface to enter the determined for your interface to enter the interface parameters at the prompts interface parameters at the prompts

In order to fully understand In order to fully understand setupsetup mode mode complete the Labcomplete the Lab Lab 5.2.3 Router setup commandLab 5.2.3 Router setup command

Page 18: Institute of Technology Sligo - Dept of Computing Router Startup and Setup & Router Configuration 1 Semester 2 Chapter 5/6 Paul Flynn

Institute of Technology Sligo - Dept of Computing

Script Review and UseScript Review and Use When you complete the configuration process for all installed When you complete the configuration process for all installed

interfaces on your router, the interfaces on your router, the setupsetup command program will command program will display the configurations that you have created. display the configurations that you have created.

The The setupsetup process will then ask if you want to use this process will then ask if you want to use this configuration. configuration. If you answer If you answer yesyes, the configuration will be executed and saved to , the configuration will be executed and saved to

NVRAM. NVRAM. If you answer If you answer nono, the configuration will not be saved, and the process will , the configuration will not be saved, and the process will

begin again. begin again. There is no default for this prompt; you must answer either There is no default for this prompt; you must answer either yesyes or or nono. . After you have answered After you have answered yesyes to the last question, your system will be to the last question, your system will be

ready to use. ready to use. If you want to modify the configuration you have just established, you If you want to modify the configuration you have just established, you

must do the configuration manually. must do the configuration manually.

Page 19: Institute of Technology Sligo - Dept of Computing Router Startup and Setup & Router Configuration 1 Semester 2 Chapter 5/6 Paul Flynn

Institute of Technology Sligo - Dept of Computing

Script Review and UseScript Review and Use The script tells you to use the configuration The script tells you to use the configuration

mode to change any commands after mode to change any commands after setupsetup has has been used. been used.

The script file generated by setup is additive; The script file generated by setup is additive; you can turn features on with setup, but you you can turn features on with setup, but you cannot turn them off. cannot turn them off.

Also, Also, setupsetup does not support many of the does not support many of the advanced features of the router, or features that advanced features of the router, or features that require a more complex configuration.require a more complex configuration.

Page 20: Institute of Technology Sligo - Dept of Computing Router Startup and Setup & Router Configuration 1 Semester 2 Chapter 5/6 Paul Flynn

Institute of Technology Sligo - Dept of Computing

Challenge LabChallenge Lab

Your Skills Assessment will be based on Your Skills Assessment will be based on this Lab, make sure you have completed this Lab, make sure you have completed it…it… Lab 5.3.1 Router setup challengeLab 5.3.1 Router setup challenge

Page 21: Institute of Technology Sligo - Dept of Computing Router Startup and Setup & Router Configuration 1 Semester 2 Chapter 5/6 Paul Flynn

Institute of Technology Sligo - Dept of Computing

SummarySummary The router initializes by loading a The router initializes by loading a

bootstrap, the operating system, and a bootstrap, the operating system, and a configuration file. configuration file.

If the router cannot find a configuration file, If the router cannot find a configuration file, the router enters setup mode. the router enters setup mode.

The router stores a backup copy of the The router stores a backup copy of the new configuration from setup mode in new configuration from setup mode in NVRAM. NVRAM.

Page 22: Institute of Technology Sligo - Dept of Computing Router Startup and Setup & Router Configuration 1 Semester 2 Chapter 5/6 Paul Flynn

Institute of Technology Sligo - Dept of Computing

Router Configuration FilesRouter Configuration Files

Table of Contents

Page 23: Institute of Technology Sligo - Dept of Computing Router Startup and Setup & Router Configuration 1 Semester 2 Chapter 5/6 Paul Flynn

Institute of Technology Sligo - Dept of Computing

Configuration File InfoConfiguration File Info Configuration files can come from the console, NVRAM, or a Configuration files can come from the console, NVRAM, or a

TFTP server. TFTP server. A router uses information from the configuration file when it A router uses information from the configuration file when it

starts up:starts up: Cisco IOS software version Cisco IOS software version Router identification Router identification Boot file locations Boot file locations Protocol information Protocol information Interface configurations Interface configurations

The configuration file contains commands to customize router The configuration file contains commands to customize router operation. operation.

If there is no configuration file available, the system configuration If there is no configuration file available, the system configuration dialog setup guides you through the process of creating onedialog setup guides you through the process of creating one

Page 24: Institute of Technology Sligo - Dept of Computing Router Startup and Setup & Router Configuration 1 Semester 2 Chapter 5/6 Paul Flynn

Institute of Technology Sligo - Dept of Computing

Release 11.x Config-FilesRelease 11.x Config-Files Router configuration can be done in several ways. You Router configuration can be done in several ways. You

can use can use the privileged the privileged EXEC configureEXEC configure command to configure from a command to configure from a

virtual (remote) terminal, virtual (remote) terminal, a modem connection, or a modem connection, or a console terminal. a console terminal.

You can enter changes to an existing configuration at You can enter changes to an existing configuration at any time.any time.

You can use the privileged You can use the privileged EXEC configureEXEC configure command to command to load a configuration from a network TFTP server, which load a configuration from a network TFTP server, which allows you to maintain and store configuration allows you to maintain and store configuration information at a central site.information at a central site.

Page 25: Institute of Technology Sligo - Dept of Computing Router Startup and Setup & Router Configuration 1 Semester 2 Chapter 5/6 Paul Flynn

Institute of Technology Sligo - Dept of Computing

Release 11.x Config-FilesRelease 11.x Config-Files Some configuration commands include: Some configuration commands include:

configure terminal configure terminal – configures manually from the console terminal – configures manually from the console terminal configure memory configure memory – loads configuration information from NVRAM – loads configuration information from NVRAM copy tftp running-config copy tftp running-config – loads configuration information from a – loads configuration information from a

network TFTP server into RAM network TFTP server into RAM show running-config show running-config – displays the current configuration in RAM – displays the current configuration in RAM copy running-config startup-config copy running-config startup-config – stores the current – stores the current

configuration from RAM into NVRAM configuration from RAM into NVRAM copy running-config tftp copy running-config tftp – stores the current configuration from – stores the current configuration from

RAM on a network TFTP server RAM on a network TFTP server show startup-config show startup-config – displays the saved configuration, which is – displays the saved configuration, which is

the contents of NVRAM the contents of NVRAM erase startup-config erase startup-config – erases the contents of NVRAM – erases the contents of NVRAM

Page 26: Institute of Technology Sligo - Dept of Computing Router Startup and Setup & Router Configuration 1 Semester 2 Chapter 5/6 Paul Flynn

Institute of Technology Sligo - Dept of Computing

LabLab To fully understand Router configuration, do the To fully understand Router configuration, do the

lab.lab. Lab 6.1.2 Router config HyperTerminalLab 6.1.2 Router config HyperTerminal

Page 27: Institute of Technology Sligo - Dept of Computing Router Startup and Setup & Router Configuration 1 Semester 2 Chapter 5/6 Paul Flynn

Institute of Technology Sligo - Dept of Computing

Pre-Release 11.0 config-files Pre-Release 11.0 config-files The commands used with Cisco IOS, Release The commands used with Cisco IOS, Release

10.3 and earlier, have been replaced with new 10.3 and earlier, have been replaced with new commands. commands.

The old commands that have been replaced The old commands that have been replaced continue to perform their normal functions in the continue to perform their normal functions in the current release, but are no longer documented current release, but are no longer documented

Support for these commands will cease in a Support for these commands will cease in a future release future release

Page 28: Institute of Technology Sligo - Dept of Computing Router Startup and Setup & Router Configuration 1 Semester 2 Chapter 5/6 Paul Flynn

Institute of Technology Sligo - Dept of Computing

Early CommandsEarly Commands Configuration commands for Release 10.3 and earlier: Configuration commands for Release 10.3 and earlier:

config term config term – configures manually from the console terminal – configures manually from the console terminal config mem config mem – loads configuration information from NVRAM – loads configuration information from NVRAM config net config net – loads configuration information from a network – loads configuration information from a network

TFTP server into RAM TFTP server into RAM write term write term – displays the current configuration in RAM – displays the current configuration in RAM write memwrite mem– stores the current configuration from RAM into – stores the current configuration from RAM into

NVRAM NVRAM write net write net – stores the current configuration from RAM on a – stores the current configuration from RAM on a

network TFTP server network TFTP server show config show config – displays the saved configuration, which is the – displays the saved configuration, which is the

contents of NVRAM contents of NVRAM write erase write erase – erases the contents of NVRAM – erases the contents of NVRAM

Page 29: Institute of Technology Sligo - Dept of Computing Router Startup and Setup & Router Configuration 1 Semester 2 Chapter 5/6 Paul Flynn

Institute of Technology Sligo - Dept of Computing

Copying to a TFTP ServerCopying to a TFTP Server To store (backup) the current copy of the To store (backup) the current copy of the

configuration file in RAM on a TFTP server use the configuration file in RAM on a TFTP server use the copy running-config tftpcopy running-config tftp command and complete command and complete the following tasks: the following tasks: Step 1Step 1 – Enter the – Enter the copy running-config tftpcopy running-config tftp command. command. Step 2Step 2 – Enter the IP address of the host that you want – Enter the IP address of the host that you want

to use to store the configuration file. to use to store the configuration file. Step 3Step 3 – Enter the name you want to assign to the – Enter the name you want to assign to the

configuration file. configuration file. Step 4Step 4 – Confirm your choices by answering – Confirm your choices by answering yesyes each each

time.time.

Page 30: Institute of Technology Sligo - Dept of Computing Router Startup and Setup & Router Configuration 1 Semester 2 Chapter 5/6 Paul Flynn

Institute of Technology Sligo - Dept of Computing

Copying from a TFTP ServerCopying from a TFTP Server To configure a router by loading the configuration To configure a router by loading the configuration

file stored on one of your network TFTP servers, file stored on one of your network TFTP servers, complete the following tasks: complete the following tasks: Enter the command Enter the command copy tftp running-configcopy tftp running-config At the prompt, select a host or network configuration file. At the prompt, select a host or network configuration file.

The network configuration file contains commands that apply to The network configuration file contains commands that apply to all routers and terminal servers on the network. all routers and terminal servers on the network.

The host configuration file contains commands that apply to one The host configuration file contains commands that apply to one router in particular. router in particular.

At the next prompt, enter the IP address of the the TFTP At the next prompt, enter the IP address of the the TFTP server from which you are retrieving the configuration file.server from which you are retrieving the configuration file.

Page 31: Institute of Technology Sligo - Dept of Computing Router Startup and Setup & Router Configuration 1 Semester 2 Chapter 5/6 Paul Flynn

Institute of Technology Sligo - Dept of Computing

Copying from a TFTP ServerCopying from a TFTP Server Finally, enter the name of the configuration file Finally, enter the name of the configuration file

or accept the default name. or accept the default name. The filename convention is UNIX-based. The filename convention is UNIX-based. The default filename is The default filename is hostnamehostname -confg -confg for the host for the host

file and file and networknetwork -confg -confg for the network configuration for the network configuration file. file.

In the DOS environment, the server filenames are In the DOS environment, the server filenames are limited to eight characters plus a three-character limited to eight characters plus a three-character extension (e.g., extension (e.g., router.cfgrouter.cfg). ).

Confirm the configuration filename and the server Confirm the configuration filename and the server address that the system supplies. address that the system supplies.

Page 32: Institute of Technology Sligo - Dept of Computing Router Startup and Setup & Router Configuration 1 Semester 2 Chapter 5/6 Paul Flynn

Institute of Technology Sligo - Dept of Computing

LabLab

Note: You must configure the default Note: You must configure the default gateway IP address that the TFTP server gateway IP address that the TFTP server is attached to on the Router or the lab will is attached to on the Router or the lab will not worknot work Lab 6.1.4 Router Configuration TFTPLab 6.1.4 Router Configuration TFTP

Page 33: Institute of Technology Sligo - Dept of Computing Router Startup and Setup & Router Configuration 1 Semester 2 Chapter 5/6 Paul Flynn

Institute of Technology Sligo - Dept of Computing

NVRAM CommandsNVRAM Commands These commands manage the contents of NVRAM These commands manage the contents of NVRAM

with Release 11.x:with Release 11.x: configure memoryconfigure memory – Loads configuration information – Loads configuration information

from NVRAM. from NVRAM. erase startup-configerase startup-config – Erases the contents of NVRAM. – Erases the contents of NVRAM. copy running-config startup-configcopy running-config startup-config – Stores the – Stores the

current configuration from RAM (the running current configuration from RAM (the running configuration) into NVRAM (as the startup or backup configuration) into NVRAM (as the startup or backup configuration). configuration).

show startup-configshow startup-config – Displays the saved – Displays the saved configuration, which is the contents of NVRAM. configuration, which is the contents of NVRAM.

Page 34: Institute of Technology Sligo - Dept of Computing Router Startup and Setup & Router Configuration 1 Semester 2 Chapter 5/6 Paul Flynn

Institute of Technology Sligo - Dept of Computing

NVRAM CommandsNVRAM Commands These commands manage the contents of These commands manage the contents of

NVRAM with Release 10.3 and earlier:NVRAM with Release 10.3 and earlier: configure memoryconfigure memory – Loads configuration information – Loads configuration information

from NVRAM. from NVRAM. write erasewrite erase – Erases the contents of NVRAM. – Erases the contents of NVRAM. write memorywrite memory – Stores the current configuration from – Stores the current configuration from

RAM (the running configuration) into NVRAM (as the RAM (the running configuration) into NVRAM (as the startup or backup configuration). startup or backup configuration).

show configurationshow configuration – Displays the saved – Displays the saved configuration, which is the contents of NVRAM. configuration, which is the contents of NVRAM.

Page 35: Institute of Technology Sligo - Dept of Computing Router Startup and Setup & Router Configuration 1 Semester 2 Chapter 5/6 Paul Flynn

Institute of Technology Sligo - Dept of Computing

Router Configuration ModesRouter Configuration Modes

Table of Contents

Page 36: Institute of Technology Sligo - Dept of Computing Router Startup and Setup & Router Configuration 1 Semester 2 Chapter 5/6 Paul Flynn

Institute of Technology Sligo - Dept of Computing

Using Configuration ModesUsing Configuration Modes The EXEC mode interprets the commands you type and The EXEC mode interprets the commands you type and

carries out the corresponding operations. carries out the corresponding operations. You must log into the router before you can enter an You must log into the router before you can enter an

EXEC command. EXEC command. There are two EXEC modes (user mode and privileged There are two EXEC modes (user mode and privileged

mode).mode). The EXEC commands available in user mode are a The EXEC commands available in user mode are a

subset of the EXEC commands available in privileged subset of the EXEC commands available in privileged mode. mode.

From privileged mode, you can also access global From privileged mode, you can also access global configuration mode and specific configuration modesconfiguration mode and specific configuration modes

Page 37: Institute of Technology Sligo - Dept of Computing Router Startup and Setup & Router Configuration 1 Semester 2 Chapter 5/6 Paul Flynn

Institute of Technology Sligo - Dept of Computing

Using Configuration ModesUsing Configuration Modes Some specific configuration modes are: Some specific configuration modes are:

Interface Interface Subinterface Subinterface Controller Controller Map-list Map-list Map-class Map-class Line Line Router Router IPX-router IPX-router Route-map Route-map

If you type If you type exitexit, the router will back out one level, eventually allowing you to , the router will back out one level, eventually allowing you to log out. In general, typing log out. In general, typing exitexit from one of the specific configuration modes from one of the specific configuration modes will return you to global configuration mode. will return you to global configuration mode.

Pressing Ctrl-Z leaves configuration mode completely and returns the router Pressing Ctrl-Z leaves configuration mode completely and returns the router to privileged EXEC mode.to privileged EXEC mode.

Page 38: Institute of Technology Sligo - Dept of Computing Router Startup and Setup & Router Configuration 1 Semester 2 Chapter 5/6 Paul Flynn

Institute of Technology Sligo - Dept of Computing

Overview of Router ModesOverview of Router Modes

Page 39: Institute of Technology Sligo - Dept of Computing Router Startup and Setup & Router Configuration 1 Semester 2 Chapter 5/6 Paul Flynn

Institute of Technology Sligo - Dept of Computing

LabLab

Complete the following lab :Complete the following lab : Lab 6.2.1 Basic router configurationLab 6.2.1 Basic router configuration

You can also use the “Seven steps to You can also use the “Seven steps to Router Configuration Heaven” handout:Router Configuration Heaven” handout: http://cisco.netacad.net/ccnaDownloads/2/wwihttp://cisco.netacad.net/ccnaDownloads/2/wwi

dulsk_Seven_Steps_to_Router_Configurationdulsk_Seven_Steps_to_Router_Configuration_Heaven.doc_Heaven.doc

Page 40: Institute of Technology Sligo - Dept of Computing Router Startup and Setup & Router Configuration 1 Semester 2 Chapter 5/6 Paul Flynn

Institute of Technology Sligo - Dept of Computing

Global Configuration Modes Global Configuration Modes Global configuration commands apply to features that affect the Global configuration commands apply to features that affect the

system as a whole. system as a whole. Use the privileged EXEC command Use the privileged EXEC command configure configure to enter global to enter global

configuration mode. When you enter this command, the EXEC configuration mode. When you enter this command, the EXEC prompts you for the source of the configuration commands. prompts you for the source of the configuration commands.

Specify Specify terminalterminal, NVRAM, or a file stored on a network server as , NVRAM, or a file stored on a network server as the source. The default is to type in commands from the terminal the source. The default is to type in commands from the terminal console. Pressing the return key begins this configuration method.console. Pressing the return key begins this configuration method.

Commands to enable a particular routing or interface function begin Commands to enable a particular routing or interface function begin with global configuration commands: with global configuration commands: To configure a routing protocol (indicated by the prompt To configure a routing protocol (indicated by the prompt config-routerconfig-router) )

you first enter a global router protocol command type. you first enter a global router protocol command type. To configure an interface (indicated by the prompt To configure an interface (indicated by the prompt config-ifconfig-if) you first ) you first

enter the global interface type and number command. After entering enter the global interface type and number command. After entering commands in any of these modes, you finish with the command commands in any of these modes, you finish with the command exitexit..

Page 41: Institute of Technology Sligo - Dept of Computing Router Startup and Setup & Router Configuration 1 Semester 2 Chapter 5/6 Paul Flynn

Institute of Technology Sligo - Dept of Computing

Configuring Routing ProtocolConfiguring Routing Protocol

After a routing protocol is enabled by a After a routing protocol is enabled by a global command, the router configuration global command, the router configuration mode prompt mode prompt Router (config-router)#Router (config-router)# is is displayed. displayed.

Type a question mark (Type a question mark (??) to list the routing ) to list the routing protocol configuration sub-commands protocol configuration sub-commands

Page 42: Institute of Technology Sligo - Dept of Computing Router Startup and Setup & Router Configuration 1 Semester 2 Chapter 5/6 Paul Flynn

Institute of Technology Sligo - Dept of Computing

Interface Config CommandsInterface Config Commands Because all router interfaces are automatically in Because all router interfaces are automatically in

the administratively down mode, many features the administratively down mode, many features are enabled on a per-interface basis.are enabled on a per-interface basis.

Interface configuration commands modify the Interface configuration commands modify the operation of an Ethernet, a Token Ring, or a operation of an Ethernet, a Token Ring, or a serial port. serial port.

In addition, interface subcommands always In addition, interface subcommands always follow an interface command because the follow an interface command because the interface command defines the interface type interface command defines the interface type

Page 43: Institute of Technology Sligo - Dept of Computing Router Startup and Setup & Router Configuration 1 Semester 2 Chapter 5/6 Paul Flynn

Institute of Technology Sligo - Dept of Computing

Configuring a Specific Int Configuring a Specific Int On serial links, one side must provide a clocking signal, a DCE; the On serial links, one side must provide a clocking signal, a DCE; the

other side is a DTE. other side is a DTE. By default, Cisco routers are DTE devices, but in some cases they By default, Cisco routers are DTE devices, but in some cases they

can be used as DCE devices. can be used as DCE devices. If you are using an interface to provide clocking, you must specify a If you are using an interface to provide clocking, you must specify a

rate with the rate with the clockrateclockrate command. command. The The bandwidthbandwidth command overrides the default bandwidth that is command overrides the default bandwidth that is

displayed in the displayed in the show interfacesshow interfaces command and is used by some command and is used by some routing protocols such as IGRP.routing protocols such as IGRP. On the Cisco 4000 series routers, there are two connections on the On the Cisco 4000 series routers, there are two connections on the

outside of the box for Ethernet interfaces-an attachment unit interface outside of the box for Ethernet interfaces-an attachment unit interface (AUI) connector and a 10BASE-T connector. The default is AUI, so you (AUI) connector and a 10BASE-T connector. The default is AUI, so you must specify must specify media-type 10BASE-Tmedia-type 10BASE-T if you want to use the other if you want to use the other connectionconnection

Page 44: Institute of Technology Sligo - Dept of Computing Router Startup and Setup & Router Configuration 1 Semester 2 Chapter 5/6 Paul Flynn

Institute of Technology Sligo - Dept of Computing

LabLab

You will get a better handle on all this after You will get a better handle on all this after completing the Labcompleting the Lab Lab 6.2.5 Router interface configLab 6.2.5 Router interface config

Page 45: Institute of Technology Sligo - Dept of Computing Router Startup and Setup & Router Configuration 1 Semester 2 Chapter 5/6 Paul Flynn

Institute of Technology Sligo - Dept of Computing

Configuration MethodsConfiguration Methods

Table of Contents

Page 46: Institute of Technology Sligo - Dept of Computing Router Startup and Setup & Router Configuration 1 Semester 2 Chapter 5/6 Paul Flynn

Institute of Technology Sligo - Dept of Computing

Release 11.x Config Method Release 11.x Config Method The Figure shows a way The Figure shows a way

you can:you can: Enter configuration Enter configuration

statements statements Examine the changes you Examine the changes you

have made have made If necessary, modify or If necessary, modify or

remove configuration remove configuration statements statements

Save the changes to a Save the changes to a backup in NVRAM that the backup in NVRAM that the router will use when it router will use when it starts up starts up

Page 47: Institute of Technology Sligo - Dept of Computing Router Startup and Setup & Router Configuration 1 Semester 2 Chapter 5/6 Paul Flynn

Institute of Technology Sligo - Dept of Computing

Pre-11.0 Release ConfigPre-11.0 Release Config

Page 48: Institute of Technology Sligo - Dept of Computing Router Startup and Setup & Router Configuration 1 Semester 2 Chapter 5/6 Paul Flynn

Institute of Technology Sligo - Dept of Computing

Password Config Methods Password Config Methods You can secure your system by using passwords to restrict access. You can secure your system by using passwords to restrict access. Passwords can be established both on individual lines and in the Passwords can be established both on individual lines and in the

privileged EXEC mode.privileged EXEC mode. line console 0 line console 0 – establishes a password on the console terminal – establishes a password on the console terminal line vty 0 4line vty 0 4 – establishes password protection on incoming Telnet – establishes password protection on incoming Telnet

sessions sessions enable password enable password – restricts access to privileged EXEC mode – restricts access to privileged EXEC mode enable secret enable secret password (from the system configuration dialog to set up password (from the system configuration dialog to set up

global parameters – uses a Cisco proprietary encryption process to alter global parameters – uses a Cisco proprietary encryption process to alter the password character string the password character string

You can further protect passwords from being displayed by using You can further protect passwords from being displayed by using the the service password-encryptionservice password-encryption command. This encryption command. This encryption algorithm does not match the Data Encryption Standard (DES).algorithm does not match the Data Encryption Standard (DES).

Page 49: Institute of Technology Sligo - Dept of Computing Router Startup and Setup & Router Configuration 1 Semester 2 Chapter 5/6 Paul Flynn

Institute of Technology Sligo - Dept of Computing

Router Identification ConfigRouter Identification Config The configuration of network devices determines the network's The configuration of network devices determines the network's

behavior. To manage device configurations, you need to list and behavior. To manage device configurations, you need to list and compare configuration files on running devices, store configuration compare configuration files on running devices, store configuration files on network servers for shared access, and perform software files on network servers for shared access, and perform software installations and upgrades.installations and upgrades.

One of your first basic tasks is to name your router. The name of the One of your first basic tasks is to name your router. The name of the router is considered to be the host name and is the name displayed router is considered to be the host name and is the name displayed by the system prompt. If you do not configure a name, the system by the system prompt. If you do not configure a name, the system default router name will be Router. You can name the router in default router name will be Router. You can name the router in global configuration mode. global configuration mode.

You can configure a message-of-the-day banner to be displayed on You can configure a message-of-the-day banner to be displayed on all connected terminals. This banner will be displayed at login and is all connected terminals. This banner will be displayed at login and is useful for conveying messages that affect all router users (e.g. useful for conveying messages that affect all router users (e.g. impending system shutdowns). To configure this message, use the impending system shutdowns). To configure this message, use the banner motdbanner motd command in the global configuration mode. command in the global configuration mode.

Page 50: Institute of Technology Sligo - Dept of Computing Router Startup and Setup & Router Configuration 1 Semester 2 Chapter 5/6 Paul Flynn

Institute of Technology Sligo - Dept of Computing

Challenge LabsChallenge Labs

Table of Contents

Page 51: Institute of Technology Sligo - Dept of Computing Router Startup and Setup & Router Configuration 1 Semester 2 Chapter 5/6 Paul Flynn

Institute of Technology Sligo - Dept of Computing

Configuration LabsConfiguration Labs To master router configuration, do the labs.To master router configuration, do the labs.

Lab 6.4.1 Router configuration challengeLab 6.4.1 Router configuration challenge Lab 6.4.2 Cisco configmakerLab 6.4.2 Cisco configmaker Lab 6.4.3 Router config. web browserLab 6.4.3 Router config. web browser

Active mental participation in answering lab Active mental participation in answering lab questions is crucial to do well on the test. questions is crucial to do well on the test.

You will also retain the knowledge longer if you You will also retain the knowledge longer if you think about what you are doing and why!think about what you are doing and why!