0% found this document useful (0 votes)
64 views32 pages

CCENT Lab 1 1 Performing Switch Initial Startup v1.0.1

The document provides instructions on performing initial startup and configuration of a Cisco switch. It discusses switch modes like user mode, privilege mode, global configuration mode, and interface configuration mode. It also lists commands for resetting the switch, configuring the hostname and IP address, and saving the configuration. Key shortcuts for navigation the Cisco IOS user interface are also provided.

Uploaded by

Bijay Lama
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
64 views32 pages

CCENT Lab 1 1 Performing Switch Initial Startup v1.0.1

The document provides instructions on performing initial startup and configuration of a Cisco switch. It discusses switch modes like user mode, privilege mode, global configuration mode, and interface configuration mode. It also lists commands for resetting the switch, configuring the hostname and IP address, and saving the configuration. Key shortcuts for navigation the Cisco IOS user interface are also provided.

Uploaded by

Bijay Lama
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 32

CCENT L A B GUIDE 1 -1

Interconnecting Cisco Network Devices


version 3.0

DAVID
BOMBAL
David Bombal CCNA Labs Lab 1.1

CCENT Lab 1-1 Performing Switch Startup and


Initial Configuration

Basic IOS Navigation Techniques and Modes


Before getting into the configuration of the devices, use this opportunity to learn how
to better navigate the Cisco IOS - it will save you a lot of time in the long run!

Router and Switch Modes:

SW1> !User Mode


SW1> en

om
SW1# !Privilege Mode
SW1# conf t
Enter configuration commands, one per line. End with CNTL/Z.

l.c
SW1(config)# !Global Configuration Mode
SW1(config)# int f0/1
ba
SW1(config-if)# !Interface Configuration Mode
SW1(config-if)# ^Z !Ends configuration mode
om

SW1#
%SYS-5-CONFIG_I: Configured from console by console
db

The modes can get confusing, because certain commands are only valid in certain
vi

modes:
da

 show commands - valid in user and privilege mode (also called enable mode)
 debug commands - valid in user and privilege mode (also called enable
mode)
 Global config mode commands- configuration commands that affect the
router or switch as a whole
 Interface mode commands- interface commands (such as IP addresses)

Note:
If you believe a command you are typing is a valid command; and the
router or switch is not accepting the command, check that you are in
the correct mode. Also, check that you are configuring the device you
think you are. It is easy to jump between devices and end up trying to
configure as switch with router commands.

Rev 1.0.1 L1.1-1


David Bombal CCNA Labs Lab 1.1

Key shortcuts in Cisco IOS


Please try the following shortcuts:

 Ctrl A - beginning of line


 Ctrl E - end of line
 Ctrl D - delete a character
 Ctrl F - forward one character
 Ctrl B - back one character
 Ctrl Z - back to privilege mode
 Ctrl P or "up arrow" - display previous command
Ctrl N or "down arrow" - display next command

om

 ? - The question mark is your friend - use it for help! If you are not sure about
a command, use ? to help you.

l.c
Practice the commands on your devices – it will save you lots of time and aggravation
too!
ba
om
db
vi
da

Rev 1.0.1 L1.1-2


David Bombal CCNA Labs Lab 1.1

CCENT Lab 1-1 Performing Switch Startup and Initial Configuration

Task 1: Perform a reload and verify that the switch is not configured

Task 2: Configure the Switch with a Hostname and IP Address

Task 3: Explore Context Sensitive Help

Task 4: Improve the Usability of the CLI

Task 5: Can you complete the Assessment Lab

Visual Objective 1. Performing switch startup and initial configuration

om
l.c
ba
om
db
vi
da

Visual Objective 2. Topology and IP Addressing

PC1 IP Address: SW1 Interface Vlan1 IP Address

10.1.1.100 /24 10.1.1.11 /24

Rev 1.0.1 L1.1-3


David Bombal CCNA Labs Lab 1.1

NOTE: The following table of commands is reference only. Do not try to type them all
in your lab now. Follow the steps after the table.

Command List Useful Shortcut Description


