Search in the document preview
Data Communication and Computer Networking Lab # 3 BCE 6th
Introduction to SUBNETTING:
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.
prompt> ifconfig <interfaceNo> xxx.xxx.xxx.xxx netmask xxx.xxx.xxx.xxx prompt> ifconfig eth0 172.20.6.131 netmask 255.255.248.0
prompt> ping -b <broadcast_ip>
SUBNETTING: The purpose of subnetting is that by using only one given IP we can make different networks. E.g. If the Given IP is: 172.16.0.0 and we are required to make 169 Subnets, then, by using the following formula for subnets we can find the no.of bits required for the subnets:
2n – 2 >= No. of Subnets. Where n is No. of Bits further required as network address field in the given IP. Therefore for 169 subnets we get n = 8.
So the new mask becomes: 255.255.255.0
First subnet IP address: 172.16.1.0 First PC IP address in this Subnet: 172.16.1.1 Last PC IP address in this Subnet: 172.16.1.254 Broadcast IP address in this Subnet: 172.16.1.255
Last subnet IP address: 172.16.254.0 First PC IP address in this Subnet: 172.16.254.1 Last PC IP address in this Subnet: 172.16.254.254
Broadcast IP address in this Subnet: 172.16.254.255 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 517 subnets. 2. 220.127.116.11 for 21 subnets. 3. 18.104.22.168 for 10 subnets.
Task2: Run these commands and find out which command performs
which of the above listed task.