Professional Documents
Culture Documents
CN Language; LabTask ;
0 127
CN Lab3,4
Page 1 of 7
The values in each octet can be of range 0 to 255 i.e. all bits in an octet set to 0 or 1.
Class A, has first octet for Network and remaining 3 octets for Host N. H. H. H
Class B, has first and second octet for Network and remaining 2 octets for Host N. N. H. H
Class C, has first three octets for Network and remaining 1 octet for Host N. N. N. H
So if we take the example of the IP address in Class C,
i.e. 192.168.1.1 Seeing the first Octet value i.e. 192, we can make out this is a Class C, IP address.
Page 2 of 7
The Network and Host portion are differentiated by the use of a Subnet Mask. In a subnet Mask, all 1s represent
a Network and all 0s represent hosts.
The default subnet masks for all the three Classes are as below.
Page 3 of 7
Host
Among all the IP address available for hosts not all are valid, we need to remove 2 from the available list as we
cannot have the values of all 0s and all 1s used. The first and the last address are used for the network and
Broadcast ID. In Terms of networking and IP addressing, Hosts and Networks are the key for deciding
requirements.
Thus the Valid number of host address becomes:
Note: the IP address in range of 127.x.x.x is only used for testing and is commonly known as the loopback IP
address.
Page 4 of 7
Topology
Consider you have 4 departments, namely:
1. Sales
2. Accounts
3. HR
4. IT
Your IT manager wants you to design a network that each department has 50 hosts, i.e. in total 200 hosts.
With FLSM
If dividing the network into equal sizes, like of each network 64 addresses. When we do subnetting, what we are
doing is converting some hosts bits to network bits. Or can say converting 0s to 1s.
Let me explain a little about slash notation /, you would have seen IP addresses mentioned like : 192.168.1.1/24,
here the 24 represents the number of 1s in the subnet mask.
192.168.1.1 With subnet mast of 255.255.255.0 can be written as 192.168.1.1/24
Please see below an important table that you should memorize to make subnetting easy for you.
Page 5 of 7
Now, if we use 2 ^6, we get 64 hosts and, our requirement is 50 hosts. The formula holds true.
Out of the available 64 addresses, we cannot use the first and last IP address as they are reserved for
Network address and broadcast address. Thus allowed usable IP addresses or valid host IPs is 64 -2 =
62. (Can connect up to 62 devices)
So,
Host bits required (h) =6
Converted Network bits (n) = Total host bits required host bits (h), 8 -6 =2
Thus, converted Network bits (n) =2
Total Network Bits =default Network Bits + converted network Bits (n) = 24+2=26
Hosts per Subnet = 2h -2 = 2 6 2 = 64 -2 = 62 hosts per subnet
Number of Subnets = 2 x n = 2x2 = 4 ( As 2 bits were moved from host to subnet)
Therefore customized subnet mask = /26 = 255.255.255.192
Valid Range of IPs : = 2h -2 = 2 6 2 = 64 -2 = 62 hosts
The networks will be in intervals of 64. That is: 0, 64, 128, and 192.
Page 6 of 7
LAB Task
Design and configure the given topology and provide IP Addressing and appropriate Subnet mask.
So we can assign IP Address each departments with Subnet, namely:
1. Sales Network ID : 192.168.10.0
2. Accounts Network ID : 192.168.10.64
3. HR Network ID : 192.168.10.128
4. IT Network ID : 192.168.10.192
You need to configure the both Routers with Static / Dynamic Routing
Page 7 of 7