Operating and Configuring a Cisco IOS Device · BRI0:2 unassigned YES unset administrative ly down...

Post on 30-Apr-2020

20 views 0 download

transcript

© 2000, Cisco Systems, Inc. 4-1

Operating and Configuring a Cisco

IOS Device

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-2

ObjectivesObjectives

On completion of this chapter, you will be able to perform the following tasks:• Start up the Catalyst switch and Cisco

router and observe the boot up processes

• Provide an initial configuration for the switch and perform the router’s initial setup configuration

• Enable and identify the command modes in each network device

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-3

Objectives (cont.)Objectives (cont.)

• Use the various help and command line-editing features of each device’s user interface

• Show and recognize fundamental technical details about each network device

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-4

Cisco’s IOS software delivers network services and enables networked applications.

Cisco Internetwork Operating System (IOS) Software

Cisco Internetwork Operating System (IOS) Software

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-5

Network Device ConfigurationNetwork Device Configuration

• Configuration sets up the device with:

– Network policy of the functions required

– Protocol addressing and parameter settings

– Options for administration and management

• Catalyst switch memory has initial configuration with default settings

• Cisco router will prompt for initial configuration if there is no configuration in memory

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-6

• Find and check device hardware

• Find and load Cisco IOS software image

• Find and apply device configurations

An Overview of Cisco Device Startup

An Overview of Cisco Device Startup

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-7

• Configurations can come from many sources

• Configurations will act in device memory

Console port

Auxiliary port

Interfaces

PC or Unix server

Web or Network Managementserver

Virtual terminal

External Configuration Sources

External Configuration Sources

Telnet

TFTP

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-8

• Uses a command line interface

• Operations vary on different internetworking devices

• Type or paste entries in the console command modes

• Enter key instructs device to parse and execute the command

• Two primary EXEC modes are user mode and privileged mode

• Command modes have distinctive prompts

CiscoIOS

Cisco IOS User Interface Fundamentals

Cisco IOS User Interface Fundamentals

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-9

User Mode• Limited examination of switch or router

• Command Prompt is hostname>

There are two main EXEC modes for entering commands.

First mode:

Cisco IOS Software EXECCisco IOS Software EXEC

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-10

Privileged (or enabled) Mode• Detailed examination of switch or router

• Enables configuration and debugging

• Prerequisite for other configuration modes

• Command prompts on the device hostname#

Second mode (and most commonly used):

Cisco IOS Software EXEC (cont.)Cisco IOS Software EXEC (cont.)

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-11

• System startup routines initiate router software

• Router falls back to startup alternatives if needed

Check hardware

Find and load Cisco IOSsoftware image

Find and apply routerconfiguration information

Load Bootstrap

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 on the console

Initial Start Up of the Cisco RouterInitial Start Up of the Cisco Router

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-12

Unconfigured versus configured router

--- 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 '[ ]'.

Setup modeSetup mode

wg_ro_c con0 is now available

Press RETURN to get started.

User-modeprompt

User-modeprompt

wg_ro_c>

BootUp Output from the Router

BootUp Output from the Router

Console

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-13

Setup: The Initial Configuration Dialog

Setup: The Initial Configuration Dialog

Router#setup

--- System Configuration Dialog ---

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

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 connectivityfor management of the system, extended setup will ask youto configure each interface on the system

Would you like to enter basic management setup? [yes/no]: n

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-14

Setup Interface SummarySetup Interface Summary

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

Interface IP-Address OK? Method Status Protocol

BRI0 unassigned YES unset administratively down down

BRI0:1 unassigned YES unset administratively down down

BRI0:2 unassigned YES unset administratively down down

Ethernet0 unassigned YES unset administratively down down

Serial0 unassigned YES unset administratively down down

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

Interface IP-Address OK? Method Status Protocol

BRI0 unassigned YES unset administratively down down

BRI0:1 unassigned YES unset administratively down down

BRI0:2 unassigned YES unset administratively down down

Ethernet0 unassigned YES unset administratively down down

Serial0 unassigned YES unset administratively down down

Interfaces found during startup

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-15

Setup Global ParametersSetup Global Parameters

Initial global parameters

Configuring global parameters:

