Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
106 views11 pages

Laboratory Exercise No 3 - Rev01

This laboratory exercise establishes a simple local area network using Cisco switches and PCs. The steps include: 1) Configuring basic settings on two Cisco switches like hostname, passwords, and IP addresses. 2) Configuring two PCs with IP addresses to communicate with the switches. 3) Verifying connectivity between all devices using ping commands and establishing telnet sessions. The objectives are to perform basic switch configurations, establish connectivity in a small network using switches, and execute remote sessions with the switches. Proper configuration of interface IP addresses is required for routing traffic between VLANs and remote access.

Uploaded by

John Rhey Ibe
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
106 views11 pages

Laboratory Exercise No 3 - Rev01

This laboratory exercise establishes a simple local area network using Cisco switches and PCs. The steps include: 1) Configuring basic settings on two Cisco switches like hostname, passwords, and IP addresses. 2) Configuring two PCs with IP addresses to communicate with the switches. 3) Verifying connectivity between all devices using ping commands and establishing telnet sessions. The objectives are to perform basic switch configurations, establish connectivity in a small network using switches, and execute remote sessions with the switches. Proper configuration of interface IP addresses is required for routing traffic between VLANs and remote access.

Uploaded by

John Rhey Ibe
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 11

TECHNOLOGICAL UNIVERSITY OF THE PHILIPPINES - MANILA

COLLEGE OF ENGINEERING

DEPARTMENT OF ELECTRONICS ENGINEERING

PECEC3L – Communications 3:
Data Communications
(LABORATORY)

Laboratory Exercise No. 3

Submitted by:
DECENA, Narwin A.
IBE, John Rhey J.
BSECE-3A

Submitted to:
Engr. Jay Fel C. Quijano
Instructor

April 30, 2023


Second Semester S.Y. 2022 – 2023
Laboratory Exercise No. 3

I. OBJECTIVES
1. Perform housekeeping commands on Cisco Switches.
2. Establish as simple Local Area Network using switches.
3. Execute physical and remote sessions with the switches.

II. THEORY
In this activity you will first perform basic switch configurations. Then you will implement
basic connectivity by configuring IP addressing on switches and PCs. When the IP addressing
configuration is complete, you will use various show commands to verify configurations and use
the ping command to verify basic connectivity between devices.

III. MATERIALS & EQUIPMENT


 Laptop/Computer with installed Cisco Packet Tracer

IV. PROCEDURES

Addressing Table

Device Interface IP Address Subnet Mask

S1 VLAN 1 192.168.1.253 255.255.255.0


S2 VLAN 1 192.168.1.254 255.255.255.0
PC1 NIC 192.168.1.1 255.255.255.0
PC2 NIC 192.168.1.2 255.255.255.0

Part 1: Perform a Basic Configuration on S1 and S2


Complete the following steps on S1 and S2.

Step 1: Configure S1 with a hostname.


a. Click S1, and then click the CLI tab.
b. Enter the correct command to configure the hostname as S1.

Step 2: Configure the switch housekeeping commands such as no IP domain-lookup,


ENCRYPTED console, VTY, privileged EXEC mode passwords, exec-timeout and logging
synchronous.
a. Use cisco for the console password.
b. Use class for the privileged EXEC mode secret password.

Step 3: Verify the password configurations for S1.


How can you verify that both passwords were configured correctly?
The switch will ask you for a password to access the console interface when you exit user
EXEC mode and again when you enter privileged EXEC mode. The passwords can also be
viewed using the show run command.

Step 4: Configure a message of the day (MOTD) banner.


Use an appropriate banner text to warn unauthorized access. The following text is an example:
Authorized access only. Violators will be prosecuted to the full extent of the law.

Step 5: Save the configuration file to NVRAM.


Which command do you issue to accomplish this step?
S1(config)#exit
S1#copy run start

Step 6: Repeat Steps 1 to 5 for S2.

Part 2: Configure the PCs


Configure PC1 and PC2 with IP addresses.

Step 1: Configure both PCs with IP addresses.


