Data Communication and Computer Networks
DCCN - EEE314
Lab 2: IP Addressing Scheme and VLSM
Name
Ahmad Uzzam Masood
Registration Number FA18-BCE-002
Class BCE-6A
Instructor’s Name
Atif Shakeel
Purpose:
The lab is intended to familiarize the students with a networking technique of SUBNETTING.
At the end of the lab the student must know:
• The Purpose of SUBNETTING.
• Steps of SUBNETTING.
• How to perform SUBNETTING on different IP Classes.
• Calculating the ranges of Hosts in the Subnet.
• Finding the Broadcast address of the Subnet.
• How to make a SUBNET on Linux machines.
• How to Broadcast on that Subnet
Prelab-Task:
For The IP address 192.168.0.1 find the network mask, broadcast address number of hosts, IP
address of first and last host.
Network mask = 255.255.255.0
Broadcast address = 192.168.0.255
Total hosts = 254
First host IP = 192.168.0.1
Last host IP = 192.168.0.254
In-lab Task1:
For The following IPs find the first two and last two Subnets and give their Pc range and
Broadcast address.
1. 10.0.0.0 for 1025 subnets.
For 1025 subnets, n = 11. The new mask is 255.255.255.224
First subnet IP address: 10.0.0.0
First PC IP address in this Subnet: 10.0.0.1
Last PC IP address in this Subnet: 10.0.31.254
Broadcast IP address in this Subnet: 10.0.31.255
Second subnet IP address: 10.0.32.0
First PC IP address in this Subnet: 10.0.32.1
Last PC IP address in this Subnet: 10.0.63.254
Broadcast IP address in this Subnet: 10.0.63.255
Second-last subnet IP address: 10.255.192.0
First PC IP address in this Subnet: 10.255.192.1
Last PC IP address in this Subnet: 10.255.223.254
Broadcast IP address in this Subnet: 10.255.223.255
Last subnet IP address: 10.255.224.0
First PC IP address in this Subnet: 10.255.224.1
Last PC IP address in this Subnet: 10.255.255.254
Broadcast IP address in this Subnet: 10.255.255.255
212.31.30.0 for 21 subnets.
For 21 subnets, n = 5. The new mask is 255.255.255.0
First subnet IP address: 212.0.0.0
First PC IP address in this Subnet: 212.31.31.1
Last PC IP address in this Subnet: 212.7.255.254
Broadcast IP address in this Subnet: 212.7.255.255
Second subnet IP address: 212.8.0.0
First PC IP address in this Subnet: 212.8.0.1
Last PC IP address in this Subnet: 212.15.255.254
Broadcast IP address in this Subnet: 212.15.255.255
Second-last subnet IP address: 212.240.0.0
First PC IP address in this Subnet: 212.240.0.1
Last PC IP address in this Subnet: 212.247.255.254
Broadcast IP address in this Subnet: 212.247.255.255
Last subnet IP address: 212.248.0.0
First PC IP address in this Subnet: 212.248.0.1
Last PC IP address in this Subnet: 212.255.255.254
Broadcast IP address in this Subnet: 212.255.255.255
190.38.0.0 for 645 subnets.
For 645 subnets, n=10. The new mask is 255.255.0.0
First subnet IP address: 190.0.0.0
First PC IP address in this Subnet: 190.0.0.1
Last PC IP address in this Subnet: 190.0.63.254
Broadcast IP address in this Subnet: 190.0.63.255
Second subnet IP address: 190.0.64.0
First PC IP address in this Subnet: 190.0.64.1
Last PC IP address in this Subnet: 190.0.127.254
Broadcast IP address in this Subnet: 190.0.127.255
Second-last subnet IP address: 190.255.128.0
First PC IP address in this Subnet: 190.255.128.1
Last PC IP address in this Subnet: 190.255.191.254
Broadcast IP address in this Subnet: 190.255.191.255
Last subnet IP address: 190.255.192.0
First PC IP address in this Subnet: 190.255.192.1
Last PC IP address in this Subnet: 190.255.255.254
Broadcast IP address in this Subnet: 190.255.255.255
In-lab Task 2: Task 1 Part 1 on Packet Tracer:
Critical Analysis / Conclusion
We learnt about the different classes of networks (A, B and C) in
this lab.
We also learnt about subnetting, which is the division of
networks into further networks.
The reasons for subnetting are reduced network traffic,
simplified management and smaller broadcast domains.
I implemented In-lab Task 1 on Packet Tracer by created a
network of four subnets that are connected to 4 switches and then
two routers.