2003 Cisco Systems Inc All rights reserved Module

  • Slides: 26
Download presentation
© 2003, Cisco Systems, Inc. All rights reserved.

© 2003, Cisco Systems, Inc. All rights reserved.

Module 8: Operating a Configuring Cisco IOS Devices Starting a Router © 2003, Cisco

Module 8: Operating a Configuring Cisco IOS Devices Starting a Router © 2003, Cisco Systems, Inc. All rights reserved. 2

Objectives • Start a router and recognize the normal boot sequence • Use the

Objectives • Start a router and recognize the normal boot sequence • Use the command-line interface to interact with the Cisco IOS software, given an operational router • Use the online help facilities associated with the command-line interfaces, given an operational router © 2003, Cisco Systems, Inc. All rights reserved. INTRO v 1. 0 a— 8 -3

Initial Startup of the Cisco Router • System startup routines initiate router software •

Initial Startup of the Cisco Router • System startup routines initiate router software • Router falls back to startup alternatives if needed 1. Before you start the router, verify the power, cabling, and console connection. 2. Push the power switch to “on. ” 3. Observe the boot sequence: • Cisco IOS software output text appears on the console © 2003, Cisco Systems, Inc. All rights reserved. INTRO v 1. 0 a— 8 -4

Bootup Output from the Router Console --- System Configuration Dialog --Continue with configuration dialog?

Bootup Output from the Router Console --- System Configuration Dialog --Continue with configuration dialog? [yes/no]: yes At any point you may enter a question mark ‘? ’ for help. Use ctrl-c to abort configuration dialog at any prompt. Default settings are in square brackets ‘[ ]’. wg_ro_c con 0 is now available Setup Mode Press RETURN to get started. wg_ro_c> User-Mode Prompt Unconfigured Versus Configured Router © 2003, Cisco Systems, Inc. All rights reserved. INTRO v 1. 0 a— 8 -5

Setup: The Initial Configuration Dialog Router#setup --- System Configuration Dialog --Continue with configuration dialog?

Setup: The Initial Configuration Dialog Router#setup --- System Configuration Dialog --Continue with configuration dialog? [yes/no]: yes At any point you may enter a question mark '? ' for help. Use ctrl-c to abort configuration dialog at any prompt. Default settings are in square brackets '[]'. Basic management setup configures only enough connectivity for management of the system, extended setup will ask you to configure each interface on the system Would you like to enter basic management setup? [yes/no]: no © 2003, Cisco Systems, Inc. All rights reserved. INTRO v 1. 0 a— 8 -6

Setup Interface Summary First, would you like to see the current interface summary? [yes]:

Setup Interface Summary First, would you like to see the current interface summary? [yes]: Interface IP-Address OK? Method Status Protocol BRI 0 unassigned YES unset administratively down BRI 0: 1 unassigned YES unset administratively down BRI 0: 2 unassigned YES unset administratively down Ethernet 0 unassigned YES unset administratively down Serial 0 unassigned YES unset administratively down Interfaces Found During Startup © 2003, Cisco Systems, Inc. All rights reserved. INTRO v 1. 0 a— 8 -7

Setup Initial Global Parameters Configuring global parameters: Enter host name [Router]: wg_ro_c The enable

Setup Initial Global Parameters Configuring global parameters: Enter host name [Router]: wg_ro_c The enable secret is a password used to protect access to privileged EXEC and configuration modes. This password, after entered, becomes encrypted in the configuration. Enter enable secret: cisco The enable password is used when you do not specify an enable secret password, with some older software versions, and some boot images. Enter enable password: sanfran The virtual terminal password is used to protect access to the router over a network interface. Enter virtual terminal password: sanjose Configure SNMP Network Management? [no]: © 2003, Cisco Systems, Inc. All rights reserved. INTRO v 1. 0 a— 8 -8

Setup Initial Protocol Configurations Configure LAT? [yes]: no Configure Apple. Talk? [no]: Configure DECnet?

Setup Initial Protocol Configurations Configure LAT? [yes]: no Configure Apple. Talk? [no]: Configure DECnet? [no]: Configure IP? [yes]: Configure IGRP routing? [yes]: no Configure RIP routing? [no]: Configure CLNS? [no]: Configure IPX? [no]: Configure Vines? [no]: Configure XNS? [no]: Configure Apollo? [no]: © 2003, Cisco Systems, Inc. All rights reserved. INTRO v 1. 0 a— 8 -9

Setup Interface Parameters BRI interface needs isdn switch-type to be configured Valid switch types