Command
>enable >en Activates privilege exec
mode
#erase startup-config #erase start Erase the startup-config in
NVRAM
#delete flash:vlan.dat Deletes the Vlan database
information
#reload Restarts the device and
Operating System
#show running-config #sh run Displays the current
configuration in RAM
#show startup-config #sh start Displays the Saved

om
configuration in NVRAM
#show version #sh ver Displays the Switch
hardware and software
#show flash: #sh flash Displays the layout and

l.c
contents of Flash
#configure terminal #conf t Activates configuration
Mode from the terminal
ba
(config)#hostname (config)#host Sets the system name
‘hostname’ ‘hostname’
om

(config)#interface (config)#int vlan Enters Interface mode for


vlan 1 1 VLAN1 to set the Switch
management IP Address
(config-if)#ip address Sets the IP Address and
db

ip-address subnet-mask mask of the interface


(config-if)#no shut (config-if)#no sh Enables the interface
(config-if)#end (config-if)#^Z Ends any configuration
vi

(ctrl +Z) mode or sub-mode and


Returns the prompt to
da

privileged exec #
#copy running-config #copy run start Copies the running (RAM)
startup-config config to
Startup-config (NVRAM)

Rev 1.0.1 L1.1-4


David Bombal CCNA Labs Lab 1.1

#? Help may be requested at any point in a command


by entering a question mark '?'. If nothing matches,
the help list will be empty and you must backup
until entering a '?' shows the available options.

Two styles of help are provided:


1. Full help is available when you are ready to
enter a command argument and describe each
argument (e.g. ‘show?”)
2. Partial help is provided when abbreviated
argument is entered and you want to know the
arguments match the input (e.g. ‘show pr?”)

om
l.c
ba
om

#clock set Manages the


db

system clock
#show clock #sh clock Displays the system
clock
vi

#show terminal #sh term Displays the current


settings of the
da

#terminal history size Sets the history size


‘size’ buffer to a no. of
lines
(config)#no ip domain Disables name
lookup resolution lookups

(config)#line console (config)#line con 0 Enters line console


0 0 mode
(config-line)#exec- Sets the exec
timeout ‘minutes prompt idle timeout
‘seconds’ values
(config-line)#logging (config-line)#logg s Synchronizes
synchronous privilege exec
unsolicited
messages and
debugs output and

Rev 1.0.1 L1.1-5


David Bombal CCNA Labs Lab 1.1

presents a new line


for solicited
messages and
debugs
(config-line)#end (config-line)#^C Aborts any
(Ctrl+C) configuration mode
or sub-mode and
Returns the prompt
to privileged exec
(config-line)#exit Exist the current
configuration mode
or sub-mode –e.g.
at this prompt
executing exit would
take you to
SW1(config)#

om
l.c
ba
om
db
vi
da

Rev 1.0.1 L1.1-6


David Bombal CCNA Labs Lab 1.1

Lab Setup:
Open the initial Packet Tracer file:

‘CCENT Lab 1-1 Performing Switch Setup and Initial Configuration.pkt’

Setting the IP Address on the PC

On the PC, verify that the IP Address is set correctly as shown below. To do this,
double click the PC to open the configuration utility. Select the Desktop tab:

om
l.c
ba
om
db
vi
da

Rev 1.0.1 L1.1-7


David Bombal CCNA Labs Lab 1.1

Click the IP Configuration settings in the top left hand corner.

Make sure that the Static radio button is selected and enter the details as shown below:

om
Once the settings are confirmed, close the IP Configuration screen by clicking the ‘X’
in the right hand corner of the blue bar. Leave the PC1 window open, as you will need

l.c
it again.
ba
om
db
vi
da

Rev 1.0.1 L1.1-8


David Bombal CCNA Labs Lab 1.1

Task 1. Perform a Reload and Verify that the Switch is not


configured:
Activity Procedure

Step 1: Access the CLI of the Switch and enter user exec mode.

Click on the SW1 device within the topology and select the CLI tab. You will see
something similar to figure shown below.

om
l.c
ba
om
db
vi
da

Rev 1.0.1 L1.1-9


David Bombal CCNA Labs Lab 1.1

Observe that in the output it states Press RETURN to get started! Press Enter
and the Switch should now display the USER EXEC prompt of:

Switch>

