0% found this document useful (0 votes)
57 views5 pages

Mid Lab Exam Nov 2024

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

Mid Lab Exam Nov 2024

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

Program: Semester:

Subject: Computer Networks (Mid Term Exam) Subject Code: CSC340


Date:11-11-2024 Name:

Question No. 1

Task: Simple TCP Client-Server Program in Python


(Please print the program code)

Objective:
Create a basic TCP client-server program using Python's socket library to exchange
messages between two nodes.

Requirements:
1. Programming Language: Python 3.x
2. Operating System: Windows, Linux, or macOS
3. Socket Library: Python's built-in socket library

Program Specifications:
Message Exchange Protocol:
1. Client sends a message to the server.
2. Server receives and processes the message.
3. Server sends a response back to the client.
4. Client receives and displays the response.

Question No. 2

LAB: Configuring DHCP (Dynamic Host Configuration Protocol)


(Please print all the configurations and outputs after completing the lab on Packet Tracer).

Topology

Addressing Table

Device Interface IP Address Subnet Mask

R1 G0/0/0 201.10.Reg#.X /30

R1 G0/0/1 192.168.Reg#.X /27


R2 G0/0/0 201.10.Reg#.X /30
Device Interface IP Address Subnet Mask

R2 G0/0/1 192.168.Reg#.X /25


PC-A NIC Via DHCP /27
PC-B NIC Via DHCP /25

Objectives
Part 1: Build the Network and Configure Basic Device Settings
Part 2: Configure and verify two DHCPv4 Servers on R1 and R2 by using different class
C networks.

Scenario
In this scenario, the company has grown, and the network administrators can no longer
assign IP addresses to devices manually. Your job is to configure both Routers to assign IPv4
addresses on two different subnets using a class C address scheme.

Required Resources (use packet tracer latest version to perform this activity)
 2 Routers (2911 or 2811)
 2 Switches (2960)
 2 PCs
 Ethernet cables as shown in the topology.

Instructions

Build the Network and Configure Basic Device Settings


You will set up the network topology and configure basic settings on the PC hosts.

Step 1: Establish an addressing scheme.


Subnet the network 192.168.x.x to meet the following requirements:
a. First Subnet supporting 22 hosts (at R1).
b. Record the Network ID of the first subnet.
c. Record the first usable IP address, in the Addressing Table for R1 G0/0/1.
d. Record the usable IP’s and broadcast address.
e. Record the second subnet supporting 54 hosts (at R2) and do as above.

Step 2: Cable the network as shown in the topology.


Attach the devices as shown in the topology diagram, and cable as necessary.

Step 3: Configure basic settings for each router.


a. Assign a Router name as your name to the Router R1 & R2.
Open configuration window
b. Disable DNS lookup to prevent the router from attempting to translate incorrectly entered
commands as though they were host names.
c. Verify the interfaces are operational.

Step 4: Configure DHCP on both Routers.

Step 5: Configure G0/0/0 on Routers 1 & 2 and make sure interfaces are properly
configured and UP. Choose any /30 subnet.

Question No. 3

LAB: INTER VLAN ROUTING


(Please print all the configurations and outputs after completing the lab on Packet Tracer).

Topology

Addressing Table

Default
Device Interface IP Address Subnet Mask Gateway

R1 G0/0/1.10 192.168.10.1 255.255.255.0 N/A

R1 G0/0/1.20 192.168.20.1 255.255.255.0 N/A


S1 VLAN 10 & 20 192.168.10.1
S2 VLAN 10 & 20 192.168.20.1
PC-A NIC 192.168.10.3 255.255.255.0 192.168.10.1
PC-B NIC 192.168.20.3 255.255.255.0 192.168.20.1

VLAN Table

VLAN Name Interface Assigned

10 Teacher
20 Student

