0% found this document useful (0 votes)
24 views

Lab 2

juhu yuhgiuy iu

Uploaded by

Choudhary Behram
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views

Lab 2

juhu yuhgiuy iu

Uploaded by

Choudhary Behram
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

BASIC CONFIGURATION

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.

Mode Purpose Prompt Command to Command to exit


enter
User EXEC Allow you to Router > Default mode
Use exit command
connect with after booting.
remote devices, Use to Login with
perform basic •Change terminal password, if
tests, temporary settings configured.
change terminal •Perform basic
setting and list tests.
system information •Display device
status.
Privileged Allow you to set Router # Use enable com Use exit command
EXEC operating mand from user
parameters. It also Use to exec mode
includes high level •Issue show and
testing and list debug commands.
commands like
Mode Purpose Prompt Command to Command to exit
enter
show, copy and •Copy images to
debug. the device.
•Reload the
device.
•Manage device
configuration files.
•Manage device
file systems.
Global Contain commands Router(config)# Use configure Use exit command
Configurati those affect the terminal comm
on entire system Use to Configure and from
the device. privileged exec
mode
Interface Contain commands Router(config-if)# Use interface ty Use exit command to
Configurati those modify the pe return in global
on operation of an Use to number comma configuration mode
interface Configure nd from global
individual configuration
interfaces. mode
Sub- Configure or Router(config- Use interface ty Use exit to return in
Interface modify the virtual subif) pe sub previous mode.
Configurati interface created interface numbe Use end command to
on from physical r command from return in privileged exec
interface global mode.
configuration
mode or
interface
configure mode
Setup Used by router to Parameter[Param Router will Press CTRL+C to abort.
create initial eter value]: automatically Type Yes to save
configuration, if insert in this configuration, or No to
running mode if exit without saving
configuration is running when asked in the end
not present configuration is of setup.
not present
exLab Task 1:
Network Topology

Step 1: Configure the switch host name.

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

Step 2: Configure the privileged mode password and secret.


a. From global configuration mode, configure the password as cisco.
KFUEIT(config)#enable password cisco

b. From global configuration mode, configure the secret as cisco123.


KFUEIT(config)#enable secret cisco123
Step 3: Configure the VTY password.

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

You might also like