Beruflich Dokumente
Kultur Dokumente
Operating and
Configuring a Cisco
IOS Device
© 1999, Cisco Systems, Inc. 41
Objectives
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
© 1999, Cisco Systems, Inc. www.cisco.com ICND—42
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
Cisco IOS software delivers network
services and enables networked
applications.
• 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
© 1999, Cisco Systems, Inc. www.cisco.com ICND—45
An Overview of
Cisco Device Startup
• Find and check device hardware
• Find and load Cisco IOS software image
• Find and apply device configurations
Interfaces
Virtual terminal
Console port
TFTP
Auxiliary port
PC or Unix server
• Configurations can come
from many sources Web or Network
Management
server
• Configurations will act in
device memory
© 1999, Cisco Systems, Inc. www.cisco.com ICND—47
Cisco IOS User Interface
Fundamentals
• Uses a command line interface
• Operations vary on different
internetworking devices
• Type or paste entries in the Cisco
IOS
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
© 1999, Cisco Systems, Inc. www.cisco.com ICND—48
Cisco IOS Software EXEC
There are two main EXEC modes for entering
commands.
First mode:
User Mode
• Limited examination of switch or router
• Command Prompt is hostname>
Second mode (and most commonly used):
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#
1. Before you start the switch,
verify the cabling and console
connection
2. Attach the power cable plug to
the switch power supply socket
3. Observe the boot sequence
– LEDs on the switch chassis
– Cisco IOS software output text
1. At the start, all port LEDs are green.
2. Each LED turns off after its test completes.
3. If a test fails, its LED turns amber.
4. System LED turns amber if any test fails.
5. If no test fails, POST completes.
6. On POST completion, LEDs blink
then turn off.
Enter Selection:
> User mode prompt
> enable
Enter password:
# Privileged mode prompt
# disable
> quit
ContextSensitive Help Console Error Messages
Provides a list of Identify problems with switch
commands and the commands incorrectly
arguments associated entered so that you can alter
with a specific command. or correct them.
Command History Buffer
Allows recall of long or
complex commands or
entries for reentry, review, or
correction.
Switch#show version
Switch#show running-config
Switch#show interfaces
Display operational status of switch components
wg_sw_a#show ip
IP Address: 10.5.5.11
Subnet Mask: 255.255.255.0
Default Gateway: 10.5.5.3
Management VLAN: 1
Domain name:
Name server 1: 0.0.0.0
Name server 2: 0.0.0.0
HTTP server : Enabled
HTTP port : 80
RIP : Enabled
wg_sw_a#
Configuration Modes:
• Global Configuration Mode
– wg_sw_a# conf term
– wg_sw_a(config)#
• Interface Configuration Mode
– wg_sw_a(config)# interface e0/1
– wg_sw_a(configif)#
Switch Name
(config)#hostname wg_sw_c
wg_sw_c(config)#
Sets local identity for the switch
wg_sw_a(config)#ip address 10.5.5.11 255.255.255.0
software image
3. Observe the boot sequence
Cisco IOS software output
Find and apply router
text on the console
configuration information
At any point you may enter a question mark '?' for help.
Use ctrl-c to abort configuration dialog at any prompt.
Default settings are in square brackets '[ ]'.
wg_ro_c con0 is now available
Setup mode wg_ro_c>
Usermode
prompt
Unconfigured versus configured router
© 1999, Cisco Systems, Inc. www.cisco.com ICND—426
Setup: The Initial
Configuration Dialog
Router#setup
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 '[]'.
First, would you like to see the current interface summary? [yes]:
• Interfaces found during startup
Initial global parameters
© 1999, Cisco Systems, Inc. www.cisco.com ICND—429
Setup Global Parameters
(cont.)
Initial protocol configurations
Console
You can abbreviate a command to the fewest characters
that make a unique character string
© 1999, Cisco Systems, Inc. www.cisco.com ICND—434
Router Privileged Mode
Command List
wg_ro_c#?
Exec commands:
access-enable Create a temporary Access-List entry
access-profile Apply user-profile to interface
access-template Create a temporary Access-List entry
bfe For manual emergency modes setting
cd Change current directory
clear Reset functions
clock Manage the system clock
configure Enter configuration mode
connect Open a terminal connection
copy Copy from one file to another
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
help Description of the interactive help system
-- More --
You can complete a command string by typing the unique
character string then pressing the tab key
© 1999, Cisco Systems, Inc. www.cisco.com ICND—435
Router Command Line
Help Facilities
ContextSensitive Help Console Error Messages
Provides a list of Identify problems with router
commands and the commands incorrectly
arguments associated entered so that you can alter
with a specific command. or correct them.
Command History Buffer
Allows recall of long or
complex commands or
entries for reentry, review, or
correction.
Router# cl?
clear clock
Router# clock
• Symbolic translation
• Command prompting
% Incomplete command.
• Last command recall
Router# clock ?
set Set the time and date
Translating "CLOK"
% Unknown command
Router#or computer
clock name,
set or unable to find computer address
19:56:00
% Incomplete command.
Router#
clear Router#
clock clock set 19:56:00 ?
• Command
Router#
<1-31>
MONTH
Day of the month
Month of the year
prompting
• Syntax checking
% Incomplete command.
Shape the future of internetworking by creating
unprecedented value for customers, employees,
and partners.
(Automatic scrolling of long lines).
(Automatic scrolling of long lines).
<CtrlA> Move to the beginning of the command line.
(Automatic scrolling of long lines).
<CtrlA> Move to the beginning of the command line.
<CtrlE> Move to the end of the command line.
(Automatic scrolling of long lines).
<CtrlA> Move to the beginning of the command line.
<CtrlE> Move to the end of the command line.
<EscB> Move back one word.
(Automatic scrolling of long lines).
<CtrlA> Move to the beginning of the command line.
<CtrlE> Move to the end of the command line.
<EscB> Move back one word.
<CtrlF> Move forward one character.
(Automatic scrolling of long lines).
<CtrlA> Move to the beginning of the command line.
<CtrlE> Move to the end of the command line.
<EscB> Move back one word.
<CtrlF> Move forward one character.
<CtrlB> Move back one character.
(Automatic scrolling of long lines).
<CtrlA> Move to the beginning of the command line.
<CtrlE> Move to the end of the command line.
<EscB> Move back one word.
<CtrlF> Move forward one character.
<CtrlB> Move back one character.
<EscF> Move forward one word.
(Automatic scrolling of long lines).
<CtrlA> Move to the beginning of the command line.
<CtrlE> Move to the end of the command line.
<EscB> Move back one word.
<CtrlF> Move forward one character.
<CtrlB> Move back one character.
<EscF> Move forward one word.
<CtrlD> Delete a single character.
CtrlP or Up arrow Last (previous) command recall
CtrlN or Down arrow More recent command recall
Router> show history Show command buffer contents
Router> terminal history size lines Set session command buffer size
wg_ro_a#show version
Cisco 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 phanguye
Image text-base: 0x03050C84, data-base: 0x00001000
Config Config
IOS
show show
runningconfig startupconfig
Console
Setup utility
Setup saves the configuration to NVRAM
Display current and saved configuration
User EXEC mode Router>enable
Ctrl-Z (end)
Privileged EXEC mode Router#config term
Exit
Global configuration mode Router(config)#
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)#
wg_ro_c#
wg_ro_c#copy running-config startup-config
Destination filename [startup-config]?
Building configuration…
wg_ro_c#
Copy the current configuration to NVRAM
Router Name
Router(config)#hostname wg_ro_c
wg_ro_c(config)#
Message of the Day Banner
wg_ro_c(config)#banner motd #
Accounting Department
You have entered a secured
system. Authorized access
only! #
Sets local identity or message for the accessed
router or interface
© 1999, Cisco Systems, Inc. www.cisco.com ICND—454
Configuring Router
Identification
Router Name
Router(config)#hostname wg_ro_c
wg_ro_c(config)#
Message of the Day Banner
wg_ro_c(config)#banner motd #
Accounting Department
You have entered a secured
system. Authorized access
only! #
Interface Description
wg_ro_c(config)#interface ethernet 0
wg_ro_c(config-if)#description Engineering LAN, Bldg. 18
• Sets local identity or message for the
accessed router or interface
© 1999, Cisco Systems, Inc. www.cisco.com ICND—455
Router Password
Configuration
Console Password
Router(config)#line console 0
Router(config-line)#login
Router(config-line)#password cisco
Virtual Terminal Password
Router(config)#line vty 0 4
Router(config-line)#login
Router(config-line)#password sanjose
Virtual Terminal Password
Router(config)#line vty 0 4
Router(config-line)#login
Router(config-line)#password sanjose
Enable Password
Router(config)#enable password cisco
Secret Password
Router(config)#enable secret sanfran
• Prevents console session timeout
Router(config)#line console 0
Router(config-line)#logging synchronous
• Redisplays interrupted console input
• type includes serial, ethernet, token ring, fddi, hssi,
loopback, dialer, null, async, atm, bri, and tunnel
• number is used to identify individual interfaces
• For modular routers
Router(config-if)#exit
• Quit from current interface configuration mode
Router(config)#interface serial 0
Specify interface Router(config-if)#
Router(config)#interface serial 0
Specify interface Router(config-if)#
Set clock rate
Router(config-if)#clock rate 64000
(on DCE interfaces Router(config-if)#
only)
Set bandwidth Router(config-if)#bandwidth 64
(recommended) Router(config-if)#exit
Router(config)#exit
Router#
Router(config)#interface ethernet 2
Router(config-if)#media-type 10baset
Select the mediatype connector for the Ethernet
interface
Administratively turns off an interface
r#configure term
r(config)#interface serial 0
r(config-if)#no shutdown
-3-UPDOWN: Interface Seria0, changed state to up
PROTO-5-UPDOWN: Line Protocol on Interface Serial0, changed state to up
Enables an interface that is administratively shutdown
Hardware is HD64570
Description: 64Kb Line to San Jose
:: :: :: :: :: :: :: :: ::
Carrier Detect Keepalives
Shows cable type of serial cables
... 255.255.255.0
fa0/1 fa0/12
fa0/24
core_ server core_sw_a
10.1.1.1 10.1.1.2
255.255.255.0 255.255.255.0
© 1999, Cisco Systems, Inc. www.cisco.com ICND—468
Summary
After completing this chapter, you should
be able to complete 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
• Use the various help and command lineediting
features of each device’s user interface
• Show and recognize fundamental technical details
about each network device
© 1999, Cisco Systems, Inc. www.cisco.com ICND—469
Review Questions
1. What occurs when POST runs on the switch?
Where do you check for problems?
2. How and when do you use setup on the Cisco
router?
3. What is the prompt you see for a network
device in privileged EXEC mode of Cisco IOS
software?
4. List the Cisco IOS software help facilities that
you can use on both router and switch.