Setup Interface Parameters BRI interface needs isdn switch-type to be configured Valid switch types are : [0] none. . Only if you don't want to configure BRI. [1] basic-1 tr 6. . 1 TR 6 switch type for Germany [2] basic-5 ess. . AT&T 5 ESS switch type for the US/Canada [3] basic-dms 100. . Northern DMS-100 switch type for US/Canada [4] basic-net 3. . NET 3 switch type for UK and Europe [5] basic-ni. . . National ISDN switch type [6] basic-ts 013. . . TS 013 switch type for Australia [7] ntt. . . NTT switch type for Japan [8] vn 3. . . VN 3 and VN 4 switch types for France Choose ISDN BRI Switch Type [2]: Configuring interface parameters: Do you want to configure BRI 0 (BRI d-channel) interface? [no]: Do you want to configure Ethernet 0 interface? [no]: yes Configure IP on this interface? [no]: yes IP address for this interface: 10. 1. 1. 33 Subnet mask for this interface [255. 0. 0. 0] : 255. 0 Class A network is 10. 0, 24 subnet bits; mask is /24 Do you want to configure Serial 0 © 2003, Cisco Systems, Inc. All rights reserved. interface? [no]: INTRO v 1. 0 a— 8 -10

Setup Script Review and Use The following configuration command script was created: hostname Routerinterface

Setup Script Review and Use The following configuration command script was created: hostname Routerinterface BRI 0 enable secret 5 shutdown $1$/CCk$4 r 7 z. Dw. DNeqkx. FO. k. Jx. C 3 G 0 enable passwordno sanfran ip address line vty 0 4 ! password sanjose interface Ethernet 0 no snmp-server no shutdown ! ip address 10. 1. 1. 31 255. 0 no appletalk routing no mop enabled no decnet routing ! ip routing interface Serial 0 no clns routingshutdown no ipx routing no ip address no vines routing <text omitted> no xns routing end no apollo routing isdn switch-type [0]basic-5 ess Go to the IOS command prompt without saving this config. [1] Return back to the setup without saving this config. [2] Save this configuration to nvram and exit. Enter your selection [2]: © 2003, Cisco Systems, Inc. All rights reserved. INTRO v 1. 0 a— 8 -11

Logging In to the Router Console wg_ro_c con 0 is now available Press RETURN

Logging In to the Router Console wg_ro_c con 0 is now available Press RETURN to get started. wg_ro_c>enable wg_ro_c#disable wg_ro_c>logout © 2003, Cisco Systems, Inc. All rights reserved. User-Mode Prompt Privileged-Mode Prompt INTRO v 1. 0 a— 8 -12

Router User-Mode Command List wg_ro_c>? Exec commands: access-enable atmsig cd clear connect dir disable

Router User-Mode Command List wg_ro_c>? Exec commands: access-enable atmsig cd clear connect dir disable disconnect enable exit help lat lock login logout -- More -- Create a temporary Access-List entry Execute Atm Signalling Commands Change current device Reset functions Open a terminal connection List files on given device Turn off privileged commands Disconnect an existing network connection Turn on privileged commands Exit from the EXEC Description of the interactive help system Open a lat connection Lock the terminal Log in as a particular user Exit from the EXEC • You can abbreviate a command to the fewest characters that make a unique character string. © 2003, Cisco Systems, Inc. All rights reserved. INTRO v 1. 0 a— 8 -13

Router Privileged-Mode Command List wg_ro_c#? Exec commands: access-enable access-profile access-template bfe cd clear clock

Router Privileged-Mode Command List wg_ro_c#? Exec commands: access-enable access-profile access-template bfe cd clear clock configure connect copy debug delete dir disable disconnect enable erase exit help -- More -- Create a temporary Access-List entry Apply user-profile to interface Create a temporary Access-List entry For manual emergency modes setting Change current directory Reset functions Manage the system clock Enter configuration mode Open a terminal connection Copy from one file to another Debugging functions (see also 'undebug') Delete a file List files on a filesystem Turn off privileged commands Disconnect an existing network connection Turn on privileged commands Erase a filesystem Exit from the EXEC Description of the interactive help system • You can complete a command string by entering the unique character string, then pressing the Tab key. © 2003, Cisco Systems, Inc. All rights reserved. INTRO v 1. 0 a— 8 -14

Router Command-Line Help Facilities Context-Sensitive Help Provides a list of commands and the arguments

Router Command-Line Help Facilities Context-Sensitive Help Provides a list of commands and the arguments associated with a specific command Console Error Messages Identifies problems with router commands that are incorrectly entered so you can alter or correct them Command History Buffer Allows recall of long or complex commands or entries for reentry, review, or correction © 2003, Cisco Systems, Inc. All rights reserved. INTRO v 1. 0 a— 8 -15

Router Context-Sensitive Help Router# clok Translating "CLOK" % Unknown command or computer name, or

Router Context-Sensitive Help Router# clok Translating "CLOK" % Unknown command or computer name, or unable to find computer address Router# cl? clear clock Router# clock • Symbolic Translation % Incomplete command. • Command Prompting Router# clock ? • Last Command Recall set Set the time and date Router# clock set % Incomplete command. Router# <Ctrl-P>clock set ? hh: mm: ss Current Time © 2003, Cisco Systems, Inc. All rights reserved. INTRO v 1. 0 a— 8 -16

Router Context-Sensitive Help (Cont. ) Router# clok Translating "CLOK" % Unknown command or clock

