Вы находитесь на странице: 1из 52

Cisco ITP in eServGlobal IN

IOS and Router Basics

PS and Support Internal Training


Diegem

Dennis Hagarty
Implementation Practice

29 August 2006

© 2003 Cisco Systems © 2006 eServGlobal Ltd


IOS Basics
CLI and Command Structure

IOS Basics | 2 | © 2003 Cisco Systems © 2006


IOS Documentation

IOS Basics | 3 | © 2003 Cisco Systems © 2006


Cisco IOS Software

Console
ITP

 An ITP is a IOS based router with SS7 capabilities


 An IOS based router has:
 An “image” or Operating System loaded into it at boot time
 A set of configuration commands loaded after the image is running
 Some basic commands for operation, debugging and management
 The configuration and management commands are via a CLI
 The Management CLI is called “Exec” and what we will cover now

IOS Basics | 4 | © 2003 Cisco Systems © 2006


Overview of the User Interface – “EXEC”

 User Mode (or user EXEC mode)


 Privileged (or privileged EXEC
mode – also known as “Enable”
mode)

 User mode – check status


 Privileged mode – change
configuration, and therefore
requires an additional password.

IOS Basics | 5 | © 2003 Cisco Systems © 2006


Logging In to the ITP: Cisco IOS Software

Console
ITP

Router eSG-ITP is now available


Press RETURN to get started.
User Access Verification
Password:
% Password: timeout expired!

Password:
Password:
% Bad passwords

IOS Basics | 6 | © 2003 Cisco Systems © 2006


Logging In to the ITP: Cisco IOS Software

Console
ITP

Router eSG-ITP is now available

Press RETURN to get started.


User Access Verification
Password:
eSG-ITP>
eSG-ITP> enable
User-mode prompt
Password:
eSG-ITP#
eSG-ITP# disable
Privileged-mode prompt
eSG-ITP>
eSG-ITP> exit

IOS Basics | 7 | © 2003 Cisco Systems © 2006


User-Mode Command List

eSG-ITP>?
Exec commands:
<1-99> Session number to resume
access-enable Create a temporary Access-List entry
access-profile Apply user-profile to interface
attach attach to system component
clear Reset functions
connect Open a terminal connection
disconnect Disconnect an existing network connection
enable Turn on privileged commands
exit Exit from the EXEC
help Description of the interactive help system
lock Lock the terminal
ping Send echo messages
resume Resume an active network connection
set Set system parameter (not config)
systat Display information about terminal lines
telnet Open a telnet connection
traceroute Trace route to destination
where List active connections
--More--

IOS Basics | 8 | © 2003 Cisco Systems © 2006


Privileged Mode Command List

eSG-ITP#?
Exec commands:
calendar Manage the hardware calendar
cd Change current directory
clear Reset functions
clock Manage the system clock
configure Enter configuration mode
copy Copy from one file to another
cs7 Enter a CS7 management command
debug Debugging functions (see also 'undebug')
delete Delete a file
dir List files on a filesystem
disable Turn off privileged commands
disconnect Disconnect an existing network connection
enable Turn on privileged commands
erase Erase a filesystem
exit Exit from the EXEC
format Format a filesystem
help Description of the interactive help system
hw-module High Availability hardware module options
--More--

IOS Basics | 9 | © 2003 Cisco Systems © 2006


Context-Sensitive Help

eSG-ITP# clx
Translating "clx"
% Unknown command or computer name, or unable to find computer address
eSG-ITP# cl?
configure connect copy
eSG-ITP# clock
% Incomplete command.
eSG-ITP# clock ?
read-calendar Read the hardware calendar into the clock
set Set the time and date
update-calendar Update the hardware calendar from the clock
eSG-ITP# clock set ?
hh:mm:ss Current Time eSG-ITP# clock set 12:56:00
% Incomplete command.
eSG-ITP# clock set 12:56:00 ?
 Syntax checking <1-31> Day of the month
 Symbolic translation MONTH Month of the year
 Keyword completion eSG-ITP# clock set 12:56:22 ?
<1-31> Day of the month
 Command recall/edit
MONTH Month of the year
 Command prompting
eSG-ITP# clock set 19:56:22 20 FEB ?
<1993-2035> Year
eSG-ITP# clock set 19:56:22 20 FEB 2005

IOS Basics | 10 | © 2003 Cisco Systems © 2006


Using Editing Commands

 Automatic scrolling of long lines.