a. Click PC1, and then click the Desktop tab.
b. Click IP Configuration. In the Addressing Table above, you can see that the IP address for
PC1 is 192.168.1.1 and the subnet mask is 255.255.255.0. Enter this information for PC1 in
the IP Configuration window.
c. Repeat steps 1a and 1b for PC2.

Step 2: Test connectivity to switches.


a. Click PC1. Close the IP Configuration window if it is still open. In the Desktop tab,
click Command Prompt. .
b. Type the ping command and the IP address for S1, and press Enter.
Packet Tracer PC Command Line 1.0
PC> ping 192.168.1.253
Were you successful? Why or why not?
It was unsuccessful, because the switches are not configured with IP addresses.
Configure S1 and S2 with an IP address.

Step 1: Configure S1 with an IP address.


Switches can be used as a plug-and-play device, meaning they do not need to be configured for them
to work. Switches forward information from one port to another based on Media Access Control
(MAC) addresses. If this is the case, why would we configure it with an IP address?
A switch has to be given an IP address so that you can connect to it remotely. The switch is
first set up so that VLAN 1 is in charge of managing the switch.
Use the following commands to configure S1 with an IP address.
S1 #configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
S1(config)# interface vlan 1
S1(config-if)# ip address 192.168.1.253 255.255.255.0
S1(config-if)# no shutdown
%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to
up
S1(config-if)#
S1(config-if)# exit
S1#
Why do you need to enter the no shutdown command?
Administratively, the interface is made active by the no shutdown command.

Step 2: Configure S2 with an IP addresses.


Use the information in the addressing table to configure S2 with an IP address.

Step 3: Verify the IP address configuration on S1 and S2.


Use the show ip interface brief command to display the IP address and status of the all the switch
ports and interfaces. Alternatively, you can also use the show running-config command.

Step 4: Save configurations for S1 and S2 to NVRAM.


Which command is used to save the configuration file in RAM to NVRAM?
S1#copy run start
S2#copy run start

Step 5: Verify network connectivity.


Network connectivity can be verified using the ping command. It is very important that connectivity
exists throughout the network. Corrective action must be taken if there is a failure. Ping S1’s and S2's
IP address from PC1 and PC2.
a. Click PC1, and then click the Desktop tab.
b. Click Command Prompt.
c. Ping the IP address for PC2.
d. Ping the IP address for S1.
e. Ping the IP address for S2.
Note: You can also use the same ping command on the switch CLI and on PC2.
All pings should be successful. If your first ping result is 80%, retry; it should now be 100%. You will
learn why a ping may fail the first time later in your studies. If you are unable to ping any of the
devices, recheck your configuration for errors.

Step 6: Establish a telnet session.


From PC1, try to connect to Switch1 using the Command Prompt in the Desktop Tab. Type telnet
192.168.1.1. Switch1
Were you able to access the switch? Try navigating from Switch1 to Switch2 using again the
command. Try it also on PC2.

V. QUESTION/S
1. If interface vlan IP is removed from the configuration of the switches, will you be able to
establish connection between the two computers? How about accessing the switches
remotely? Explain how it affects the simple network.
If the interface vlan IP is removed from the configuration of the switches, the computers
will not be able to establish a connection with each other because the VLAN interface is
responsible for routing traffic between VLANs, and without it, the switches won't be able to
communicate with each other.

The switch's management interface's IP address is typically set on the VLAN interface,
remote access to the switches will also be impacted. Remote control of the switch won't work
without this configuration.

2. Based on the previous simulations we had for a switch and a router, give your idea about
their differences when it comes to functionality.
____________________________________________________________________________
____________________________________________________________________________
____________________________________________________________________________
____________________________________________________________________________
____________________________________________________________________________
____________________________________________________________________________
____________________________________________________________________________
____________________________________________________________________________

VI. CONCLUSION

____________________________________________________________________________
____________________________________________________________________________
____________________________________________________________________________
____________________________________________________________________________
____________________________________________________________________________
____________________________________________________________________________
____________________________________________________________________________
____________________________________________________________________________
____________________________________________________________________________

You might also like