Router Context-Sensitive Help (Cont. ) Router# clok Translating "CLOK" % Unknown command or clock computerset name, or unable to find computer address Router# 19: 56: 00 % Incomplete command. Router# clear Router# clock <1 -31> MONTH • Command Prompting set 19: 56: 00 ? Day of the month Month of the year % Incomplete command. Router# clock set 19: 56: 00 04 8 ^ Router# set Router# Set%the time and input date Invalid detected at the '^' marker • Syntax Checking • Command Prompting Router# clock set 19: 56: 00 04 August command. % Incomplete % command. Incomplete Router# clock set 19: 56: 00 04 August ? hh: mm: ss <1993 -2035> Current Time Year © 2003, Cisco Systems, Inc. All rights reserved. INTRO v 1. 0 a— 8 -17

Enhanced Editing Commands Router>Shape the future of internetworking by creating unprecedented value for customers,

Enhanced Editing Commands Router>Shape the future of internetworking by creating unprecedented value for customers, employees, and partners. © 2003, Cisco Systems, Inc. All rights reserved. INTRO v 1. 0 a— 8 -18

Enhanced Editing Commands (Cont. ) Router>$ value for customers, employees, and partners. (Automatic scrolling

Enhanced Editing Commands (Cont. ) Router>$ value for customers, employees, and partners. (Automatic scrolling of long lines. ) Ctrl-A Move to the beginning of the command line. Ctrl-E Move to the end of the command line. Esc-B Move back one word. Esc-F Move forward one word. Ctrl-B Move back one character. Ctrl-F Move forward one character. Ctrl-D Delete a single character. © 2003, Cisco Systems, Inc. All rights reserved. INTRO v 1. 0 a— 8 -19

Router Command History Ctrl-P or Up Arrow Recalls last (previous) commands Ctrl-N or Down

Router Command History Ctrl-P or Up Arrow Recalls last (previous) commands Ctrl-N or Down Arrow Recalls more recent commands show history Shows command buffer contents history size line Sets the buffer size permanently terminal history size lines Sets session command buffer size © 2003, Cisco Systems, Inc. All rights reserved. INTRO v 1. 0 a— 8 -20

show version Command wg_ro_a#show version Cisco Internetwork Operating System Software IOS (tm) 2500 Software

show version Command wg_ro_a#show version Cisco Internetwork Operating System Software IOS (tm) 2500 Software (C 2500 -JS-L), Version 12. 0(3), RELEASE SOFTWARE (fc 1) Copyright (c) 1986 -1999 by cisco Systems, Inc. Compiled Mon 08 -Feb-99 18: 18 by phanguye Image text-base: 0 x 03050 C 84, data-base: 0 x 00001000 ROM: System Bootstrap, Version 11. 0(10 c), SOFTWARE BOOTFLASH: 3000 Bootstrap Software (IGS-BOOT-R), Version 11. 0(10 c), RELEASE SOFTWARE(fc 1) wg_ro_a uptime is 20 minutes System restarted by reload System image file is "flash: c 2500 -js-l_120 -3. bin" (output omitted) --More-Configuration register is 0 x 2102 © 2003, Cisco Systems, Inc. All rights reserved. INTRO v 1. 0 a— 8 -21

Viewing the Configuration RAM NVRAM Configuration IOS show running-config show startup-config Console Setup Utility

Viewing the Configuration RAM NVRAM Configuration IOS show running-config show startup-config Console Setup Utility © 2003, Cisco Systems, Inc. All rights reserved. INTRO v 1. 0 a— 8 -22

show running-config and show startup-config Commands In RAM In NVRAM wg_ro_c#show running-config Building configuration.

show running-config and show startup-config Commands In RAM In NVRAM wg_ro_c#show running-config Building configuration. . . wg_ro_c#show startup-config Using 1359 out of 32762 bytes ! version 12. 0 ! -- More -- Current configuration: ! version 12. 0 ! -- More -- • Displays the current and saved configuration © 2003, Cisco Systems, Inc. All rights reserved. INTRO v 1. 0 a— 8 -23

Summary • The startup of a Cisco router requires that you verify the physical

Summary • The startup of a Cisco router requires that you verify the physical installation, power up the router, and view the Cisco IOS software output on the console. • The router startup sequence is similar to the startup sequence of the Catalyst switch. The router first performs POST, then it finds and loads the IOS image. Finally, it finds and loads the device configuration file. • Use the enable command to access the privileged EXEC mode from the user EXEC mode. © 2003, Cisco Systems, Inc. All rights reserved. INTRO v 1. 0 a— 8 -24

Summary (Cont. ) • The Cisco router uses Cisco IOS software with extensive command-line

Summary (Cont. ) • The Cisco router uses Cisco IOS software with extensive command-line input help facilities, including context-sensitive help. • The Cisco IOS CLI includes an enhanced editing mode that provides a set of editing key functions. • The Cisco router CLI provides a history or record of commands you have entered. This feature, called the command history, is particularly useful to help you recall long or complex commands or entries. • After logging in to a Cisco router, you can verify the router initial startup status using the router status commands: show version, show runningconfiguration, and show startupconfiguration. © 2003, Cisco Systems, Inc. All rights reserved. INTRO v 1. 0 a— 8 -25