eSG-ITP> $ the final part of a really really long command line

 Edit current and historical commands (EMACS keystrokes)


 <Ctrl><A> Move to the beginning of the command line
 <Ctrl><E> Move to the end of the command line (End)
 <Ctrl><B> Move back one character (Back)
 <Esc><B> Move back one word
 <Ctrl><F> Move forward one character (Forward)
 <Esc><F> Move forward one word
 <Ctrl><D> Delete next character
 <Backspace> Delete previous character (or delete key)
 You can also use the arrow keys on most terminals

IOS Basics | 11 | © 2003 Cisco Systems © 2006


Using Editing Commands

 This shows some of the possible edit commands:

Ctrl-P or 
 words on the previous line
Esc-B Esc-F
Ctrl-B Ctrl-F
 words only onthe same line h
or  or 
Ctrl-A Ctrl-E
 words on the following line
Ctrl-N or 
Ctrl-H Delete
Ctrl-D
or <Del> Characters

Ctrl-W Delete
Esc-D
Esc <Del> Words

Delete
Ctrl-U Ctrl-K
Whole line

IOS Basics | 12 | © 2003 Cisco Systems © 2006


Reviewing Command History

 <Ctrl><P> or Up arrow Move to previous line (Previous)


 <Ctrl><N > or Down arrow Move to next line (Next)
 <Tab> Keyword completion

eSG-ITP> show history !Show command buffer


eSG-ITP> terminal history size 24 !Set command buffer size
eSG-ITP> no terminal editing !Disable advanced editing features
eSG-ITP> terminal editing !Reenable advanced editing
eSG-ITP> terminal length 24 !Num of lines of text to be displayed

eSG-ITP> #configuration !Comment Character at line start


eSG-ITP> show clock !start time !Comment Character

IOS Basics | 13 | © 2003 Cisco Systems © 2006


The more Mode and Command

eSG-ITP# show running


Building configuration...

Current configuration : 2235 bytes


!
! Last configuration change at 15:05:33 CET Mon Feb 21 2005
! NVRAM config last updated at 14:43:18 CET Mon Feb 21 2005
!
version 12.2
service timestamps debug datetime msec localtime show-timezone
service timestamps log datetime msec localtime show-timezone
service password-encryption
!
--More--
eSG-ITP# more flash:/config.txt
This is the file on flash.

 Responses to the --More– Prompt:


 Ctrl-^ Interrupt output
 <CR> Display the next line of output
 <Space> Display the next page of output

IOS Basics | 14 | © 2003 Cisco Systems © 2006


IOS Basics
Examining Router Status

IOS Basics | 15 | © 2003 Cisco Systems © 2006


Router Status Commands

eSG-ITP# show version eSG-ITP# show interfaces


eSG-ITP# show flash

RAM
I
Internetwork Operating System NVRAM Flash n
t
e
Active Tables Backup r
Operating f
Programs Configuration and Configuration
Systems a
File Buffers File
c
e
s

eSG-ITP# show mem


eSG-ITP# show processes CPU eSG-ITP# show stacks
eSG-ITP# show processes mem eSG-ITP# show buffers eSG-ITP# show startup-config
eSG-ITP# dir nvram:
eSG-ITP# show running-config
eSG-ITP# copy running startup

IOS Basics | 16 | © 2003 Cisco Systems © 2006


Some of the devices available to IOS

eSG-ITP# dir ?
/all List all files
/recursive List files recursively
all-filesystems List files on all filesystems
bootflash: Directory or file name
cs7: Directory or file name
disk0: Directory or file name
disk1: Directory or file name
flash: Directory or file name
nvram: Directory or file name
slavebootflash: Directory or file name
slavedisk0: Directory or file name
slavedisk1: Directory or file name
slavenvram: Directory or file name
system: Directory or file name

eSG-ITP# dir system:


Directory of system:/

13 dr-x 0 <no date> memory


1 -rw- 17843 <no date> running-config
2 dr-x 0 <no date> ucode
27 dr-x 0 <no date> vfiles

IOS Basics | 17 | © 2003 Cisco Systems © 2006


show running-config and show startup-config

eSG-ITP# show running-config eSG-ITP# show startup-config


Building configuration... Using 1108 out of 130048 bytes
!
Current configuration: version 12.2
! !
version 12.2 hostname router
!
-- More -- -- More --

IOS Basics | 18 | © 2003 Cisco Systems © 2006


