LAB#03_333
LAB#03_333
OBJECTIVES
#. Of
# Topic CLO Taxonomy level
Lectures
To make console and telnet connections with
4 network devices (e.g., switch and router) using open- 3 2 P5
source terminal emulator software.
OUTCOME(S)
a. An ability to apply knowledge of math, science, and PLO1: Engineering Knowledge:
engineering
k. an ability to use the techniques, skills, and modern PLO5: Modern Tool Usage
engineering tools necessary for engineering practice.
RUBRICS:
Performance Exceeds Meets expectations Does not meet
Score
Metric expectation (4-5) (2-3) expectations (0-1)
Applies the
Applies the relevant knowledge
appropriate and concept to the
knowledge and Fails to apply
problem, possibly
concepts to the relevant knowledge
problem with in a roundabout
Knowledge and and concepts to the
accuracy and way; understands
application problem;
proficiency; the major points of
[PLO1] misunderstands or
shows precise the knowledge,
understanding of fails to recall
with possible
these knowledge critical points.
misunderstanding
and concepts. or failure to recall
minor points;
Modern Tool Computer and Computer and Computer and
Usage [PLO5] software are software are software are
extensively used somewhat utilized, not utilized, no
in the course attempt was made
effort was put into
learning new at learning new
software software
DEPARTMENT OF SOFTWARE ENGINEERING
MEHRAN UNIVERSITY OF ENGINEERING & TECHNOLOGY, JAMSHORO
COMPUTER COMMUNICATION & NETWORKING
(4TH Semester, 2ND Year) LAB HANDOUT # 03
________________________________________________________________________
Total Score
EQUIPMENT
User EXEC Allow you to connect with Router > Default mode after booting. Use exit command
remote devices, perform Login with password, if
basic tests, temporary configured.
change terminal setting and
list system information
Privileged Allow you to set operating Router # Use enable command from user Use exit command
EXEC parameters. It also includes exec mode
high level testing and list
commands like show, copy
and debug.
Global Contain commands those Router(config)# Use configure terminal Use exit command
Configuration affect the entire system command from
privileged exec mode
Interface Contain commands those Router(configif) Use interface type Use exit command
Configuration modify the operation of an # number command from global to return in global
DEPARTMENT OF SOFTWARE ENGINEERING
MEHRAN UNIVERSITY OF ENGINEERING & TECHNOLOGY, JAMSHORO
COMPUTER COMMUNICATION & NETWORKING
(4TH Semester, 2ND Year) LAB HANDOUT # 03
________________________________________________________________________
Sub-Interface Configure or modify the Router(config Use interface type sub Use exit to return
Configuration virtual interface created subif) interface number command in previous mode.
from physical interface from global configuration mode Use end command
or interface configure mode to return in
privileged exec
mode.
ROMMON If router automatically enter ROMMON> Enter reload command from Use exit command in
this mode, then it privileged exec mode. indicates that it fails to Press CTRL + C key locate a
valid IOS image. combination during the first 60 Manual entrance in this seconds of booting
process mode Allow you to perform low-level diagnostics.
We can list all available commands, if we don't know the initials of our command. For
example, to list all available commands at User exec mode, just type? at command prompt
and hit enter key.
DEPARTMENT OF SOFTWARE ENGINEERING
MEHRAN UNIVERSITY OF ENGINEERING & TECHNOLOGY, JAMSHORO
COMPUTER COMMUNICATION & NETWORKING
(4TH Semester, 2ND Year) LAB HANDOUT # 03
________________________________________________________________________
To perform this lab, you need 1 Cisco Catalyst 2950 Switch and at least 1 PC. However,
most of the commands will work on other switch models as well. We are going to use two
different PCs but they can be one and the same physical PC. You will need to connect
them as depicted in the following the network diagram:
DEPARTMENT OF SOFTWARE ENGINEERING
MEHRAN UNIVERSITY OF ENGINEERING & TECHNOLOGY, JAMSHORO
COMPUTER COMMUNICATION & NETWORKING
(4TH Semester, 2ND Year) LAB HANDOUT # 03
________________________________________________________________________
Connect the console cable to the to the console port on the switch and the
other end to the serial port of PC1. Connect PC2 to first Fast Ethernet port
(i.e. FA0/1) using an UTP/STP cable. PC1 must have a terminal client (i.e.
Windows HyperTerminal) installed, and PC2 must be able to setup a telnet
connection.
Before you start with the configuration of the switch, clear the switch configuration by
using the erase startup-config command or the erase nvram: command in Privileged
EXEC mode, and then use the reload command to reboot the switch. After the switch
rebooted, the following message will be displayed:
Press ENTER when the message Press RETURN to get started appears.
Switch>enable
a. What prompt does enable command display and what does it mean?
DEPARTMENT OF SOFTWARE ENGINEERING
MEHRAN UNIVERSITY OF ENGINEERING & TECHNOLOGY, JAMSHORO
COMPUTER COMMUNICATION & NETWORKING
(4TH Semester, 2ND Year) LAB HANDOUT # 03
________________________________________________________________________
_____________________________________________________________________
Change the host name of the switch to "SWR-2024" using the following command:
Switch(config)#hostname SWR-2024
First set the enable password to cisco using the following command: SWR-
2024(config)#enable password cisco
Next, set the enable secret to cisco123 using the following command: SWR-
2024(config)#enable secret cisco123
Next, set the password for all telnet lines to 'cisco456' using the following commands:
SWR-2024 (config)#line vty 0 15
SWR-2024 (config-line)#password cisco456
SWR-2024 (config-line)#login
Although the enable secret is encrypted, other passwords stored in the switch's
configuration are still in clear text like enable password. You can see this by returning to
Privileged EXEC mode and running the show running config:
DEPARTMENT OF SOFTWARE ENGINEERING
MEHRAN UNIVERSITY OF ENGINEERING & TECHNOLOGY, JAMSHORO
COMPUTER COMMUNICATION & NETWORKING
(4TH Semester, 2ND Year) LAB HANDOUT # 03
________________________________________________________________________
SWR-2024#show running-config
When you log on with the enable secret, the switch calculates the hash value again and
compares it with the hash value stored in the configuration. If they match, you typed in
the correct secret and will enter Privileged EXEC mode. You can configure a password
by using the enable password command instead, but in contrary to the enable secret, the
enable password is not encrypted by default. If an enable password and an enable secret
are configured, you will need to enter the enable secret to logon. In other words, there’s
no need to configure an enable password if you configured an enable secret.
Near the end of the configuration, you will notice the vty password you just configured,
and that it is stored in plain text format. To ensure this password, as well as others such as
the console password are also encrypted, use the service password-encryption command
in Global configuration mode:
SWR-2024#configure terminal
SWR-2024(config)#service password-encryption
If you would run the show running-config command in Privileged EXEC mode again, you
will notice the vty password is now also encrypted. For example: 1511021F07257F717E
You can also set a password on the aux or console connection, for example to set the password to
cisco789:
a. At Privileged EXEC mode type ‘show running-config’ and follow the details.
The banner or MOTD (message of the day) is to display a temporary notice to users, such
as issues with system availability. However, because the message displays when a user
connects to the device prior to login, most network administrators are now using it to
display legal notices regarding access to the switch, such as unauthorized access to this
device is prohibited and violators will be prosecuted to the full extent of the law and other
such cheery endearments.
Use the following commands to set the banner or motd on switch which alerts unauthorized users not
to access the switch.
Notice that each of the banner lines ends with a # symbol; this is a delimiter to identify the
end of the message. You can specify any character you want, but the character you choose
is the one you will use to end the banner message. Here is what these messages look like
when you connect to the switch:
Switch stores MAC address of devices those are attached with its interfaces
in CAM table. We can use show mac-address-table command to list all
learned devices.
b. In mac table under type column what does dynamic refers to?
Mention______________________________________________
How to clear mac address table
Switch stores MAC addresses in MAC address table. Gradually it could be full. Once it
full, switch automatically starts removing old entries. You can also clear these tables
manually from privileged exec mode. To delete all entries use following command
switch#clear mac address-table
In above command we entered an entry for static MAC address aaaa.aaaa.aaaa assigned
to FastEnternet 0/1 with default VLAN1.
STEP 5: How to set duplex mode
a. What will be status of line protocol if at data link layer we use two different protocols?
Mention______________________________________________
show ip interface brief is a extremely useful command to get quick overview of all interfaces on
switch. It lists their status including IP address and protocol.
Saving the configuration on a modern Cisco Catalyst switch running IOS software works
the same as on Cisco routers. This means you have to copy the running configuration (in
RAM) to the startup configuration (in NVRAM) by using the following command in
Privileged EXEC mode:
If you run the show startup-config command, you should get the same output as the show
running-config command. The dir nvram: command should show the startup-config file
with a size greater than zero. The configuration is also stored in the config.text file in
flash, which content you can see by using the show flash command.STEP 6: Display
switch hardware and firmware information
The show version command allows you to display information about the switch’s
hardware and IOS. The first half shows information about the IOS in flash, the boot
loader on ROM, the uptime, what caused the switched to reboot, and the IOS edition it
runs. The second half shows information about the hardware, including the interfaces, the
memory and serial numbers.
SWR-2024#show version
DEPARTMENT OF SOFTWARE ENGINEERING
MEHRAN UNIVERSITY OF ENGINEERING & TECHNOLOGY, JAMSHORO
COMPUTER COMMUNICATION & NETWORKING
(4TH Semester, 2ND Year) LAB HANDOUT # 03
________________________________________________________________________
a. Enter the show version command. The Switch will return information about the IOS that is
running in RAM.
b. Write the name of the IOS version? ____________________________
c. What is the name of the system image (IOS) file?
______________________________________________________________________
d. Where was the switch IOS image booted from?
____________________________________________
e.How many Ethernet interfaces does this switch have?
_________________________
Lab Exercise:
1. Submit a lab with performing a simple task connect a pc with switch using console
connection and configure telnet connection. Using Telnet configure switch with all basic
configuration we learnt in this Lab.
FINAL CHECK LIST
1. Return all equipment and materials to their proper storage area.
2. Submit your answers to question, before the next laboratory.