Basic Switch Configuration Lab - CS-322, International Islamic University, Islamabad, Lecture notes of Electrical Engineering

Instructions for a lab exercise on basic switch configuration using a Cisco Switch and Cisco IOS. It covers the loading process of Cisco IOS, the required resources, and the steps to configure the switch, including setting passwords, configuring layer 3 access, and saving the configuration. The document also includes questions for self-assessment.

Typology: Lecture notes

2020/2021

Uploaded on 04/01/2022

a-series-a-series
a-series-a-series 🇵🇰

5 documents

1 / 8

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Computer Networks Lab (CS-322) Page 1
International Islamic University,
Islamabad
Computer Networks- LAB
EXPERIMENT # 04: Basic Switch Configuration
Name of Student: …………………………………..
Roll No.: ……………………………………………
Date of Experiment: ………………………………..
Report submitted on: ………………………………..
Marks obtained: ……………………………………
Remarks: ……………………………………………
Instructor’s Signature: ……………………………...
pf3
pf4
pf5
pf8

Partial preview of the text

Download Basic Switch Configuration Lab - CS-322, International Islamic University, Islamabad and more Lecture notes Electrical Engineering in PDF only on Docsity!

International Islamic University,

Islamabad

Computer Networks- LAB

EXPERIMENT # 04: Basic Switch Configuration

Name of Student: …………………………………..

Roll No.: ……………………………………………

Date of Experiment: ………………………………..

Report submitted on: ………………………………..

Marks obtained: ……………………………………

Remarks: ……………………………………………

Instructor’s Signature: ……………………………...

Basic Switch Configuration

1. Objective This lab exercise is designed for understanding and using basic configuration commands on a Cisco Switch interacting through Cisco IOS. 2. Resources Required - Computer - Packet Tracer (version 5 or higher) 3. Introduction This lab introduces Cisco IOS (Internetwork Operating System) which is the proprietary CLI (command line interface) based software empowering nearly all the Cisco devices. IOS is a package of routing, switching, internetworking and telecommunications functions tightly integrated with a multitasking operating system.

The loading process in Cisco IOS is as follows: a) Bootstrap is loaded from ROM which starts up POST (Power On Self Test). b) Valid image file is searched from flash memory, if found is loaded into the RAM, otherwise ROMMON is loaded from ROM. c) Valid startup-config is searched from NV-RAM, if found is loaded into the RAM as running-config, otherwise the device just starts without any previous configurations.

From this we conclude that Cisco devices have 4 types of memories present: a) ROM b) Flash c) NV-RAM d) RAM

4. Procedure 1. Open Packet Tracer 5 and setup a network similar to the following network. Use Cisco 2950T switch.

b. Notice the prompt changed in the configuration to reflect its new name. Type exit or press Ctrl- Z to go back into privileged mode.

Step 4 Examine the current running configuration

a. Examine the current configuration that follows to verify that there is no configuration except for the hostname: ALSwitch# show running-config

b. Are there any passwords set on the lines? _______________________________________

c. What does the configuration show as the hostname of this switch? ______________________

Step 5 Set the access passwords

Enter config-line mode for the console. Set the password on this line as cisco for login. Configure the vty lines 0 to 15 with the password cisco as follows:

ALSwitch# configure terminal Enter the configuration commands, one for each line. End by pressing Ctrl-Z. ALSwitch(config)# line con 0 ALSwitch(config-line)# password cisco ALSwitch(config-line)# login ALSwitch(config-line)# line vty 0 15 ALSwitch(config-line)# password cisco ALSwitch(config-line)# login ALSwitch(config-line)# exit

Step 6 Set the command mode passwords

a. Set the enable password to cisco and the enable secret password to class as follows: ALSwitch(config)# enable password cisco ALSwitch(config)# enable secret class

b. Which password takes precedence, the enable password or enable secret password?


Step 7 Configure the layer 3 access to the switch

a. Set the IP address of the switch to 192.168.1.2 with a subnet mask of 255.255.255.0 as follows: Note: This is done on the internal virtual interface VLAN 1.

ALSwitch(config)# interface VLAN 1 ALSwitch(config-if)# ip address 192.168.1.2 255.255.255. ALSwitch(config-if)# exit b. Set the default gateway for the switch and the default management VLAN to 192.168.1.1 as follows: ALSwitch(config)# ip default-gateway 192.168.1. ALSwitch(config)# exit

Step 8 Verify the management LANs settings

a. Verify the interface settings on VLAN 1 as follows:

ALSwitch# show interface VLAN 1

b. What is the bandwidth on this interface? ______________________________

c. What are the VLAN states: VLAN1 is __________, Line protocol is __________

d. Enable the virtual interface using the no shutdown command

ALSwitch(config)# interface VLAN 1 ALSwitch(config-if)# no shutdown ALSwitch(config-if)# exit

e. What is the queuing strategy? ______________________________________

Step 9 Save the configuration

a. The basic configuration of the switch has just been completed. Back up the running configuration file to NVRAM as follows: Note: This will ensure that the changes made will not be lost if the system is rebooted or loses power.

ALSwitch# copy running-config startup-config Destination filename [startup-config]?[ Enter ] Building configuration... [OK] ALSwitch#

Step 10 Examine the startup configuration file

a. To see the configuration that is stored in NVRAM, type show startup-config from the privileged EXEC (enable mode)

ALSwitch# show startup-config

b. What is displayed? ________________________________________________________

c. Are all the changes that were entered recorded in the file? ____________________________

Step 11 Configure the hosts attached to the switch

Configure the hosts to use the same IP subnet for the address, mask, and default gateway as on the switch.

Step 17 Verify the results

a. Verify that the mac-address-table was cleared as follows:

ALSwitch# show mac-address-table

b. How many total MAC addresses are there now? ___________________________________

c. Why are there so many? ____________________________________________________

d. How many dynamic addresses are there? ________________________________________

Step 18 Determine the clear MAC table options

a. To determine the options available use the command clear mac-address-table? at the privileged EXEC mode prompt as follows:

ALSwitch# clear mac-address-table?

b. How many options are there? _________________________________________________

c. In what circumstances would these options be used? _______________________________

Step 19 Examine the MAC table again

a. Look at the MAC address table again using the show mac-address-table command at the privileged EXEC mode prompt as follows:

ALSwitch# show mac-address-table

b. How many dynamic addresses are there? ________________________________________

c. Why did this change from the last display? _______________________________________

d. The table has not changed yet, ping the switch IP address from the hosts two times each and repeat Step 19.

Step 20 Exit the switch

Leave the switch welcome screen by typing exit as follows:

ALSwitch# exit

International Islamic University, Islamabad

Computer Networks Lab

LAB WORKSHEET (Lab # 4)

Q.1 What is the exact name of Cisco’s Operating System and what are its functions?






Q.2 Identify the differences between interface and line of a Cisco device.






Q.3 If switch doesn’t know the destination address, what will it do? If it does then what action is taken?






Q.4 How many memories are present in a switch? Briefly write each’s function.