You might already be at the user exec prompt: Switch> depending on the status of
your switch. If so move onto the next step below. The device will be erased for the
beginning of your session, but you will do this in the next step anyway.

Step 2: To see the effect of entering a privileged-level command in user exec prompt,
enter the erase startup-config command.

Switch> erase startup-config

om
^
% Invalid input detected at '^' marker
.

l.c
Notice the caret symbol ^ -this is used in IOS to indicate an error and a pointer in the
ba
syntax where the error starts
om

Step 3: Enter privileged exec mode. How do you know that you are in privileged
exec mode?
db

Switch> enable

Switch#
vi
da

Rev 1.0.1 L1.1-10


David Bombal CCNA Labs Lab 1.1

Step 4: Erase the startup configuration and the vlan database file – the
vlan.dat is a small file stored in flash and holds VLAN configurations. Delete this
file before proceeding to reload the device. Observe the output of the reload.

Switch# erase startup-config


Erasing the nvramfilesystem will remove all configuration
files! Continue? [confirm]
[OK]
Erase of nvram: complete
%SYS-7-NV_BLOCK_INIT: Initialized the geometry of nvram

Switch# delete flash:vlan.dat

om
Delete filename [vlan.dat]?
Delete flash:vlan.dat? [confirm]

lc
%Error deleting flash:vlan.dat (No such file or directory)
ba
om

Note:
db

If you receive an error message that no such thing file exists, proceed
reloading the device as the vlan.dat file has already been deleted.
The vlan.dat file contains information about existing VLANs, as well
vi

as other settings. The files is not removed when the erase


startup-config command is used. Removing both files prior to
da

reloading the devices ensures that the switch is reset.


.

Rev 1.0.1 L1.1-11


David Bombal CCNA Labs Lab 1.1

Switch# reload

Proceed with reload? [confirm]


C2960 Boot Loader (C2960-HBOOT-M) Version 12.2(25r)FX, RELEASE
SOFTWARE (fc4)
Cisco WS-C2960-24TT (RC32300) processor (revision C0) with 21039K
bytes of memory.
2960-24TT starting...
Base ethernet MAC Address: 000B.BE2B.27D6
Xmodem file system is available.
Initializing Flash...
flashfs[0]: 1 files, 0 directories
flashfs[0]: 0 orphaned files, 0 orphaned directories

om
flashfs[0]: Total bytes: 64016384
flashfs[0]: Bytes used: 4414921
flashfs[0]: Bytes available: 59601463

l.c
flashfs[0]: flashfsfsck took 1 seconds.
...done Initializing Flash.
ba
done.
Boot Sector Filesystem (bs:) installed, fsid: 3
om

Parameter Block Filesystem (pb:) installed, fsid: 4


Loading "flash:/c2960-lanbase-mz.122-25.FX.bin"...
######################################################### [OK]
db

Restricted Rights Legend


Use, duplication, or disclosure by the Government is
vi

subject to restrictions as set forth in subparagraph


da

(c) of the Commercial Computer Software - Restricted


Rights clause at FAR sec. 52.227-19 and subparagraph
(c) (1) (ii) of the Rights in Technical Data and Computer
Software clause at DFARS sec. 252.227-7013.
cisco Systems, Inc.
170 West Tasman Drive
San Jose, California 95134-1706

Cisco IOS Software, C2960 Software (C2960-LANBASE-M), Version


12.2(25)FX, RELEASE
SOFTWARE (fc1)
Copyright (c) 1986-2005 by Cisco Systems, Inc.

Rev 1.0.1 L1.1-12


David Bombal CCNA Labs Lab 1.1

Compiled Wed 12-Oct-05 22:05 by pt_team


Image text-base: 0x80008098, data-base: 0x814129C4

Cisco WS-C2960-24TT (RC32300) processor (revision C0) with 21039K


bytes of memory.

24FastEthernet/IEEE 802.3 interface(s)


2 Gigabit Ethernet/IEEE 802.3 interface(s)

63488K bytes of flash-simulated non-volatile configuration memory.


Base ethernet MAC Address : 000B.BE2B.27D6
Motherboard assembly number : 73-9832-06

