Computer Communication and Networks: Lab Task
Computer Communication and Networks: Lab Task
Lab task
Submitted to:
Mam Sidra
Submitted by:
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.
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.
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
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.
9
Step 7: Connect PC2 to router R2
Connect PC2 to the interface fa0/0 of router R2
10
b. Configure the Serial 0/0/0 interface as shown below in R2
11
d. Create a static route to enable R2
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
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 :
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.
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.
24
Output;
25