show interface fastethernet Command

eSG-ITP> show interface fastethernet 0/0 The Ethernet interface should appear up
FastEthernet0/0 is up, line protocol is up along with the line protocol. Any
combination other than up/up indicates a
Hardware is FastEthernet Interface, address is 0060.3ed7.8520 problem involving the Ethernet interface
Internet address is 10.129.1.158/30 and ITP connectivity to the WAN.
MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
An indication of the traffic load on the
Keepalive set (10 sec) interface.
Full-duplex, 100Mb/s, 100BaseTX/FX
ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:00:00, output 00:00:00, output hang never
Last clearing of "show interface" counters never
Queueing strategy: fifo
Excessive input, CRC or Frame errors
Output queue 0/40, 0 drops; input queue 0/75, 0 drops indicate a potential cabling or duplex
5 minute input rate 1000 bits/sec, 2 packets/sec mismatch.
5 minute output rate 3000 bits/sec, 1 packets/sec
2878 packets input, 237877 bytes, 0 no buffer
Received 75 broadcasts, 0 runts, 0 giants, 0 throttles
50 input errors, 25 CRC, 25 frame, 0 overrun, 0 ignored
0 watchdog Excessive output errors, collisions or
0 input packets with dribble condition detected interface resets indicate a potential cabling
or duplex mismatch.
3248 packets output, 460049 bytes, 0 underruns
50 output errors, 20 collisions, 10 interface resets
0 babbles, 0 late collision, 0 deferred Incrementing carrier loss indicates a
10 lost carrier, 0 no carrier potential cable issue or failing Ethernet
0 output buffer failures, 0 output buffers swapped out device on either end of the connection.

IOS Basics | 19 | © 2003 Cisco Systems © 2006


show controller T1/E1 <slot/port> Commands

eSG-ITP# show controllers e1


E1 0/0 is up. T1/E1 Card number 0
Applique type is Channelized E1 - balanced Port number 0
Description: Four link linkset to Spectra B
No alarms detected.
alarm-trigger is not set
Framing is NO-CRC4, Line Code is HDB3, Clock Source is Line Primary.
International Bit: 1, National Bits: 11111
Data in current interval (211 seconds elapsed):
0 Line Code Violations, 0 Path Code Violations
0 Slip Secs, 0 Fr Loss Secs, 0 Line Err Secs, 0 Degraded Mins
0 Errored Secs, 0 Bursty Err Secs, 0 Severely Err Secs, 0 Unavail Secs
Total Data (last 24 hours)
0 Line Code Violations, 0 Path Code Violations,
0 Slip Secs, 0 Fr Loss Secs, 0 Line Err Secs, 0 Degraded Mins,
0 Errored Secs, 0 Bursty Err Secs, 0 Severely Err Secs, 0 Unavail Secs

Incrementing errors on the E1 interface


indicates a problem exists between the ITP
and SSP.

IOS Basics | 20 | © 2003 Cisco Systems © 2006


show interface serial Command

eSG-ITP> show interface Serial4/0/4:0 The Serial interface should appear up


along with the line protocol. Any
combination other than up/up indicates a
Serial4/0/4:0 is up, line protocol is up problem involving the E1 and MTP2.
Hardware is cxBus E1
MTU 1500 bytes, BW 64 Kbit, DLY 20000 usec,
reliability 255/255, txload 1/255, rxload 1/255 An indication of the traffic load on the
Encapsulation SS7 MTP2, crc 16, loopback not set interface.
Keepalive set (10 sec)
Last input 00:00:09, output 00:00:09, output hang never
Last clearing of "show interface" counters 2w2d
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo Excessive input, CRC or Frame errors
Output queue: 0/40 (size/max) indicate a potential cabling, timing, CRC,
5 minute input rate 0 bits/sec, 0 packets/sec or framing configuration mismatch.
5 minute output rate 0 bits/sec, 0 packets/sec
82551 packets input, 2452195 bytes, 0 no buffer Excessive output errors indicates a
problem. Buffer failures indicates that
Received 0 broadcasts (0 IP multicast)
buffer allocation on the router is a problem
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
71980 packets output, 2419031 bytes, 0 underruns
0 output errors, 0 collisions, 0 interface resets
0 output buffer failures, 0 output buffers swapped out Incrementing carrier transitions
1 carrier transitions no alarm present indicates a potential cable issue or
Timeslot(s) Used:1, subrate: 64Kb/s, transmit delay is 0 flags failing device on either end of the
connection.

