Computer Communication and Networks: Lab Task

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 25

COMPUTER COMMUNICATION AND NETWORKS

Lab task

Submitted to:

Mam Sidra

Submitted by:

Amina Zafar (17-SE-23)

1
Configuring Basic Routing and Switching
Topology:

2
Step 1: Connect PC1 to the switch
1. Connect PC1 to Fast Ethernet switch port Fa0/1. Configure PC1.

Step 2: Perform an initial configuration on the switch

The steps are shown below for switch configrations

3
1. Configure the console and virtual terminal lines to use a password and require it at login.

4
2. Exit from the console session and then log in again with switch.

Step 3: Configure the switch management interface on VLAN 1


1. Enter the interface configuration mode for VLAN 1.

5
Step 3: Verify configuration of the switch
a. Use the show running-config command to check the IP address configuration of the
switch.

6
b. Save the configuration.
Use command copy running-config startup-config

Step 5: Perform basic configuration of router R1


a. Connect switch port Fa1/1 to interface Fa0/0 of router R1.Enter configuration
commands, one per line. End with CNTL/Z.

b. Configure the router name as R1.

c. Disable DNS lookup.

d. Configure the EXEC mode password.

e. Configure a message-of-the-day banner using the banner motd command.

7
Where does this banner display?

f. Configure the console and virtual terminal lines to use a password and require it at login.

8
Step 6: Configure interfaces and static routing on router R1
a. Configure the FastEthernet 0/0 interface with the IP address 192.168.1.1/24.

b. Configure the Serial 0/0/0 interface with the IP address 192.168.2.1/24.

c. Create a static route to enable R1

9
Step 7: Connect PC2 to router R2
Connect PC2 to the interface fa0/0 of router R2

Step 8: Perform basic configuration of router R2


a. Repeat Step 5, a through h, making the hostname R2.

10
b. Configure the Serial 0/0/0 interface as shown below in R2

c. Configure the Fa 0/0 interface for R2

11
d. Create a static route to enable R2

Step 10: Verify the configrations


a. To verify that PC1 and Switch1 are correctly configured, ping the switch IP address from
PC1

12
b. To verify that Switch1 and R1 are correctly configured, ping the router Fa0/0
interface (default gateway) IP address from the Switch1 CLI.

c. To verify that PC2 and R2 are correctly configured, ping the router Fa0/0 interface from
PC2.

13
d. Were the pings successful?
Yes
e. Use the show ip route command for routing table.

14
f. Verify the router interface configurations using the show ip interface brief command that their
io address are active.

g. View devices from R1’s terminal session using the show cdp neighbors command.

Step 11: Remove Static Route and configure a routing protocol on router R1
a. Remove the static route to 192.168.3.0. Enable RIP v2 routing and advertise the
participating networks.

15
Step 12: Remove Static Route and configure a routing protocol on router R2
a. Remove the static route to 192.168.1.0. Enable RIP v2 routing as shown below

Step 13: Verify and test the configurations


a. To verify that PC1 and Switch1 are correctly configured, ping the switch IP address from
PC1.

16
b. Ping the router Fa0/0 interface (default gateway) IP address from the Switch1 CLI. to
verify that Switch1 and R1 are correctly configured

b. To verify that PC2 and R2 are correctly configured, ping the router Fa0/0 interface from
PC2.

17
Were the pings successful?
Yes
d. Used show ip route command to show routing table.
R2 routing table :

e. Show ip interface brief command to verify that ip addresses are active

18
f. View devices from R1’s terminal session using the show cdp neighbors command

19
Step 14: Use the switch management interface

a. Enter the vty password configured in Step 2 to gain access to the switch.

20
b. show version command.

c. What is the Cisco IOS version of this switch?

d. Determine which MAC addresses the switch has learned by using the show mac-address
table command at the privileged EXEC mode prompt.

21
e. Configure port security to allow the switch port Fa0/1 to accept only one device

22
Switchport port security testing:
In our topology we have one additional PC. Assume that, this is the cracker's PC. To gain
unauthorized access in network he unplugged the Ethernet cable from pc (PC0) and plugged in
his pc (PC1).

If a host other than PC1 attempts to connect to Fa0/1, what will happen?
Switch detected the mac address change and shutdown the port so, response of ping because

23
Step 15: Verify port security
1. show port-security :
This command displays port security information about all the interfaces on switch.

2. show port-security address :


Display statically defined or dynamically learned address with port security.

3. show port-security interface :

Display port security information about the specific interface.

24
Output;

25

You might also like