om
Power supply part number : 341-0097-02
Motherboard serial number : FOC103248MJ
Power supply serial number : DCA102133JA

l.c
Model revision number : B0
Motherboard revision number : C0
ba
Model number : WS-C2960-24TT
System serial number : FOC1033Z1EY
om

Top Assembly Part Number : 800-26671-02


Top Assembly Revision Number : B0
Version ID : V02
db

CLEI Code Number : COM3K00BRA


Hardware Board Revision Number : 0x01
vi

Switch Ports Model SW Version SW


da

Image
------ ----- ----- ---------- -------
---
* 1 26 WS-C2960-24TT 12.2 C2960-LANBASE-M
Cisco IOS Software, C2960 Software (C2960-LANBASE-M), Version
12.2(25)FX, RELEASESOFTWARE (fc1)

Copyright (c) 1986-2005 by Cisco Systems, Inc.


Compiled Wed 12-Oct-05 22:05 by pt_team

Press RETURN to get started!

Rev 1.0.1 L1.1-13


David Bombal CCNA Labs Lab 1.1

Note:
This message may not be the last line of the output after the reload.
When you see the Press Return to get Started! message in
the reloaded device CLI output, it means the device has rebooted and
is ready to be used.

%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up


%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1,
changed state to up
%LINK-5-CHANGED: Interface FastEthernet0/3, changed state to up

om
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3,
changed state to up

l.c
ba
After you have pressed RETURN, you should be at the user exec prompt once
again:
om

Switch>
db

Did You Know?


vi

If you wanted to, you could also enter setup on the switch by selecting
yes and then follow a set of interactive prompts to guide you through
da

the minimum required parameters to configure the switch. Most


engineers, though skip setup and manually configure the device. Listed
below is the output from the setup utility as it runs on the 2960 Switch.
You do not need to run setup in the Lab; this is just an output for
reference.

If you want to proceed with your lab, go to Step 5. The following is for information
purposes only:

To find more about the setup command, visit this link:

http://www.cisco.com/en/US/docs/switches/lan/catalyst2960/hardware/installation/gui
de_stack/HGcliSET.html#wp1041988

Rev 1.0.1 L1.1-14


David Bombal CCNA Labs Lab 1.1

Would you like to enter the initial 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

Basic management setup configures only enough connectivity for management of the
system, extended setup will ask you to configure each interface on the system.

om
Would you like to enter basic management setup? [yes/no]: y
Configuring global parameters:

l.c
Enter host name [Switch]:

The enable secret is a password used to protect access to


ba
privileged EXEC and configuration modes. This password, after
entered, becomes encrypted in the configuration.
Enter enable secret: cisco123
om

The enable password is used when you do not specify an


enable secret password, with some older software versions, and
some boot images.
Enter enable password: cisco
db

The virtual terminal password is used to protect


access to the router over a network interface.
Enter virtual terminal password: cisco
vi

Configure SNMP Network Management? [no]:


da

Interface IP-Address OK? Method Status Protocol


FastEthernet0/1 unassigned YES unset up up
FastEthernet0/2 unassigned YES unset down down
FastEthernet0/3 unassigned YES unset up up
FastEthernet0/4 unassigned YES unset down down
FastEthernet0/5 unassigned YES unset down down

~output omitted~

FastEthernet0/24 unassigned YES unset down down


GigabitEthernet0/1 unassigned YES unset down down
GigabitEthernet0/1 unassigned YES unset down down
Vlan1 unassigned YES manual administratively
down down

Rev 1.0.1 L1.1-15


David Bombal CCNA Labs Lab 1.1

Enter interface name used to connect to the management network from


the above interface summary: Vlan1

Configuring interface Vlan1:

Configure IP on this interface? [no]:

Would you like to enable as a cluster command switch? [yes/no]: n

Would you like to enter the initial 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 '[]'.

om
The following configuration command script was created:

l.c
hostname Switch
enable secret 4
tnhtc92DXBhelxjYk8LWJrPV36S2i4ntXrpb4RFmfqY,^ALu^P^B#
ba
enable password cisco
linevty 0 15
password cisco
om

nosnmp-server
no ip routing
!
interface Vlan1
db

no shutdown
no ip address
!
interface GigabitEthernet
vi

