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

Cisco ITP in eServGlobal IN

IOS and Router Basics

PS and Support Internal Training


Diegem
Imro Landveld
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

IOS Basics | 5 | 2003 Cisco Systems

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.

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
Password:
eSG-ITP#
eSG-ITP# disable
eSG-ITP>
eSG-ITP> exit

IOS Basics | 7 | 2003 Cisco Systems

User-mode prompt
Privileged-mode prompt

2006

User-Mode Command List


eSG-ITP>?
Exec commands:
<1-99>
access-enable
access-profile
attach
clear
connect
disconnect
enable
exit
help
lock
ping
resume
set
systat
telnet
traceroute
where
--More--

Session number to resume


Create a temporary Access-List entry
Apply user-profile to interface
attach to system component
Reset functions
Open a terminal connection
Disconnect an existing network connection
Turn on privileged commands
Exit from the EXEC
Description of the interactive help system
Lock the terminal
Send echo messages
Resume an active network connection
Set system parameter (not config)
Display information about terminal lines
Open a telnet connection
Trace route to destination
List active connections

IOS Basics | 8 | 2003 Cisco Systems

2006

Privileged Mode Command List


eSG-ITP#?
Exec commands:
calendar
cd
clear
clock
configure
copy
cs7
debug
delete
dir
disable
disconnect
enable
erase
exit
format
help
hw-module
--More--

Manage the hardware calendar


Change current directory
Reset functions
Manage the system clock
Enter configuration mode
Copy from one file to another
Enter a CS7 management command
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
Format a filesystem
Description of the interactive help system
High Availability hardware module options

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 ?
eSG-ITP# clock set 12:56:00
hh:mm:ss Current Time
% Incomplete command.
eSG-ITP# clock set 12:56:00 ?
Syntax checking
<1-31>
Day of the month
MONTH
Month of the year
Symbolic translation
eSG-ITP# clock set 12:56:22 ?
Keyword completion
<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:

Esc-B

Esc-F

Ctrl-B
or

words only onthe same line

Ctrl-A

Ctrl-P or

words on the previous line

words on the

following line

Ctrl-F
or

Ctrl-E
Ctrl-N or

Delete
Characters

Ctrl-D

Ctrl-W
Esc <Del>

Delete
Words

Esc-D

Ctrl-U

Delete
Whole line

Ctrl-K

Ctrl-H
or <Del>

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 flash

eSG-ITP# show interfaces

RAM
Internetwork Operating System

Active
Programs Configuration
File

eSG-ITP# show processes CPU


eSG-ITP# show processes mem

Tables
and
Buffers

NVRAM

Backup
Configuration
File

eSG-ITP# show mem


eSG-ITP# show stacks
eSG-ITP# show buffers

eSG-ITP# show running-config


eSG-ITP# copy running startup

IOS Basics | 16 | 2003 Cisco Systems

Flash

2006

Operating
Systems

I
n
t
e
r
f
a
c
e
s

eSG-ITP# show startup-config


eSG-ITP# dir nvram:

Some of the devices available to IOS


eSG-ITP# dir ?
/all
/recursive
all-filesystems
bootflash:
cs7:
disk0:
disk1:
flash:
nvram:
slavebootflash:
slavedisk0:
slavedisk1:
slavenvram:
system:

List all files


List files recursively
List files on all filesystems
Directory or file name
Directory or file name
Directory or file name
Directory or file name
Directory or file name
Directory or file name
Directory or file name
Directory or file name
Directory or file name
Directory or file name
Directory or file name

eSG-ITP# dir system:


Directory of system:/
13
1
2
27

dr-x
-rwdr-x
dr-x

0
17843
0
0

IOS Basics | 17 | 2003 Cisco Systems

<no
<no
<no
<no

date>
date>
date>
date>

2006

memory
running-config
ucode
vfiles

show running-config and show startup-config

eSG-ITP# show running-config


Building configuration...
Current configuration:
!
version 12.2
!
-- More --

IOS Basics | 18 | 2003 Cisco Systems

eSG-ITP# show startup-config


Using 1108 out of 130048 bytes
!
version 12.2
!
hostname router
-- More --

2006

show interface fastethernet Command


The Ethernet interface should appear up
eSG-ITP> show interface fastethernet 0/0
along with the line protocol. Any
FastEthernet0/0 is up, line protocol is up
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
Excessive output errors, collisions or
0 watchdog
interface
resets indicate a potential cabling
0 input packets with dribble condition detected
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
potential cable issue or failing Ethernet
10 lost carrier, 0 no carrier
device on either end of the connection.
0 output buffer failures, 0 output buffers swapped out

IOS Basics | 19 | 2003 Cisco Systems

2006

show controller T1/E1 <slot/port> Commands


eSG-ITP# show controllers e1
T1/E1 Card number 0
E1 0/0 is up.
Port number 0
Applique type is Channelized E1 - balanced
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


The Serial interface should appear up
along with the line protocol. Any
combination other than up/up indicates a
problem involving the E1 and MTP2.

eSG-ITP> show interface Serial4/0/4:0

Serial4/0/4:0 is up, line protocol is up


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
interface.
Encapsulation SS7 MTP2, crc 16, loopback not set
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,
or framing configuration mismatch.
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
Excessive output errors indicates a
82551 packets input, 2452195 bytes, 0 no buffer
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
failing device on either end of the
Timeslot(s) Used:1, subrate: 64Kb/s, transmit delay is 0 flags
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
ITP

eSG-ITP
ITP

Stockholm
Initiate a session
eSG-ITP> telnet paris
End a session

Paris> <Cntl><Shift><6><x>
eSG-ITP>
Escape sequence
Resume a session
eSG-ITP> <Return>
eSG-ITP> 1
Disconnect a session