IOS Basics | 21 | © 2003 Cisco Systems © 2006


show version Command

eSG-ITP# show version


Cisco Internetwork Operating System Software
IOS (tm) C2600 Software (C2600-ITP-M), Version 12.2(25)SW1, RELEASE SOFTWARE
(fc1)
TAC Support: http://www.cisco.com/tac
Copyright (c) 1986-2002 by cisco Systems, Inc.
Compiled Wed 25-Sep-02 14:12 by dchih
Image text-base: 0x80008088, data-base: 0x80D148D0
ROM: System Bootstrap, Version 12.1(3r)T2, RELEASE SOFTWARE (fc1)
ROM: C2600 Software (C2600-ITP-M), Version 12.2(25)SW1, RELEASE SOFTWARE
itp-c uptime is 8 hours, 59 minutes
System returned to ROM by power-on
System image file is "c2600-itp-mz.122-25.SW1.bin"
cisco 2651 (MPC860P) proce. (revision 0x200) with 131072K/5120K bytes of
memory
Processor board ID JAB5342BYP (1566624425)
M860P processor: part number 5, mask 2
Bridging software.
X.25 software, Version 3.0.0.
Primary Rate ISDN software, Version 1.1.
2 FastEthernet/IEEE 802.3 interface(s)
2 Channelized E1/PRI port(s)
32K bytes of non-volatile configuration memory.
32768K bytes of processor board System flash (Read/Write)
Configuration register is 0x2102

IOS Basics | 22 | © 2003 Cisco Systems © 2006


telnet Operations

Paris
ITP Suspend a session
ITP
Paris> <Cntl><Shift><6><x>
eSG-ITP
ITP
eSG-ITP>
Stockholm Escape sequence
Resume a session
Initiate a session
eSG-ITP> <Return>
eSG-ITP> telnet paris
eSG-ITP> 1
End a session Disconnect a session
Paris> exit eSG-ITP> disconnect paris

Display sessions
eSG-ITP# show sessions
Conn Host Address Idle Conn Name
1 Paris 31.10.109.152 0 Paris*
2 Stockhm 10.102.92.23 0 Stockhm

IOS Basics | 23 | © 2003 Cisco Systems © 2006


Who’s Hungry?

IOS Basics | 24 | © 2003 Cisco Systems © 2006


IOS Basics
Configuration Files

IOS Basics | 25 | © 2003 Cisco Systems © 2006


Working with Configuration Files

running
Store config

terminal
startup
config

startup RAM
NVRAM
config

Bit bucket

tftp

TFTP Server

IOS Basics | 26 | © 2003 Cisco Systems © 2006


Working with Configuration Files

Console or Terminal
Store configure terminal
running
copy commands config
show running-config

show startup-config configure memory

erase startup-config RAM


NVRAM copy running-config
startup startup-config

Bit bucket copy tftp running-config

copy tftp
startup-config copy running-config tftp

TFTP Server

IOS Basics | 27 | © 2003 Cisco Systems © 2006


Using a TFTP Server

eSG-ITP# copy running-config tftp


Address or name of remote host []? 10.10.1.10
Name of configuration file to write [eSG-confg]? itp1.txt RAM
Write file itp1.txt to 10.10.1.10? [confirm] y
Writing itp1.txt !!!!!!!! [OK]
eSG-ITP# copy running-config tftp://10.10.2.10/itp1.txt

eSG-ITP# copy tftp running-config


Address or name of remote host []? 10.10.1.10
Source filename? itp1.txt
Destination filename [running-config]? RAM
Configure using itp1.txt from 10.10.1.10? [confirm] y
Booting itp1.txt from 10.10.1.10:!! [OK - 923/16000 bytes]
eSG-ITP#

IOS Basics | 28 | © 2003 Cisco Systems © 2006


Using NVRAM

eSG-ITP# copy startup-config running-config


[OK] NVRAM RAM
eSG-ITP #

eSG-ITP # erase startup-config


[OK] NVRAM
eSG-ITP # erase /all
Bit bucket
eSG-ITP # copy running-config startup-config
eSG-ITP # NVRAM RAM

eSG-ITP# show configuration


Using 9955 out of 2093048 bytes NVRAM
! Terminal
! Last configuration change at ...
! NVRAM config last updated at ...
!
version 12.2
service single-slot-reload-enable
service timestamps debug datetime msec Note: This is the startup-config
-- More --

