Case 1:-Fixed Subnet Mask
Case 1:-Fixed Subnet Mask
Case 1:-Fixed Subnet Mask
Step 2. 2 =21 , we must take "one" bit borrowed to make "2" subnet
Step 3. The step between first address (network address ) and the last address (Broadcast address) in one subnet
is (64+32+16+8+4+2+1=127)
Step 4. Host per network = 27-2= 128-2=126 ( the bits left for host =7) 0 0000000 0
0 1111111 127
Step 5. The subnet mask= 27 =128 1 0000000 128
1 1111111 255
The following table represents the host portion
2. (÷ 8) 193 . 160.150.0/24
Step 2. 8 =23 , we must take "three" bits borrowed to make "8" subnet
Step 3. The step between first address (network address ) and the 000 00000 0
000 11111 31
last address (Broadcast address) in one subnet is (16+8+4+2+1=31) 001 00000 32
001 11111 63
Step 4. Host per network = 25-2= 32-2=30 ( the bits left for host =5) 010 00000 64
010 11111 95
Step 5. The subnet mask=27+26+25=128+64+32=224 011 00000 96
011 11111 127
The following table represents host portion 100 00000 128
Or 256÷8=32………………….. 1subnet between (0-31) 100 11111 159
101 00000 160
2 subnet between (32-63) 101 11111 191
110 00000 192
… 110 11111 223
111 00000 224
..
111 11111 255
8 subnet between (224-255)
Subnet Network address Host Range Broadcast Subnet mask
address
1 193.160.150.0/27 193.160.150.1 193.160.150.30 193.160.150.31 255.255.255.224
2 193.160.150.32/27 193.160.150.33 193.160.150.62 193.160.150.63 255.255.255.224
3 193.160.150.64/27 193.160.150.65 193.160.150.94 193.160.150.95 255.255.255.224
4 193.160.150.96/27 193.160.150.97 193.160.150.126 193.160.150.127 255.255.255.224
5 193.160.150.128/27 193.160.150.129 193.160.150.158 193.160.150.159 255.255.255.224
6 193.160.150.160/27 193.160.150.161 193.160.150.190 193.160.150.191 255.255.255.224
7 193.160.150.192/27 193.160.150.193 193.160.150.222 193.160.150.223 255.255.255.224
8 193.160.150.224/27 193.160.150.225 193.160.150.254 193.160.150.255 255.255.255.224
Step 2. 16 =24 , we must take "four" bits borrowed to make "16" subnet
Step 3. The step between first address (network address ) and the last address (Broadcast address) in one subnet
is (8+4+2+1=15)
Step 4. Host per network = 24-2= 16-2=14 ( the bits left for host =4)
0000 0000 0
0000 1111 15
0001 0000 16
0001 1111 31
0010 0000 32
0010 1111 47
0011 0000 48
0011 1111 63
0100 0000 64
0100 1111 79
0101 0000 80
0101 1111 95
0110 0000 96
0110 1111 111
0111 0000 112
0111 1111 127
1000 0000 128
1000 1111 143
1001 0000 144
1001 1111 159
1010 0000 160
1010 1111 175
1011 0000 176
1011 1111 191
1100 0000 192
1100 1111 207
1101 0000 208
1101 1111 223
1110 0000 224
1110 1111 239
1111 0000 240
1111 1111 255
Step 2. 64 =26 , we must take "six" bits borrowed to make "64" subnet
Step 3. The step between first address (network address ) and the last address (Broadcast address) in one subnet
is (2+1=3)
Step 4. Host per network = 22-2= 4-2=2 ( the bits left for host =2)
Step 2. 128 =27 , we must take "seven" bits borrowed to make "128" subnet
Step 3. The step between first address (network address ) and the last address (Broadcast address) in one subnet
is (1=1)
Step 4. Host per network = 21-2= 2-2=0 ( the bits left for host =1) ….there is no host in this subnet
so , it is impossible to implemented because the subnet contain only two address one for subnet address and the
last for broadcast address , so there is no host in this subnet.
0000000 0 0
0000000 1 1
0000001 0 2
0000001 1 3
.
.
.
.
1111111 0 254
1111111 1 255
Case 2:- Variable subnet mask
193.160.150.128/24
255.255.255.0
Host ( 70,40,25,13,5)
127
128
192 191
224 223
240 239
248 247
256