interface FastEthernet0/2
interface FastEthernet0/3
da

interface FastEthernet0/4
~output omitted~
interface FastEthernet0/24
interface GigabitEthernet0/1
interface GigabitEthernet0/2

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

Rev 1.0.1 L1.1-16


David Bombal CCNA Labs Lab 1.1

Note:
You can enter the setup by typing setup at IOS command prompt.

Step 5: After pressing the Return key and skipping the initial setup above, verify that
the switch configuration has been erased correctly.

Switch> en
Switch# show startup-config

startup-config is not present

om
l.c
Step 6: Using the appropriate show commands view the following in the switch output:
ba
 Switch Model Number (i)
 Software Version (ii)
 Summary of the Interfaces (iii)
om

 RAM (iv)
 NVRAM(v)
 FLASH (vi)
db
vi

Switch# show version


Cisco IOS Software, C2960 Software (C2960-LANBASE-M), Version
da

12.2(25)FX(ii)
RELEASE SOFTWARE (fc1)
Copyright (c) 1986-2005 by Cisco Systems, Inc.
Compiled Wed 12-Oct-05 22:05 by pt_team

ROM: C2960 Boot Loader (C2960-HBOOT-M) Version 12.2(25r)FX, RELEASE


SOFTWARE (fc4)
System returned to ROM by power-on
Cisco WS-C2960-24TT (RC32300) processor (revision C0) with
21039K(iv) bytes of memory.
24FastEthernet/IEEE 802.3 interface(s)
2 Gigabit Ethernet/IEEE 802.3 interface(s)

Rev 1.0.1 L1.1-17


David Bombal CCNA Labs Lab 1.1

63488K(v) bytes of flash-simulated non-volatile configuration


memory.
Base ethernet MAC Address : 000B.BE2B.27D6
Motherboard assembly number : 73-9832-06
Power supply part number : 341-0097-02
Motherboard serial number : FOC103248MJ
Power supply serial number : DCA102133JA
Model revision number : B0
Motherboard revision number : C0
Model number (i) : WS-C2960-24TT
System serial number : FOC1033Z1EY
Top Assembly Revision Number : B0
Version ID : V02
CLEI Code Number : COM3K00BRA
Hardware Board Revision Number : 0x01

om
Switch Ports Model SW Version SW
Image
------ ----- ----- ---------- -------

l.c
---
* 1 26(iii) WS-C2960-24TT(i)12.2 (ii) C2960-
ba
LANBASE-M
Configuration register is 0xF
om

Switch# show flash

Directory of flash:/
1 -rw- 4414921 <no date> c2960-lanbase-mz.122-25.FX.bin
db

(vi)64016384 bytes total (59601463 bytes free)


vi

Activity Verification:
da

You have completed this task when you attain these results:

a. You performed a switch reload.


b. You verified that the switch was not configured.

Rev 1.0.1 L1.1-18


David Bombal CCNA Labs Lab 1.1

Task 2. Configure the Switch with a Hostname of SW1

Step 1: Configure the switch name as SW1:

Switch> enable

Switch# conf t

Switch(config)# hostname SW1

om
Step 2: Configure the Switch with an IP address on the default management VLAN.
Save your configuration after completing this step.

l.c
SW1(config)# interface vlan 1

SW1(config-if)# ip address 10.1.1.11 255.255.255.0


ba
SW1(config-if)# no shut
om

%LINK-5-CHANGED: Interface Vlan1, changed state to up


%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed
state to up

SW1(config-if)# end
db

SW1# copy run start


vi

Destination filename [startup-config]?

Building configuration...
da

[OK]

Step 3: Access PC1 for this task.

Rev 1.0.1 L1.1-19


David Bombal CCNA Labs Lab 1.1

Step 4: On PC1, open a command prompt and verify the IP address for PC1 matches
the Visual Objective provided in the Topology and IP Addressing section of the
Lab.

om
l.c
ba
Step 5: From PC1, Ping the VLAN 1 IP address of SW1 to verify Layer 3 connectivity
between PC1 and SW1:
om
db
vi
da

Rev 1.0.1 L1.1-20


David Bombal CCNA Labs Lab 1.1