Enter host name [Router]:wg_ro_c

The enable secret is a password used to protect access toprivileged EXEC and configuration modes. This password, afterentered, becomes encrypted in the configuration.Enter enable secret: cisco

The enable password is used when you do not specify anenable secret password, with some older software versions, andsome boot images.Enter enable password: sanfran

The virtual terminal password is used to protectaccess to the router over a network interface.Enter virtual terminal password: sanjoseConfigure SNMP Network Management? [no]:

Configuring global parameters:

Enter host name [Router]:wg_ro_c

The enable secret is a password used to protect access toprivileged EXEC and configuration modes. This password, afterentered, becomes encrypted in the configuration.Enter enable secret: cisco

The enable password is used when you do not specify anenable secret password, with some older software versions, andsome boot images.Enter enable password: sanfran

The virtual terminal password is used to protectaccess to the router over a network interface.Enter virtual terminal password: sanjoseConfigure SNMP Network Management? [no]:

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-16

Setup Global Parameters (cont.)

Setup Global Parameters (cont.)

Initial protocol configurations

Configure LAT? [yes]: nConfigure AppleTalk? [no]:Configure DECnet? [no]:Configure IP? [yes]:Configure IGRP routing? [yes]: nConfigure RIP routing? [no]:

Configure CLNS? [no]:Configure IPX? [no]:Configure Vines? [no]:Configure XNS? [no]:Configure Apollo? [no]:

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-17

Setup Interface ParametersSetup Interface Parameters

BRI interface needs isdn switch-type to be configuredValid switch types are :

[0] none..........Only if you don't want to configure BRI.[1] basic-1tr6....1TR6 switch type for Germany[2] basic-5ess....AT&T 5ESS switch type for the US/Canada[3] basic-dms100..Northern DMS-100 switch type for US/Canada[4] basic-net3....NET3 switch type for UK and Europe[5] basic-ni......National ISDN switch type[6] basic-ts013...TS013 switch type for Australia[7] ntt...........NTT switch type for Japan[8] vn3...........VN3 and VN4 switch types for France

Choose ISDN BRI Switch Type [2]:

Configuring interface parameters:

Do you want to configure BRI0 (BRI d-channel) interface? [no]:

Do you want to configure Ethernet0 interface? [no]: yConfigure IP on this interface? [no]: yIP address for this interface: 10.1.1.33Subnet mask for this interface [255.0.0.0] : 255.255.255.0Class A network is 10.0.0.0, 24 subnet bits; mask is /24

Do you want to configure Serial0 interface? [no]:

BRI interface needs isdn switch-type to be configuredValid switch types are :

[0] none..........Only if you don't want to configure BRI.[1] basic-1tr6....1TR6 switch type for Germany[2] basic-5ess....AT&T 5ESS switch type for the US/Canada[3] basic-dms100..Northern DMS-100 switch type for US/Canada[4] basic-net3....NET3 switch type for UK and Europe[5] basic-ni......National ISDN switch type[6] basic-ts013...TS013 switch type for Australia[7] ntt...........NTT switch type for Japan[8] vn3...........VN3 and VN4 switch types for France

Choose ISDN BRI Switch Type [2]:

Configuring interface parameters:

Do you want to configure BRI0 (BRI d-channel) interface? [no]:

Do you want to configure Ethernet0 interface? [no]: yConfigure IP on this interface? [no]: yIP address for this interface: 10.1.1.33Subnet mask for this interface [255.0.0.0] : 255.255.255.0Class A network is 10.0.0.0, 24 subnet bits; mask is /24

Do you want to configure Serial0 interface? [no]:

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-18

Setup Script Review and UseSetup Script Review and Use

The following configuration command script was created:

hostname Routerenable secret 5 $1$/CCk$4r7zDwDNeqkxFO.kJxC3G0enable password sanfranline vty 0 4password sanjoseno snmp-server!no appletalk routingno decnet routingip routingno clns routingno ipx routingno vines routingno xns routingno apollo routingisdn switch-type basic-5ess

interface BRI0shutdownno ip address!interface Ethernet0no shutdownip address 10.1.1.31 255.255.255.0no mop enabled!interface Serial0shutdownno ip address<text omitted>end