IOS Basics | 29 | © 2003 Cisco Systems © 2006


IOS Basics
Configuration Modes

IOS Basics | 30 | © 2003 Cisco Systems © 2006


External Configuration Sources
Virtual
Terminals

vty 0-4
Interfaces
Console Port

ITP
Auxiliary Port

TFTP Server

Configuration information can


come from many sources

Flash, NVRAM

IOS Basics | 31 | © 2003 Cisco Systems © 2006


Internal Configuration Components

RAM NVRAM Flash ROM

Console
Interfaces
Auxiliary

IOS Basics | 32 | © 2003 Cisco Systems © 2006


Router Modes

User EXEC Mode Global Configuration Mode


Limited examination of Simple configuration commands.
router. Remote access.
eSG-ITP> eSG-ITP(config)#

Privileged EXEC Mode Other Configuration Modes


Detailed examination of router. Complex and multiline configurations.
Debugging and testing. File
manipulation. Remote access.
eSG-ITP# eSG-ITP(config - mode)#

Setup Mode ROMMON Mode


Prompted dialog used to establish Recovery from a catastrophe in the
an initial configuration. case of a lost password or the O/S being
accidentally erased from Flash.

IOS Basics | 33 | © 2003 Cisco Systems © 2006


Overview of Router Modes

 User EXEC mode eSG-ITP>


<Ctrl><z> or end
 Privileged EXEC mode eSG-ITP#
Exit
 Global configuration mode eSG-ITP(config)#

Other
Configuration
Modes

Configuration Mode Prompt

Interface eSG-ITP(config-if)#
Subinterface eSG-ITP(config-subif)#
Controller eSG-ITP(config-controller)#
Linkset eSG-ITP(config-cs7-ls)#
Linkset Link eSG-ITP(config-cs7-ls-link)#
SUA eSG-ITP(config-cs7-sua)#
ASP eSG-ITP(config-cs7-asp)#
AS eSG-ITP(config-cs7-as)#
GTT Selector eSG-ITP(config-cs7-gtt-selector)#

IOS Basics | 34 | © 2003 Cisco Systems © 2006


Configuration Modes

eSG-ITP# config term


eSG-ITP(config)# : : :
eSG-ITP(config)# (commands)
eSG-ITP(config)#
Global Configuration Mode
eSG-ITP(config)#exit  Used for system-wide
eSG-ITP#
eSG-ITP# config term : : : configurations requiring one
eSG-ITP(config)# controller E1 0/0 command line. Includes
eSG-ITP(config-controller)# : : commands to enter other
eSG-ITP(config-controller)#(commands) configuration modes.
eSG-ITP(config-controller)# : :
eSG-ITP(config-controller)# exit Other Configuration Modes
eSG-ITP(config)# interface type port
eSG-ITP(config-if)# : : :  Used for other
eSG-ITP(config-if)# (commands) configurations requiring
eSG-ITP(config-if)# : : :
multiple command lines
eSG-ITP(config-if)# exit
eSG-ITP(config)#exit
eSG-ITP#

IOS Basics | 35 | © 2003 Cisco Systems © 2006


Configuration Interface Mode
eSG-ITP(config)# interface ?
Async Async interface
Dialer Dialer interface
EsconPhy ESCON interface
FastEthernet FastEthernet IEEE 802.3
Group-Async Async Group interface
LongReachEthernet Long-Reach Ethernet interface
Loopback Loopback interface
Null Null interface
Port-channel Ethernet Channel of interfaces
Portgroup Portgroup interface
Serial Serial
Virtual-TokenRing Virtual TokenRing
Vlan Catalyst Vlans

eSG-ITP(config)# interface fastEthernet ?


<0-1> FastEthernet interface number
eSG-ITP(config)# interface fastEthernet 0?
/
eSG-ITP(config)# interface fastEthernet 0/?
<0-1> FastEthernet port number
eSG-ITP(config)# interface fastEthernet 0/0
eSG-ITP(config-if)#

IOS Basics | 36 | © 2003 Cisco Systems © 2006


Interface Configuration Mode

eSG-ITP(config)# interface type slot


eSG-ITP(config)# interface type slot/port

Type includes serial, ethernet, tokenring, fddi, hssi, loopback,


dialer, null, async, atm, bri, and tunnel
eSG-ITP(config-if)# shutdown

Use this command to administratively turn off an interface