Activity Verification

You have completed this task when you attain these results:

1. You configured the Switch with a Hostname and IP Address in VLAN 1.

2. You verified that PC1 had the correct IP Address.

3. Your Ping from PC1 to SW1 VLAN 1 IP Address was successful.

Task 3: Explore Context Sensitive Help.


In this task, you will explore the help facilities of the CLI to locate and complete correct
command syntax.

Step 1: Enter privileged exec mode from user exec and enter the ? (help) to list the

om
available commands. If you are already at the SW1# prompt then continue by entering
? (or help)

l.c
Note:
The ? is also supported at the user exec prompt (>) and will list the
ba
supported syntax commands available. It will have a more limited
number of commands than the enabled exec prompt (#)
om

SW1>

SW1> en
db

SW1# ?
vi
da

Rev 1.0.1 L1.1-21


David Bombal CCNA Labs Lab 1.1

Exec commands:

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
logout Exit from the EXEC
more Display the contents of a file

om
no Disable debugging informations
ping Send echo messages
reload Halt and perform a cold restart
resume Resume an active network connection

l.c
setup Run the SETUP command facility
show Show running system information
ssh Open a secure shell client connection
ba
telnet Open a telnet connection
terminal Set terminal line parameters
traceroute Trace route to destination
undebug Disable debugging functions (see also 'debug')
om

vlan Configure VLAN parameters


write Write running configuration to memory, network,
or terminal
db
vi
da

Rev 1.0.1 L1.1-22


David Bombal CCNA Labs Lab 1.1

Step 2: Using the ? key, set the clock on the switch to the current time and date. You
will use some IOS enhanced editing features during this task.

SW1# clock ?

set Set the time and date

SW1# clock set !Press the enter key

%incomplete command.

SW1# clock set ?

hh:mm:ss Current Time

om
Using the ‘Ctrl-P’ or ‘Up-arrow’ keystroke recall your last command and end with
? for help building the commands. If you recall too many commands then use the
‘Ctrl-N’ or ‘Down-arrow’ to find the command you are after.

l.c
SW1# clock set 15:55:00 ?

<1-31> Day of the month


ba
Keep using the ? for help building the commands

MONTH Month of the year


om

SW1# clock set 15:55:00 1 June 2018

Press the enter key after you have correctly entered the time and date as shown.
db
vi

Step 3: Verify the current time and date settings on the Switch.
da

Note:
Remember to use your Shortcuts- you may have already typed this command!

SW1# sh clock

15:55:20.736 UTC Fri

June 1 2018

Rev 1.0.1 L1.1-23


David Bombal CCNA Labs Lab 1.1

Step 4: Type the following command at the prompt and press enter.

SW1# !this command changuw the clck for the swch

Did you know?

Using the exclamation mark (!) at the beginning of a line indicates that you
are entering a ‘comment’ in IOS. It will not become part of the devices
configuration, but can be very useful when creating your configurations in a
text editor when you want to add useful descriptions to your configuration
as a reminder.

om
Step 5: Using the Ctrl-P keystroke recall your last comment, update the comment text
to display the following.

l.c
SW1# ! This command changes the clock for the switch
ba
om

Activity Verification

You have completed this task when you attain these results:
db

1. You used the system help and command-completion functions

2. You used the built-in editor and the keystrokes for cursor navigations
vi
da

Rev 1.0.1 L1.1-24


David Bombal CCNA Labs Lab 1.1

Task 4: Improve the Usability of the CLI


In this section, you will enter commands that will improve the usability of the CLI. You
will increase the number of lines in the history buffer, increase the inactivity timer on
the console port, stop attempted name resolution and prevent unsolicited messages
interrupting your session.

Step 1: Using the appropriate command, verify that history is enabled and the current
history size for the console line.

SW1# show terminal

Line 0, Location: "", Type: ""


Length: 24 lines, Width: 80 columns
Baud rate (TX/RX) is 9600/9600, no parity, 2 stopbits, 8 databits
Status: PSI Enabled, Ready, Active, Ctrl-c Enabled, Automore On
Capabilities: none

om
Modem state: Ready
Special Chars: Escape Hold Stop Start Disconnect
Activation
^^x none - - none

l.c
Timeouts: Idle EXEC Idle Session Modem Answer
Session Dispatch
00:10:00 never none not set
Idle Session Disconnect Warning never
ba
Login-sequence User Response 00:00:30
Autoselect Initial Wait not
set
om

Modem type is unknown.


Session limit is not set.
Time since activation: 00:02:39
db

Editing is enabled.
History is enabled, history size is 10
DNS resolution in show commands is enabled
Full user help is disabled
vi

Allowed input transports are none.


Allowed output transports are telnet ssh.
da

Preferred transport is telnet.

Shell: enabled
Shell trace: off
No output characters are padded
No special data dispatching characters

Rev 1.0.1 L1.1-25


David Bombal CCNA Labs Lab 1.1

Step 2: Change the session history size to 100 lines for the console line and verify
your changes have been accepted

SW1# terminal history ?

size Set history buffer size

Remember to use your Shortcuts to recall your commands!

SW1# terminal history size ?

<0-256> Size of history buffer

SW1# terminal history size 100

om
l.c
Verify your changes: ba
SW1# show terminal

Line 0, Location: "", Type: ""


Length: 24 lines, Width: 80 columns
om

Baud rate (TX/RX) is 9600/9600, no parity, 2 stopbits, 8 databits


Status: PSI Enabled, Ready, Active, Ctrl-c Enabled, Automore On
Capabilities: none
Modem state: Ready
db

Special Chars: Escape Hold Stop Start Disconnect


Activation
^^x none - - none
vi

Timeouts: Idle EXEC Idle Session Modem Answer


Session Dispatch
da

00:10:00 never none


not set
Idle Session Disconnect Warning never
Login-sequence User Response 00:00:30
Autoselect Initial Wait not set

Modem type is unknown.


Session limit is not set.
Time since activation: 00:02:39
Editing is enabled.
History is enabled, history size is 100

DNS resolution in show commands is enabled


Full user help is disabled

Allowed input transports are none.


Allowed output transports are telnet ssh.

Rev 1.0.1 L1.1-26


David Bombal CCNA Labs Lab 1.1

Preferred transport is telnet.

Shell: enabled
Shell trace: off
No output characters are padded
No special data dispatching characters

Did you know?


There are several options available in IOS to verify the settings of either
the default parameters or the one’s that you have set. One way of
verifying the settings have been shown above using the ‘show terminal’
command. However, you can use IOS regular expressions to verify only
specific information that you require. One of these uses the vertical bar
(the “pipe” symbol). Some examples are shown below.
However, Packet tracer does not have these abilities in the current

om
version for this output.

l.c
Alternative Option 1: On Real IOS ONLY

Output begins where the Cisco IOS finds the word history in show terminal:
ba
SW1# sh terminal | begin history
om

History is enabled, history size is 100.

DNS resolution in show commands is enabled


db

Full user help is disabled

Allowed input transports are none.


vi

Allowed output transports are telnet ssh.


da

Preferred transport is telnet.

Shell: enabled

Shell trace: off

No output characters are padded

No special data dispatching characters

Rev 1.0.1 L1.1-27


David Bombal CCNA Labs Lab 1.1

Alternative Option 2: On real Cisco IOS ONLY:

Only the lines that have ‘history’ in the show terminal output display:

SW1# sh terminal | include history

History is enabled, history size is 100.

Step 3: Disable automatic name resolution lookups in IOS.

This is useful when you mistype a command and IOS tries to translate this into an IP
Address. This can be frustrating and you will have to wait for the lookup to occur before
you can enter the command again correctly:

om
SW1# conf t

SW1(config)# no ?

l.c
aaa Authentication, Authorization and Accounting.
access-list Add an access list entry
ba
alias Create command alias
archiveArchive the configuration
arp Set a static ARP entry
authenticationAuth Manager Global Configuration Commands
om

banner Define a login banner


beep Configure BEEP (Blocks Extensible Exchange
Protocol)
db

SW1(config)# no ip ?

Global IP configuration subcommands:


vi

Switch(config)# no ?
da

access-list Add an access list entry


banner Define a login banner
boot Boot Commands
cdp Global CDP configuration subcommands
clock Configure time-of-day clock
enable Modify enable password parameters
hostname Set system's network name
interface Select an interface to configure
ip Global IP configuration subcommands
lldp Global LLDP configuration subcommands
logging Modify message logging facilities
mac MAC configuration
mac-address-table Configure the MAC address table
mls mls global commands
monitor SPAN information and configuration
port-channel EtherChannel configuration
privilege Command privilege parameters

Rev 1.0.1 L1.1-28


David Bombal CCNA Labs Lab 1.1

sdm Switch database management


service Modify use of network based services
snmp-server Modify SNMP engine parameters
spanning-tree Spanning Tree Subsystem
username Establish User Name Authentication
vlan Vlan commands
vtp Configure global VTP state

Note:
There are many more commands available in the real IOS devices than
Packer Tracer provides.

SW1(config)# no ip domain lookup

om
Step 4: The default console line exec timeout is 10 minutes (see Step 1 above for
verification). After 10 minutes of inactivity, the user is disconnected from the console
session and must reconnect (and in a working system, the user would be required to

l.c
input credentials again to protect the console session).

Change this timer to 60 minutes:


ba
Remember:
If you are not at the (config# prompt you will not be able to enter the command
om

below. Cisco IOS has a hierarchical command structure and you have to be in the
appropriate mode to execute certain commands. To get to (config)# (global
configuration mode) you may need to enter configure terminal from the
SW1# privileged exec prompt again if your session timer has affected you.
db
vi

SW1(config)# line console 0

SW1(config-line)# exec-?
da

exec-banner exec-character-bits exec-timeout

SW1(config-line)# exec-timeout ?
<0-35791> Timeout in minutes
SW1(config-line)# exec-timeout 60 ?
<0-2147483> Timeout in seconds

SW1(config-line)# exec-timeout 60 0

Rev 1.0.1 L1.1-29


David Bombal CCNA Labs Lab 1.1

Step 5: Disable unsolicited messages and debugs from interrupting your session by
enabling synchronous logging.
SW1(config-line)# logging synchronous

SW1(config-line)# end

%SYS-5-CONFIG_I: Configured from console by console

SW1#

Note:

om
You are not interrupted by the CLI output anymore! The Cisco IOS gives
you a new line each time you exit to # prompt.

l.c
Step 6. Save your running configuration to the startup configuration.
ba
Remember to use your Shortcuts!
om

IOS understands what you mean by run and start and the type of memory
you are referring to. The running-config is your current config and is held
in RAM (and this would be lost if there was a power outage at this point).
Start or the startup-config is held in NVRAM (non-volatile RAM) and
db

this is restored if there was a power outage. It is important to remember to


save your configurations on a regular basis so you do not lose your
configuration settings.
vi
da

SW1# copy run start

Destination filename [startup-config]?

Building configuration...

[OK]

SW1#

Rev 1.0.1 L1.1-30


David Bombal CCNA Labs Lab 1.1

Task 5: Can you complete the Assessment Lab?


In the Packet Tracer network, there were two PC’s and two Switches. You configured
PC1 and SW1. PC2 and SW2 also require configuration.

Launch the Packet Tracer Assessment file: CCENT Lab 1-1 Switch Initial Setup and
Configuration PTSA.pka

You are required you to configure the host name, IP address, and a default gateway
address on the switch and a valid IP address on PC2 as per the Visual Objectives.

You must also apply the following:

om
1. Set the system clock to match that of Switch 1.
2. Disable symbolic name resolution.
3. Set the hostname, IP Address and default-gateway as per the design.
4. Set descriptions to the ports that are connected to the devices on Switch 2.

l.c
5. Change the idle timeout on the Console port to 30 minutes of inactivity before
the device auto logout.
6. Disable unsolicited messages from interrupting your display.
ba
7. Finally, save your configuration.
om

Activity Verification

You have completed this task when you attain these results:
db

 You changed the history size buffer


 You disabled resolution of symbolic names
 You set the inactivity timeout on the console line to 60 minutes
vi

 You enabled synchronous logging on the console line


 You saved the running-configuration to the startup-configuration.
da

Rev 1.0.1 L1.1-31

You might also like