Paris> exit
Display sessions

Suspend a session

eSG-ITP> disconnect paris


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

IOS Basics | 23 | 2003 Cisco Systems

2006

Conn Name
Paris*
Stockhm

Whos Hungry?

IOS Basics | 24 | 2003 Cisco Systems

2006

IOS Basics
Configuration Files

IOS Basics | 25 | 2003 Cisco Systems

2006

Working with Configuration Files


running
config

Store
terminal

startup
config

NVRAM

startup
config

Bit bucket

tftp

TFTP Server

IOS Basics | 26 | 2003 Cisco Systems

2006

RAM

Working with Configuration Files

Store

Console or Terminal

copy commands

show running-config

show startup-config
erase startup-config

configure terminal

running
config

configure memory

NVRAM
startup

Bit bucket

copy running-config
startup-config
copy tftp running-config

copy tftp
startup-config

copy running-config tftp


TFTP Server

IOS Basics | 27 | 2003 Cisco Systems

2006

RAM

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

RAM

eSG-ITP# copy tftp running-config


Address or name of remote host []? 10.10.1.10
Source filename? itp1.txt
Destination filename [running-config]?
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#

RAM

IOS Basics | 28 | 2003 Cisco Systems

2006

Using NVRAM

eSG-ITP# copy startup-config running-config


[OK]
eSG-ITP #

NVRAM

RAM

eSG-ITP # erase startup-config


[OK]
eSG-ITP # erase /all

NVRAM

eSG-ITP # copy running-config startup-config


eSG-ITP #

NVRAM

RAM

NVRAM

Terminal

Bit bucket

eSG-ITP# show configuration


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

IOS Basics | 29 | 2003 Cisco Systems

Note: This is the startup-config


2006

IOS Basics
Configuration Modes

IOS Basics | 30 | 2003 Cisco Systems

2006

External Configuration Sources


Virtual
Terminals

Interfaces

Console Port

vty 0-4

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

Console

Interfaces

Auxiliary

IOS Basics | 32 | 2003 Cisco Systems

2006

Flash

ROM

Router Modes

User EXEC Mode


Limited examination of
router. Remote access.
eSG-ITP>

Privileged EXEC Mode


Detailed examination of router.
Debugging and testing. File
manipulation. Remote access.
eSG-ITP#

Global Configuration Mode


Simple configuration commands.
eSG-ITP(config)#

Other Configuration Modes


Complex and multiline configurations.

eSG-ITP(config - mode)#

Setup Mode
Prompted dialog used to establish
an initial configuration.

IOS Basics | 33 | 2003 Cisco Systems

ROMMON Mode
Recovery from a catastrophe in the
case of a lost password or the O/S being
accidentally erased from Flash.

2006

Overview of Router Modes


User EXEC mode

eSG-ITP>

Privileged EXEC mode

eSG-ITP#

Global configuration mode

eSG-ITP(config)#

Other
Configuration
Modes
Configuration Mode

Interface
Subinterface
Controller
Linkset
Linkset Link
SUA
ASP
AS
GTT Selector

Prompt

eSG-ITP(config-if)#
eSG-ITP(config-subif)#
eSG-ITP(config-controller)#
eSG-ITP(config-cs7-ls)#
eSG-ITP(config-cs7-ls-link)#
eSG-ITP(config-cs7-sua)#
eSG-ITP(config-cs7-asp)#
eSG-ITP(config-cs7-as)#
eSG-ITP(config-cs7-gtt-selector)#

IOS Basics | 34 | 2003 Cisco Systems

2006

<Ctrl><z> or end
Exit

Configuration Modes
eSG-ITP# config term
eSG-ITP(config)#
: : :
eSG-ITP(config)# (commands)
eSG-ITP(config)#
eSG-ITP(config)#exit
eSG-ITP#
eSG-ITP# config term
: : :
eSG-ITP(config)# controller E1 0/0
eSG-ITP(config-controller)# : :
eSG-ITP(config-controller)#(commands)
eSG-ITP(config-controller)# : :
eSG-ITP(config-controller)# exit
eSG-ITP(config)# interface type port
eSG-ITP(config-if)#
: : :
eSG-ITP(config-if)# (commands)
eSG-ITP(config-if)#
: : :
eSG-ITP(config-if)# exit
eSG-ITP(config)#exit
eSG-ITP#

IOS Basics | 35 | 2003 Cisco Systems

Global Configuration Mode

Used for system-wide


configurations requiring one
command line. Includes
commands to enter other
configuration modes.

Other Configuration Modes

2006

Used for other


configurations requiring
multiple command lines

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
/
eSG-ITP(config)# interface fastEthernet
<0-1> FastEthernet port number
eSG-ITP(config)# interface fastEthernet
eSG-ITP(config-if)#

IOS Basics | 36 | 2003 Cisco Systems

?
0?
0/?
0/0

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
results?

No

Remove changes

Yes
Save changes to backup
eSG-ITP# copy running-config startup-config
eSG-ITP# copy running-config tftp

Examine backup file

eSG-ITP(config)# no ....
eSG-ITP# copy startup running
eSG-ITP# copy tftp running-config
eSG-ITP# erase startup-config
eSG-ITP# reload

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

RAM

TFTP
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

RAM

TFTP
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

RAM

TFTP
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
Terminal

logging console

Telnet
Terminal

terminal monitor
Debug Output
and
System Error
Messages

logging on
logging 10.10.1.10
10.10.1.10

UNIX Host
(Running
syslog
Server)

show logging

Buffers
logging buffered

IOS Basics | 50 | 2003 Cisco Systems

2006

Thats all Folks!

IOS Basics | 51 | 2003 Cisco Systems

2006

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