without altering its other configuration entries
eSG-ITP(config-if)# no shutdown
Turn on an interface that has been shutdown
eSG-ITP(config-if)# exit

Quit from current config-interface mode


eSG-ITP(config)# interface type number.subinterface

After designating the primary interface, use this command to


establish virtual interfaces on the single physical interface

IOS Basics | 37 | © 2003 Cisco Systems © 2006


Interface Configuration Mode

To remove an entry from the global configuration, use the no


modifier in front of the configuration command

eSG-ITP(config)# no interface type slot/port


eSG-ITP(config)# no interface serial 0/0:0

To remove an entry from any sub-mode, use the no modifier


in front of the attribute to remove it

eSG-ITP(config)# interface fastEthernet 0/0


eSG-ITP(config-if)# no ip address
eSG-ITP(config-if)# interface fastEthernet 0/1
eSG-ITP(config-if)# no full-duplex

IOS Basics | 38 | © 2003 Cisco Systems © 2006


IOS Basics
Configuring the ITP

IOS Basics | 39 | © 2003 Cisco Systems © 2006


Configuration Methods

Make changes in
configuration modes

Examine results
eSG-ITP# show running-config

Intended No
results? Remove changes

Yes eSG-ITP(config)# no ....

Save changes to backup eSG-ITP# copy startup running


eSG-ITP# copy running-config startup-config
eSG-ITP# copy running-config tftp eSG-ITP# copy tftp running-config

eSG-ITP# erase startup-config


eSG-ITP# reload
Examine backup file
eSG-ITP# show startup-config

IOS Basics | 40 | © 2003 Cisco Systems © 2006


Router Configuration Overview

 Cisco IOS software image


 Router identification
 Boot file locations
 Logging
 Protocol information
 Interface configurations

IOS Basics | 41 | © 2003 Cisco Systems © 2006


Password Configuration

Console Password
eSG-ITP(config)# line console 0
eSG-ITP(config-line)# login
eSG-ITP(config-line)# password cisco

Virtual Terminal Password


eSG-ITP(config)# line vty 0 4
eSG-ITP(config-line)# login
eSG-ITP(config-line)# password cisco

Enable Password
eSG-ITP(config)# enable-password san-fran

Perform Password Encryption


eSG-ITP(config)# service password-encryption
(set passwords here)
eSG-ITP(config)# no service password-encryption

IOS Basics | 42 | © 2003 Cisco Systems © 2006


Locating the Cisco IOS Software

Configuration Registers
Registers in NVRAM for modifying fundamental Cisco IOS software
Identifies where to boot Cisco IOS image (for example, use config-mode commands)

eSG-ITP# configure terminal


eSG-ITP(config)# boot system flash c2600-itp-mz.122-25.SW1.bin
eSG-ITP(config)# boot system tftp IOS_filename tftp_address
eSG-ITP(config)# [Ctrl-Z]
eSG-ITP# copy running-config startup-config

Boot system commands not found In NVRAM


Get file from
PCMCIA slot
Get default Cisco IOS software from Flash

Flash memory empty tftp server unavailable

Get default Cisco IOS software from TFTP server

IOS Basics | 43 | © 2003 Cisco Systems © 2006


show version Command

eSG-ITP# show version


Cisco Internetwork Operating System Software
IOS (tm) C2600 Software (C2600-ITP-M), Version 12.2(25)SW1, RELEASE SOFTWARE (fc1)
TAC Support: http://www.cisco.com/tac
Copyright (c) 1986-2002 by cisco Systems, Inc.
Compiled Wed 25-Sep-02 14:12 by dchih
Image text-base: 0x80008088, data-base: 0x80D148D0

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


ROM: C2600 Software (C2600-ITP-M), Version 12.2(25)SW1, RELEASE SOFTWARE

itp-c uptime is 8 hours, 59 minutes


System returned to ROM by power-on
System image file is "c2600-itp-mz.122-25.SW1.bin"

cisco 2651 (MPC860P) processor (revision 0x200) with 131072K/5120K bytes of memory
Processor board ID JAB5342BYP (1566624425)
M860P processor: part number 5, mask 2
Bridging software.
X.25 software, Version 3.0.0.
Primary Rate ISDN software, Version 1.1.
2 FastEthernet/IEEE 802.3 interface(s)
2 Channelized E1/PRI port(s)
32K bytes of non-volatile configuration memory.
32768K bytes of processor board System flash (Read/Write)

Configuration register is 0x2102

