Lab 2
Lab 2
OF SWITCH
Lab-02
Computer Networks
COSC-3201
Lab Instructor:
Mr. Muhammad Tariq Ali
Student Name
Student Roll #
Department
Year/Section
1. OBJECTIVES
Perform an initial configuration of a Cisco Catalyst 2960 switch.
2. Background / Preparation
In this activity, you will configure these settings on the Cisco Catalyst 2960 switch:
Host name
Privileged EXEC mode password
Privileged EXEC mode secret password
line Console and line VTY password configuration
3. Switch Configuration
Cisco switches run on proprietary OS known as Cisco IOS (Internetworking OS). IOS is a
group of commands used for monitoring, configuring and maintaining cisco devices. For
security and easy administration, IOS commands are divided in the set of different command
modes. Each command mode has its own set of commands. Which commands are available
to use, depend upon the mode we are in.
Following table lists necessary commands to navigate between different IOS modes with
examples.
a. From the Customer PC, use a console cable and terminal emulation software to connect to the
console of the customer Cisco Catalyst 2960 switch.
b. Set the host name on the switch to KFUEIT using these commands.
Switch>enable
Switch#configure terminal
Switch(config)#hostname KFUEIT
VTY term stand for virtual terminal such as telnet or SSH. Switch may support up
to thousand VTYs lines. By default first five (0 - 4) lines are enabled. If we need
more lines, we have to enable them manually. 2960 Series switch supports 16
lines. We can set a separate password for each line, for that we have to specify
the number of line. In our example we set a common password for all lines.
a. From global configuration mode, switch to the configuration mode for the vty
lines 0 through 15.
CustomerSwitch(config)#line vty 0 15
b. From line configuration mode, set the password to cisco and require the
password to be entered at login.
Step 4: Configure the console password.
a. From global configuration mode, switch to configuration mode to configure the console
line.
CustomerSwitch(config)#line console 0
b. From line configuration mode, set the password to cisco and require the
password to be entered at login.
CustomerSwitch(config-line)#password cisco
CustomerSwitch(config-line)#login
CustomerSwitch(config-line)#exit