Professional Documents
Culture Documents
Objectives:
The objective of this lab is to design the IP addresses for a network topology from the given
requirement specification. IP addresses are designed using both FLSM (Fixed Length Subnet Mask)
and also VLSM (Variable Length Subnet Mask).
Activity Outcomes
At the end of this lab the student will be able to design IP addresses for a network topology using
VLSM and FLSM methods.
Lab Tasks
1
Designing IP addresses using FLSM:
You have purchased the network address 192.168.10.0 / 24. You need to do IP addressing for the
following specification. Your company has four Departments. Each department has 20 PCs and 3
network printers.
Solution:
From the given network address, the subnetting must be done using the last octet (last 8 bits).
1100 0000 . 1010 1000 . 0000 1010 . 0000 0000 Binary form
As the company has 4 departments, you need to have 4 subnets and each of those subnets must
accommodate all the PCs and printers. Each network will need an address for the gateway. So for each
subnet we need 20 PCs + 3 printers + 1 gateway = 24 IPs. We have 8 bits in the last octet of the
network address (host portion in the given network address). Among these we have to decide how
many bits for host part and how many bits for subnet part.
To find the number of bits needed to accommodate m hosts the formula is: 2n – 2 ≥ m
Where n is the number of host bits and m is the total number of host IPs needed.
Using this formula for 24 hosts, we need 5 bits. ( 25 - 2 = 30 ≥ 23)
.0 0 0 0 0 0 0 0
|-sub net part-|-----host part--------|
The new subnet mask can be found after deciding on the number of host bits, by the following formula.
Host bits are the last few bits. So (32 – n) will be the subnet mask number which is 32 – 5 = 27 here.
Subnet mask is /27 and in decimal form it is 27 ones among 32 bits.
Subnet mask in prefix notation: /27
Subnet mask in binary form: 1111 1111. 1111 1111. 1111 1111. 1110 0000
Subnet Mask in decimal form: 255 . 255 . 255 . 224
Now try to fill up the following table which has all the needed IP addresses for the network topology.
Allocate the IP addresses from the first usable to last usable IPs rage to all the PCs, printers and
gateway in the respective departments.
Given an IP network address and mask of 172.20.0.0 / 24 (address / mask), design an IP addressing
scheme that satisfies the following requirements:
Host computers from each subnet will use the first available IP address in the address block. Router
interfaces will use the last available IP address in the address block.
First find the subnet mask by calculating the number of bits needed for the hosts in the network using
the formula
2n – 2 ≥ m
Where n is the number of host bits and m is the total number of host IPs needed.
n
Here 2 – 2 ≥ 125, so n will be 7
To find the subnet mask using n use the formula: subnet mask = 32 – n
Mask is 32 – 7 = /25
Network address of the first network will be the given network address. First host address will be one
greater than network address.
Broad cast address will be the address one less than the next network address. Last usable address will
be the address one less than the broadcast address. So it will be easy to find Broadcast addresses and
last usable address after finding the next network address.
3
Fill in the following table with IP address information for SubnetD:
Then select the next largest host requirement subnet which is C here.
Use the above procedure to fill in the following table with IP address information for Subnet C:
Then select the next largest host requirement subnet which is B here.
Then select the next largest host requirement subnet which is A here.
Now you may allocate IPs to different hosts in all the subnets