IOS Basics | 44 | © 2003 Cisco Systems © 2006


show flash Command

eSG-ITP# show flash

System flash directory:


File Length Name/status
1 5247868 c2600-i-mz.122-5a.bin
2 6025288 c2600-itp-mz.122-5b.bin [deleted]
3 639 clean-config
4 1820 testing-config [deleted]
5 6127504 c2600-itp-mz.122-4.MB5
6 1752 itu-config [deleted]
7 2145 itu-config
8 1785 ansi-config [deleted]
9 2565 ansi-config
10 8622848 c2600-itp-mz.122-25.SW1.bin
[23674338 bytes used, 8860124 available, 33554432 total]
32768K bytes of processor board System flash (Read/Write)

eSG-ITP#

Verify that Flash memory has room for the Cisco IOS image

IOS Basics | 45 | © 2003 Cisco Systems © 2006


Creating a Software Image Backup

FLASH
copy flash tftp TFTP
RAM Server

eSG-ITP# show flash


32768K bytes of flash memory on embedded flash (in XX).

file offset length name


0 0x40 8622848 c2600-itp-mz.122-25.SW1.bin
[8622848/23822152 bytes free]

eSG-ITP# copy flash tftp


IP address of remote host [255.255.255.255]? 10.10.1.10
filename to write on tftp host? c2600-itp-mz.122-25.SW1.bin
writing c2600-itp-mz.122-25.SW1.bin !!!!!!!...!!!!!!!!!
successful tftp write.
eSG-ITP#

Back up current files prior to updating Flash

IOS Basics | 46 | © 2003 Cisco Systems © 2006


Loading a Software Image from the Network

FLASH
copy tftp flash TFTP
RAM Server

eSG-ITP# copy tftp flash


IP address or name of remote host [255.255.255.255]? 10.10.1.10
Name of tftp filename to copy into flash []? c2600.122-25.SW1
Copy c2600.122-25.SW1 from 10.10.1.10 into flash memory? [confirm] <CR>
xxxxxxxx bytes available for writing without erasure.
erase flash before writing? [confirm] <Return>
Clearing and initializing flash memory (please wait) ####...##
Loading from 10.10.1.10: !!!!!!!!...!!!!!!!!!!(text omitted)
[OK - 324572/524212 bytes]
Verifying checksum...
VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV
Flash verification successful. Length = 1204637, checksum = 0x95D9

Erase flash occurs before loading new image

IOS Basics | 47 | © 2003 Cisco Systems © 2006


Loading a Software Image Backup

FLASH
copy tftp flash TFTP
RAM Server

eSG-ITP# copy tftp flash


IP address or name of remote host [255.255.255.255]? 10.10.1.10
Name of tftp filename to copy into flash []? c2600.122-25.SW1
File c2600.122-25.SW1 already exists; it will be invalidated!
Copy c2600.122-25.SW1 from 10.10.1.10 into flash memory? [confirm] <CR>
xxxxxxxx bytes available for writing without erasure.
erase flash before writing? [confirm] <Return>
Clearing and initializing flash memory (please wait) ####...##
Loading from 10.10.1.10: !!!!!!!!...!!!!!!!!!!(text omitted)
[OK - 324572/524212 bytes]
Verifying checksum...
VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV
Flash verification successful. Length = 1204637, checksum = 0x95D9

Note message that image already exists

IOS Basics | 48 | © 2003 Cisco Systems © 2006


Configuring Router Identification

Router Name
orange-itp(config)# hostname eSG-ITP
eSG-ITP#

Login Banner
eSG-ITP(config)# banner motd #
Welcome to eServGlobal ITP
#

Interface Description
eSG-ITP(config)# fastEthernet 0/0
eSG-ITP(config-if)# description Network Planning VLAN 1

Sets local identity or message for


the accessed router or interface

IOS Basics | 49 | © 2003 Cisco Systems © 2006


Logging Messages

(default) Console
logging console Terminal

terminal monitor Telnet


Debug Output Terminal
and
System Error
Messages UNIX Host
logging on
(Running
logging 10.10.1.10
syslog
Server)
10.10.1.10

show logging

Buffers
logging buffered

IOS Basics | 50 | © 2003 Cisco Systems © 2006


That’s all Folks!

IOS Basics | 51 | © 2003 Cisco Systems © 2006


Backup Slides

IOS Basics | 52 | © 2003 Cisco Systems © 2006

Вам также может понравиться