CCENT Lab 1 1 Performing Switch Initial Startup v1.0.1
CCENT Lab 1 1 Performing Switch Initial Startup v1.0.1
DAVID
BOMBAL
David Bombal CCNA Labs Lab 1.1
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.
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
Task 1: Perform a reload and verify that the switch is not configured
om
l.c
ba
om
db
vi
da
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.
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
privileged exec #
#copy running-config #copy run start Copies the running (RAM)
startup-config config to
Startup-config (NVRAM)
om
l.c
ba
om
system clock
#show clock #sh clock Displays the system
clock
vi
om
l.c
ba
om
db
vi
da
Lab Setup:
Open the initial Packet Tracer file:
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
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
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
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.
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
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.
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
Switch# reload
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
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
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)
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.
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
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
If you want to proceed with your lab, go to Step 5. The following is for information
purposes only:
http://www.cisco.com/en/US/docs/switches/lan/catalyst2960/hardware/installation/gui
de_stack/HGcliSET.html#wp1041988
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]:
~output omitted~
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
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
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
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
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
Directory of flash:/
1 -rw- 4414921 <no date> c2960-lanbase-mz.122-25.FX.bin
db
Activity Verification:
da
You have completed this task when you attain these results:
Switch> enable
Switch# conf t
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)# end
db
Building configuration...
da
[OK]
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
Activity Verification
You have completed this task when you attain these results:
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
Exec commands:
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
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 ?
%incomplete command.
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 ?
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
June 1 2018
Step 4: Type the following command at the prompt and press enter.
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
2. You used the built-in editor and the keystrokes for cursor navigations
vi
da
Step 1: Using the appropriate command, verify that history is enabled and the current
history size for the console line.
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
Editing is enabled.
History is enabled, history size is 10
DNS resolution in show commands is enabled
Full user help is disabled
vi
Shell: enabled
Shell trace: off
No output characters are padded
No special data dispatching characters
Step 2: Change the session history size to 100 lines for the console line and verify
your changes have been accepted
om
l.c
Verify your changes: ba
SW1# show terminal
Shell: enabled
Shell trace: off
No output characters are padded
No special data dispatching characters
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
Shell: enabled
Only the lines that have ‘history’ in the show terminal output display:
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
SW1(config)# no ip ?
Switch(config)# no ?
da
Note:
There are many more commands available in the real IOS devices than
Packer Tracer provides.
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).
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)# exec-?
da
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
Step 5: Disable unsolicited messages and debugs from interrupting your session by
enabling synchronous logging.
SW1(config-line)# logging synchronous
SW1(config-line)# end
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
Building configuration...
[OK]
SW1#
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.
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