Objectives
Part 1: Build the Network and Configure Basic Device Settings
Part 2: Create VLANs and Assign Switch Ports
Part 3: Configure an 802.1Q Trunk between the Switches
Part 4: Configure Inter-VLAN Routing on the Router
Part 5: Verify Inter-VLAN Routing is working.

Background / Scenario
Modern switches use virtual local-area networks (VLANs) to improve network performance by
separating large Layer 2 broadcast domains into smaller ones. VLANs can also be used as a
security measure by separating sensitive data traffic from the rest of the network. In general,
VLANs make it easier to design a network to support the goals of an organization.
Communication between VLANs requires a device operating at Layer 3 of the OSI model.
Adding an inter-VLAN router allows the organization to segregate and separate broadcast
domains while simultaneously allowing them to communicate with each other.
In this lab, you will create VLANs on both switches in the topology, assign VLANs to switch
access ports, verify that VLANs are working as expected, create VLAN trunks between the two
switches and between S1 and R1, and configure Inter-VLAN routing on R1 to allow hosts in
different VLANs to communicate, regardless of which subnet the host resides.

Required Resources
 1 Router (Cisco 2911 or 2811)
 2 Switches (Cisco 2960)
 2 PCs
 Ethernet cables as shown in the topology.

Instructions

Part 1: Build the Network and Configure Basic Device Settings

Step 1: Cable the network as shown in the topology.


Attach the devices as shown in the topology diagram, and cable as necessary.

Step 2: Configure basic settings for the router.


a. Console into the router and enable privileged EXEC mode.
Open configuration window
b. Enter configuration mode.
c. Assign a device name (YOUR NAME) to the router.
d. Disable DNS lookup to prevent the router from attempting to translate incorrectly entered
commands as though they were host names.
e. Save the running configuration to the startup configuration file.

Step 3: Configure basic settings for each switch.


a. Assign a device name (YOUR NAME) to the switch.
b. Disable DNS lookup to prevent the router from attempting to translate incorrectly entered
commands as though they were host names.
Close configuration window
Step 4: Configure PC hosts.
Refer to the Addressing Table for PC host address information.

Part 2: Create VLANs and Assign Switch Ports


In Part 2, you will create VLANs as specified in the table above on both switches. You will then
assign the VLANs to the appropriate interface and verify your configuration settings. Complete
the following tasks on each switch.

Step 1: Create VLANs on both switches.


a. Create and name the required VLANs on each switch from the table above.
Open configuration window
b. Configure the management interface and default gateway on each switch using the IP
address information in the Addressing Table.

Step 2: Assign VLANs to the correct switch interfaces.


a. Assign used ports to the appropriate VLAN (specified in the VLAN table above) and
configure them for static access mode.
b. Verify that the VLANs are assigned to the correct interfaces.
Close configuration window

Part 3: Configure an 802.1Q Trunk Between the Switches


In Part 3, you will manually configure interface F0/1 as a trunk.

Step 1: Manually configure trunk interface F0/1 on switch S1 and S2.


a. Configure trunking on interface F0/1 for both switches.
b. Open configuration window
c. Specify that VLANs 10, 20 are allowed to cross the trunk.
d. Verify trunking ports, the Native VLAN and allowed VLANs across the trunk.

Step 2: Manually configure S1’s trunk interface F0/5


a. Configure S1’s interface F0/5 with the same trunk parameters as F0/1. This is the trunk to
the router.
b. Save the running configuration to the startup configuration file.
c. Verify trunking.

Part 4: Configure Inter-VLAN Routing on the Router

Step 1: Configure the router.


Open configuration window
a. Activate interface G0/0/1 as necessary on the router.
b. Configure sub-interfaces for each VLAN as specified in the IP addressing table. All sub-
interfaces use 802.1Q encapsulation.
c. Ping from PC-A to PC-B

Step 2: Complete the following test from PC-B


From the Command Prompt window on PC-B, issue the tracert command to the address of
PC-A.
d of document

You might also like