Sie sind auf Seite 1von 10

AIR UNIVERSITY

DEPARTMENT OF ELECTRICAL AND COMPUTER


ENGINEERING
LAB TITLE: 3: Switch Administrative Function

Student Name: Muhammad Shahzeb Kayani Reg. No: 171209

Objective: This lab exercise is designed for understanding and using basic
configuration commands on a Cisco Switch interacting through Cisco IOS.
LAB ASSESSMENT:

Excellent Good Average Satisfactory Unsatisfactory


Attributes
(5) (4) (3) (2) (1)
Ability to Conduct
Experiment
Ability to assimilate the
results
Effective use of lab
equipment and follows
the lab safety rules

Total Marks: Obtained Marks:

LAB REPORT ASSESSMENT:


Excellent Good Average Satisfactory Unsatisfactory
Attributes
(5) (4) (3) (2) (1)

Data presentation

Experimental results

Conclusion

Total Marks: Obtained Marks:

Date: Signature:
AIR UNIVERSITY
DEPARTMENT OF ELECTRICAL AND COMPUTER
ENGINEERING
LAB TITLE: 3: Switch Administrative Function

Student Name: Usman Aziz Reg. No: 171226

Objective: This lab exercise is designed for understanding and using basic
configuration commands on a Cisco Switch interacting through Cisco IOS.
LAB ASSESSMENT:

Excellent Good Average Satisfactory Unsatisfactory


Attributes
(5) (4) (3) (2) (1)
Ability to Conduct
Experiment
Ability to assimilate the
results
Effective use of lab
equipment and follows
the lab safety rules

Total Marks: Obtained Marks:

LAB REPORT ASSESSMENT:


Excellent Good Average Satisfactory Unsatisfactory
Attributes
(5) (4) (3) (2) (1)

Data presentation

Experimental results

Conclusion

Total Marks: Obtained Marks:

Date: Signature:
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
Procedure
Step 1 : Enter privileged mode
Privileged mode gives access to all the switch commands. Many of the privileged commands configure
operating parameters. Therefore, privileged access should be password-protected to prevent
unauthorized use. The privileged command set includes those commands contained in user EXEC mode,
as well as the configure command through which access to the remaining command modes is gained.
Switch>enable

Switch#
Step 2 Examine the current switch configuration

Switch#show running-config

b. How many Ethernet or Fast Ethernet interfaces does the switch have?
The switch has 24 fast ethernet interfaces.
c. What is the range of values shown for the VTY lines?
The range of VTY lines is 0-4 & 5-15.
d. Examine the current contents of NVRAM as follows:
Switch#show startup-config
It says that startup configuration is not present.
e. Why does the switch give this response?
This is because we haven’t configured our switch yet.
Step 3 : Assign a name to the switch
Switch#configure terminal

Switch(config)#hostname SKswitch

SKswitch(config)#exit

Step 4 : Examine the current running configuration


SKswitch#show running-config

b. Are there any passwords set on the lines?


No. There isn’t any password set yet.
c. What does the configuration show as the hostname of this switch?
The configuration shows the new name of the switch as SKswitch ( Which I have assigned to it).

Step 5 : Set the access passwords


SKswitch#configure terminal  SKswitch(config)#line con 0
SKswitch(config-line)#password cisco  SKswitch(config-line)#login
SKsitch(config-line)#line vty 0 15  SKswitch(config-line)#password cisco
SKswitch(config-line)#login  SKswitch(config-line)#exit

Step 6 : Set the command mode passwords


SKswitch(config)#enable password class

Skswitch(config)#enable secret cisco

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

Step 7 : Save the configuration


SKswitch#copy running-config startup-config

Step 8 : Examine the startup configuration file


Skswitch#show startup-config

b. What is displayed?
c. Are all the changes that were entered recorded in the file?
Yes, all the changes were recorded in the file.

Step 9 Configure the hosts attached to the switch


Configure the hosts to use the same IP subnet for the address, mask.

Step 10 Verify connectivity


To verify that hosts and switch are correctly configured, ping the switch IP address from the
hosts.

b. Were the pings successful?


Yes, the connection was successfully established.

Step 11 Record the MAC addresses of the host


PC0: 0001.647B.CC95
PC1: 0050.0FE7.7C39

Step 12 Determine the MAC addresses that the switch has learned

SKswitch#show mac-address-table

b. How many dynamic addresses are there?


Two.
c. How many total MAC addresses are there?
Two.
d. How many addresses have been user defined?
Zero.
e. Do the MAC addresses match the host MAC addresses?
Yes.

Step 13 Determine the show MAC table options


ALSwitch#show mac-address-table ?
b. How many options are available for the show mac-address-table command?
3.

c. Show only the mac-address-tables that were learned dynamically.


d. How many are there?
Two.

Step 14 Clear the MAC address table


To remove the existing MAC addresses use the clear mac-address-table command from the
privileged EXEC mode prompt as follows:
SKSwitch#clear mac-address-table dynamic

Step 15 Verify the results


Verify that the mac-address-table was cleared as follows:
Skswitch#show mac-address-table

b. How many total MAC addresses are there now?


Z E R O.
c. Why are there so many?
Because we have cleared the mac address table.
d. How many dynamic addresses are there?
Z E R O.

Step 16 Determine the clear MAC table options


To determine the options available use the command
clear mac-address-table ?
at the privileged EXEC mode prompt as follows:
SKswitch#clear mac-address-table ?
b. How many options are there?
O N E.
c. In what circumstances would these options be used?
It can only be used to get the dynamic MAC address table cleared.
Step 17 Examine the MAC table again
At this moment, the switch has zero MAC addresses but if we were to ping the IP address of
one of the hosts, the MAC address table will change its values accordingly.

Step 18 Exit the switch


Leave the switch welcome screen by typing exit as follows:
SKswitch#exit

Das könnte Ihnen auch gefallen