[0] 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]:

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-19

Console

wg_ro_c>wg_ro_c>enablewg_ro_c#wg_ro_c#disablewg_ro_c>wg_ro_c>logout

wg_ro_c con0 is now availablePress RETURN to get started.

User mode promptUser mode prompt

Privileged mode promptPrivileged mode prompt

Logging into the RouterLogging into the Router

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-20

You can abbreviate a command to the fewest characters that make a unique character string

Router User Mode Command List

Router User Mode Command List

wg_ro_c>?Exec commands:

access-enable Create a temporary Access-List entryatmsig Execute Atm Signalling Commandscd Change current deviceclear Reset functionsconnect Open a terminal connectiondir List files on given devicedisable Turn off privileged commandsdisconnect Disconnect an existing network connectionenable Turn on privileged commandsexit Exit from the EXEChelp Description of the interactive help systemlat Open a lat connectionlock Lock the terminallogin Log in as a particular userlogout Exit from the EXEC

-- More --

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-21

wg_ro_c#?Exec commands:access-enable Create a temporary Access-List entryaccess-profile Apply user-profile to interfaceaccess-template Create a temporary Access-List entrybfe For manual emergency modes settingcd Change current directoryclear Reset functionsclock Manage the system clockconfigure Enter configuration modeconnect Open a terminal connectioncopy Copy from one file to anotherdebug Debugging functions (see also 'undebug')delete Delete a filedir List files on a filesystemdisable Turn off privileged commandsdisconnect Disconnect an existing network connectionenable Turn on privileged commandserase Erase a filesystemexit Exit from the EXEChelp Description of the interactive help system

-- More --

Router Privileged Mode Command List

Router Privileged Mode Command List

You can complete a command string by typing the unique character string then pressing the tab key

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-22

Router Command Line Help Facilities

Router Command Line Help Facilities

Context-Sensitive Help Console Error Messages

Identify problems with router commands incorrectly entered so that you can alter or correct them.

Allows recall of long or complex commands or entries for reentry, review, or correction.

Command History Buffer

Provides a list of commands and the arguments associated with a specific command.

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-23

Router Context-Sensitive HelpRouter Context-Sensitive Help

Router# clok

Translating "CLOK"

% Unknown command or computer name, or unable to find computer address

Router# cl?

clear clock

Router# clock

% Incomplete command.

Router# clock ?

set Set the time and date

Router# clock set

% Incomplete command.

Router# <Ctrl-P>clock set ?

hh:mm:ss Current Time

• Symbolic translation

• Command prompting

• Last command recall

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-24

Router Context-Sensitive Help (cont.)

Router Context-Sensitive Help (cont.)

Router# clok

Translating "CLOK"

% Unknown command or computer name, or unable to find computer address

Router#

clear clock

Router#

% Incomplete command.

Router#

set Set the time and date

Router#

% Incomplete command.

Router#

hh:mm:ss Current Time

Router# clock set 19:56:00% Incomplete command.

Router# clock set 19:56:00 ?

<1-31> Day of the monthMONTH Month of the year

Router# clock set 19:56:00 04 8^

% Invalid input detected at the '^' marker

Router# clock set 19:56:00 04 August% Incomplete command.

Router# clock set 19:56:00 04 August ?<1993-2035> Year

• Command prompting

• Syntax checking

• Command prompting

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-25

Router>Shape the future of internetworking by creating unpreced

Using Enhanced Editing Commands

Using Enhanced Editing Commands

Shape the future of internetworking by creating unprecedented value for customers, employees, and partners.

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-26

Router>$ future of internetworking by creating unprecedented op

Using Enhanced Editing Commands

Using Enhanced Editing Commands

(Automatic scrolling of long lines).

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-27

Router>Shape the value of internetworking by creating unpreced

Using Enhanced Editing Commands

Using Enhanced Editing Commands

(Automatic scrolling of long lines).

<Ctrl-A> Move to the beginning of the command line.

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-28

Router>$ value for customers, employees, and partners.

Using Enhanced Editing Commands

Using Enhanced Editing Commands

(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.

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-29

Using Enhanced Editing Commands

Using Enhanced Editing Commands

(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.

Router>$ value for customers, employees, and partners.

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-30

Using Enhanced Editing Commands

Using Enhanced Editing Commands

(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.

<Ctrl-F> Move forward one character.

Router>$ value for customers, employees, and partners.

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-31

Using Enhanced Editing Commands

Using Enhanced Editing Commands

(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.

<Ctrl-F> Move forward one character.

<Ctrl-B> Move back one character.

Router>$ value for customers, employees, and partners.

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-32

Using Enhanced Editing Commands

Using Enhanced Editing Commands

(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.

<Ctrl-F> Move forward one character.

<Ctrl-B> Move back one character.

<Esc-F> Move forward one word.

Router>$ value for customers, employees, and partners.

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-33

(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.

<Ctrl-F> Move forward one character.

<Ctrl-B> Move back one character.

<Esc-F> Move forward one word.

Using Enhanced Editing Commands

Using Enhanced Editing Commands

<Ctrl-D> Delete a single character.

Router>$ value for customers, employees, and partners.

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-34

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

Reviewing Router Command History

Reviewing Router Command History

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-35

show version Commandshow version Command

wg_ro_a#show versionCisco Internetwork Operating System Software IOS (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(10c), RELEASE SOFTWARE(fc1)

wg_ro_a uptime is 20 minutesSystem restarted by reloadSystem image file is "flash:c2500-js-l_120-3.bin"(output omitted)--More--

Configuration register is 0x2102

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-36

Viewing the ConfigurationViewing the Configuration

Console

IOS

Setup utility

showstartup-config

showrunning-config

Setup saves the configuration to NVRAM

ConfigConfig

RAM NVRAM

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-37

show running and show startup Commands

show running and show startup Commands

wg_ro_c#show startup-configUsing 1359 out of 32762 bytes!version 12.0!

-- More --

wg_ro_c#show running-configBuilding configuration...

Current configuration:!version 12.0!

-- More --

In NVRAMIn RAM

Display current and saved configuration

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-38

Overview of Router ModesOverview of Router Modes

Router(config)#

Router>enable

Router#config term

Exit

Ctrl-Z (end)User EXEC mode

Privileged EXEC mode

Global configuration mode

Configuration Mode Prompt

Interface Router(config-if)#Subinterface Router(config-subif)#Controller Router(config-controller)#Line Router(config-line)#Router Router(config-router)#IPX router Router(config-ipx-router)#

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-39

Saving ConfigurationsSaving Configurations

wg_ro_c#wg_ro_c#copy running-config startup-configDestination filename [startup-config]?Building configuration…

wg_ro_c#

wg_ro_c#wg_ro_c#copy running-config startup-configDestination filename [startup-config]?Building configuration…

wg_ro_c#

Copy the current configuration to NVRAM

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-40

Configuring Router Identification

Configuring Router Identification

Sets local identity or message for the accessed router or interface

Router NameRouter(config)#hostname wg_ro_cwg_ro_c(config)#

Message of the Day Bannerwg_ro_c(config)#banner motd #

Accounting DepartmentYou have entered a secured system. Authorized accessonly! #

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-41

Configuring Router Identification

Configuring Router Identification

• Sets local identity or message for the accessed router or interface

Router NameRouter(config)#hostname wg_ro_cwg_ro_c(config)#

Message of the Day Bannerwg_ro_c(config)#banner motd #

Accounting DepartmentYou have entered a secured system. Authorized accessonly! #

Interface Descriptionwg_ro_c(config)#interface ethernet 0wg_ro_c(config-if)#description Engineering LAN, Bldg. 18

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-42

Router(config)#line console 0Router(config-line)#loginRouter(config-line)#password cisco

Console Password

Virtual Terminal Password

Router(config)#line vty 0 4Router(config-line)#login Router(config-line)#password sanjose

Router Password Configuration

Router Password Configuration

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-43

Router(config)#line console 0Router(config-line)#loginRouter(config-line)#password cisco

Console Password

Virtual Terminal Password Router(config)#line vty 0 4Router(config-line)#login Router(config-line)#password sanjose

Enable Password

Router(config)#enable password cisco

Secret Password

Router(config)#enable secret sanfran

Router Password Configuration

Router Password Configuration

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-44

Other Console Line Commands

Other Console Line Commands

Router(config)#line console 0Router(config-line)#exec-timeout 0 0

Router(config)#line console 0Router(config-line)#logging synchronous

• Prevents console session timeout

• Redisplays interrupted console input

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-45

Router(config)#interface type numberRouter(config-if)#

Configuring an InterfaceConfiguring an Interface

• type includes serial, ethernet, token ring, fddi, hssi, loopback, dialer, null, async, atm, bri, and tunnel

• number is used to identify individual interfaces

Router(config-if)#exit

• Quit from current interface configuration mode

Router(config)#interface type slot/portRouter(config-if)#

• For modular routers

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-46

Configuring a Serial InterfaceConfiguring a Serial Interface

Enter global configuration mode

Router(config)#interface serial 0Router(config-if)#

Router#configure termRouter(config)#

Specify interface

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-47

Configuring a Serial InterfaceConfiguring a Serial Interface

Enter global configuration mode

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

Router(config)#interface serial 0Router(config-if)#

Router#configure termRouter(config)#

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

Specify interface

Set clock rate (on DCE interfaces only)

Set bandwidth (recommended)

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-48

Router#show interface serial 0Serial0 is up, line protocol is up Hardware is HD64570Internet address is 10.140.4.2/24MTU 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

(output omitted)

Verifying Your ChangesVerifying Your Changes

BW 64 Kbit,address is 10.140.4.2/24

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-49

Ethernet media-typeCommand

Ethernet media-typeCommand

Router(config)#interface ethernet 2Router(config-if)#media-type 10basetRouter(config)#interface ethernet 2Router(config-if)#media-type 10baset

Select the media-type connector for the Ethernet interface

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-50

Disabling or Enabling an Interface

Disabling or Enabling an Interface

Router#configure termRouter(config)#interface serial 0Router(config-if)#no shutdown%LINK-3-UPDOWN: Interface Seria0, changed state to up%LINEPROTO-5-UPDOWN: Line Protocol on Interface Serial0, changed state to up

Enables an interface that is administratively shutdown

Router#configure termRouter(config)#interface serial 0Router(config-if)#shutdown%LINK-5-CHANGED: Interface Serial0, changed state to administratively down %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to down

Administratively turns off an interface

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-51

Router show interfacesCommand

Router show interfacesCommand

Router#show interfacesEthernet0 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

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-52

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 StatusInterpreting Interface Status

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-53

Serial Interface show controller CommandSerial Interface show controller Command

Router#show controller serial 0HD unit 0, idb = 0x121C04, driver structure at 0x127078buffer size 1524 HD unit 0, V.35 DTE cable

.

.

.

Router#show controller serial 0HD unit 0, idb = 0x121C04, driver structure at 0x127078buffer size 1524 HD unit 0, V.35 DTE cable

.

.

.

Shows cable type of serial cables

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-54

Router IP Address Configuration

Router IP Address Configuration

• Assigns an address and subnet mask• Starts IP processing on a router interface

Router(config-if)#ip address ip-address subnet-maskRouter(config-if)#ip address ip-address subnet-mask

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-55

Router Power on/BootupSequence

Router Power on/BootupSequence

• Power on self test (POST)

• Load and run bootstrap code

• Find the IOS software

• Load the IOS software

• Find the configuration

• Load the configuration

• Run

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-56

Router Internal ComponentsRouter Internal Components

RAM Config register

ROM

Flash

NVRAM

Interfaces

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-57

ROM FunctionsROM Functions

ROM

Contains microcode for basic functions

Bootstrap

Mini IOSROM

monitor

POST

show version

Console

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-58

Finding the IOSFinding the IOS

Flash

showversion

show startup-config

IOSOrder of search:1. Check configuration register 2. Parse config in NVRAM3. Default to first file in Flash4. Attempt net boot5. RXBOOT6. ROMMON

Console

Config register

NVRAM

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-59

Router Start-up Flow ChartRouter Start-up Flow Chart

Use IOS fromFlash

Attempt to get

IOS from network

Use IOS in ROM(RXBoot mode)

Check start-upconfig

Boot field =0

0x0

Bootfield =1

0x1

Boot system

commands?

Config regbit 13=1

?

5 failures?

Valid IOS inFlash

?

Do whatthey say

RunROM

Monitor

START

Yes

Yes

No

No

Yes

No

No

Yes

Yes

No

NoYes Success

?

No

Yes

Use file fromNetwork

Load IOSValid config

?

Config regbit 6=1

?

Yes

No Yes

SETUPDIALOG

NORMALSTART UP

COMPLETE

No

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-60

Determining the Current Configuration Register Value

Determining the Current Configuration Register Value

wg_ro_a#show versionCisco Internetwork Operating System Software IOS (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(10c), RELEASE SOFTWARE (fc1)

wg_ro_a uptime is 20 minutesSystem restarted by reloadSystem image file is "flash:c2500-js-l_120-3.bin"

--More--

Configuration register is 0x2102

Configuration register value in show version

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-61

Configuration Register ValuesConfiguration Register Values

• Configuration register bits 3, 2, 1, and 0 set boot option

Router#configure terminalRouter(config)#config-register 0x2102[Ctrl-Z]Router#reload

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-62

Configuration Register ValuesConfiguration Register Values

• Configuration register bits 3, 2, 1, and 0 set boot option

Configuration Register Boot Field Value

0x0

Meaning

Use ROM monitor mode(Manually boot using the bcommand)

Router#configure terminalRouter(config)#config-register 0x2102[Ctrl-Z]Router#reload

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-63

Configuration Register ValuesConfiguration Register Values

• Configuration register bits 3, 2, 1, and 0 set boot option

Configuration Register Boot Field Value

0x0

0x1

Meaning

Use ROM monitor mode(Manually boot using the bcommand)

Automatically boot from ROM(Provides IOS subset)

Router#configure terminalRouter(config)#config-register 0x2102[Ctrl-Z]Router#reload

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-64

• Configuration register bits 3, 2, 1, and 0 set boot option

• Check configuration register value with show version

Configuration Register ValuesConfiguration Register Values

Configuration Register Boot Field Value

0x0

0x2 to 0xF

0x1

Meaning

Use ROM monitor mode(Manually boot using the bcommand)

Examine NVRAM for boot system commands (0x2 default if router has Flash)

Automatically boot from ROM(Provides IOS subset)

Router#configure terminalRouter(config)#config-register 0x2102[Ctrl-Z]Router#reload

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-65

Loading the IOS from FlashLoading the IOS from Flash

Flash

IOS

IOSshow flash

Flash file is decompressed into RAM

Console

RAM

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-66

show flash Commandshow flash Command

wg_ro_a#sh 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)

wg_ro_a#sh 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)

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-67

Loading the ConfigurationLoading the Configuration

Console

IOS

Setup utility

showstartup-config

showrunning-config

• Load and execute config from NVRAM

• If no config in NVRAM, enter setup mode

ConfigConfig

RAM NVRAM

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-68

show running and show startup Commands

show running and show startup Commands

wg_ro_c#show startup-configUsing 1359 out of 32762 bytes!version 12.0!

-- More --

wg_ro_c#show running-configBuilding configuration...

Current configuration:!version 12.0!

-- More --

In NVRAMIn RAM

Display current and saved configuration

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-69

Sources of ConfigurationsSources of Configurations

ConfigConfig

RAM NVRAM

• NVRAM

copy running startup

copy startup running (merge)

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-70

Sources of ConfigurationsSources of Configurations

ConfigConfig

RAM NVRAM

• NVRAM

• Terminal

copy running startup

copy startup running (merge)

config term(merge)

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-71

Sources of ConfigurationsSources of Configurations

ConfigConfig

Console

RAM NVRAM

• NVRAM

• Terminal

• TFTP server

copy running startup

copy startup running (merge)

TFTPserver

copy start tftp

copy tftp start

copy run tftp

copy tftp run (merge)

config term(merge)

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-72

Sources of ConfigurationsSources of Configurations

ConfigConfig

Console

RAM NVRAM

• NVRAM

• Terminal

• TFTP server

• Erase Start

copy running startup

copy startup running (merge)

TFTPserver

Blank000000000000

erasestart

config term(merge)

copy tftp run (merge) copy tftp start

copy start tftpcopy run tftp

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-73

copy run tftp and copy tftp run Commands

copy run tftp and copy tftp run Commands

wg_ro_a#copy running-config tftpAddress or name of remote host []? 10.1.1.1 Destination filename [running-config]? wgroa.cfg.!!1684 bytes copied in 13.300 secs (129 bytes/sec)

wg_ro_a#copy tftp running-configAddress or name of remote host []? 10.1.1.1 Source filename []? wgroa.cfgDestination filename [running-config]? Accessing tftp://10.1.1.1/wgroa.cfg... Loading wgroa.cfg from 10.1.1.1 (via Ethernet0): ![OK - 1684/3072 bytes]

1684 bytes copied in 17.692 secs (99 bytes/sec)

wg_ro_a#copy running-config tftpAddress or name of remote host []? 10.1.1.1 Destination filename [running-config]? wgroa.cfg.!!1684 bytes copied in 13.300 secs (129 bytes/sec)

wg_ro_a#copy tftp running-configAddress or name of remote host []? 10.1.1.1 Source filename []? wgroa.cfgDestination filename [running-config]? Accessing tftp://10.1.1.1/wgroa.cfg... Loading wgroa.cfg from 10.1.1.1 (via Ethernet0): ![OK - 1684/3072 bytes]

1684 bytes copied in 17.692 secs (99 bytes/sec)

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-74

Cisco IOS File Systems and Devices

Cisco IOS File Systems and Devices

RAM NVRAM

TFTPserver

Flash

flash:

system: nvram:

tftp:

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-75

Managing IOS ImagesManaging IOS Images

Networkserver

FLASHFLASH

Router

c2500-js-l_120-3.bin

Networkserver

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-76

Preparing for a Network Backup Image

Preparing for a Network Backup Image

• Check access to the server

RouterNetworkserver

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-77

Preparing for a Network Backup Image

Preparing for a Network Backup Image

•Check access to the server•Check space available on the server

RouterNetworkserver

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-78

Preparing for a Network Backup Image

Preparing for a Network Backup Image

• Check access to the server• Check space available on the server• Check file naming convention

Router

c2500-js-l_120-3.bin

Networkserver

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-79

Preparing for a Network Backup Image

Preparing for a Network Backup Image

Router

c2500-js-l_120-3.bin

Networkserver

• Check access to the server• Check space available on the server• Check file naming convention• Create file on server if required

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-80

wg_ro_a#show flash

System flash directory:File Length Name/status1 10084696 c2500-js-l_120-3.bin

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

Verifying Memory and Deciphering Image Filenames

Verifying Memory and Deciphering Image Filenames

Verify Flash memory has room for the IOS image

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-81

wg_ro_a#copy flash tftpSource filename []? c2500-js-l_120-3.binAddress or name of remote host []? 10.1.1.1Destination filename [c2500-js-l_120-3.bin]? !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!<output omitted>10084696 bytes copied in 709.228 secs (14223 bytes/sec)wg_ro_a#

Creating a Software Image Backup

Creating a Software Image Backup

Back up current files prior to updating Flash

Networkserver

FLASHFLASH

copy flash tftp

© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—4-82

wg_ro_a#copy tftp flashAddress or name of remote host [10.1.1.1]? Source filename []? c2500-js-l_120-3.binDestination filename [c2500-js-l_120-3.bin]? Accessing tftp://10.1.1.1/c2500-js-l_120-3.bin...Erase flash: before copying? [confirm]Erasing the flash filesystem will remove all files! Continue? [confirm]Erasing device... eeeee (output omitted) ...erasedErase of flash: completeLoading c2500-js-l_120-3.bin from 10.1.1.1 (via Ethernet0): !!!!!!!!!!!!!!!!!!!!(output omitted)[OK - 10084696/20168704 bytes]Verifying checksum... OK (0x9AA0)10084696 bytes copied in 309.108 secs (32636 bytes/sec)wg_ro_a#

Upgrading the Image from the Net

Upgrading the Image from the Net

• Erase Flash occurs before loading new image• Note message that image already exists

Networkserver

FLASHFLASH