Вы находитесь на странице: 1из 6

HW/ By Sumer Sahib Hardan

Case 1:- Fixed subnet mask


1. (÷2) 193 . 160.150.0/24

Step 1. CLASS "C" N.N.N.H

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

Subnet Network address Host Range Broadcast Subnet mask


address
1 193.160.150.0/25 193.160.150.1 193.160.150.126 193.160.150.127 255.255.255.128
2 193.160.150.128/25 193.160.150.129 193.160.150.254 193.160.150.255 255.255.255.128

Or 256÷2=128………………….. 1subnet between (0-127) 2 subnet between (128-255)

2. (÷ 8) 193 . 160.150.0/24

Step 1. CLASS "C" N.N.N.H

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

3. (÷ 16) 193 . 160.150.0/24

Step 1. CLASS "C" N.N.N.H

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)

Step 5. The subnet mask=+26+25+24=128+64+32+16=240

The following table represents host portion

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

Subnet Network address Host Range Broadcast Subnet mask


address
1 193.160.150.0/28 193.160.150.1 193.160.150.14 193.160.150.15 255.255.255.240
2 193.160.150.16/28 193.160.150.17 193.160.150.30 193.160.150.31 255.255.255.240
3 193.160.150.32/28 193.160.150.33 193.160.150.46 193.160.150.47 255.255.255.240
4 193.160.150.48/28 193.160.150.49 193.160.150.62 193.160.150.63 255.255.255.240
5 193.160.150.64/28 193.160.150.65 193.160.150.78 193.160.150.79 255.255.255.240
6 193.160.150.80/28 193.160.150.81 193.160.150.94 193.160.150.95 255.255.255.240
7 193.160.150.96/28 193.160.97.97 193.160.110.110 193.160.150.111 255.255.255.240
8 193.160.150.112/28 193.160.150.113 193.160.150.126 193.160.150.127 255.255.255.240
9 193.160.150.128/28 193.160.150.129 193.160.150.142 193.160.150.143 255.255.255.240
10 193.160.150.144/28 193.160.150.145 193.160.150.158 193.160.150.159 255.255.255.240
11 193.160.150.160/28 193.160.150.161 193.160.150.174 193.160.150.175 255.255.255.240
12 193.160.150.176/28 193.160.150.177 193.160.150.190 193.160.150.191 255.255.255.240
13 193.160.150.192/28 193.160.150.193 193.160.150.206 193.160.150.207 255.255.255.240
14 193.160.150.208/28 193.160.150.209 193.160.150.222 193.160.150.223 255.255.255.240
15 193.160.150.224/28 193.160.150.225 193.160.150.238 193.160.150.239 255.255.255.240
16 193.160.150.240/28 193.160.150.241 193.160.150.254 193.160.150.255 255.255.255.240
4. (÷ 64) 193 . 160.150.0/24

Step 1. CLASS "C" N.N.N.H

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 5. The subnet mask=27+26+25+24+23+22=128+64+32+16+8+4=252

The following table represents host portion

000000 00 0 010000 00 64 100000 00 128 110000 00 192


000000 11 3 010000 11 67 100000 11 131 110000 11 195
000001 00 4 010001 00 68 100001 00 132 110001 00 196
000001 11 7 010001 11 71 100001 11 135 110001 11 199
000010 00 8 010010 00 72 100010 00 136 110010 00 200
000010 11 11 010010 11 75 100010 11 139 110010 11 203
000011 00 12 010011 00 76 100011 00 140 110011 00 204
000011 11 15 010011 11 79 100011 11 143 110011 11 207
000100 00 16 010100 00 80 100100 00 144 110100 00 208
000100 11 19 010100 11 83 100100 11 147 110100 11 211
000101 00 20 010101 00 84 100101 00 148 110101 00 212
000101 11 23 010101 11 87 100101 11 151 110101 11 215
000110 00 24 010110 00 88 100110 00 152 110110 00 216
000110 11 27 010110 11 91 100110 11 155 110110 11 219
000111 00 28 010111 00 92 100111 00 156 110111 00 220
000111 11 31 010111 11 95 100111 11 159 110111 11 223
001000 00 32 011000 00 96 101000 00 160 111000 00 224
001000 11 35 011000 11 99 101000 11 163 111000 11 227
001001 00 36 011001 00 100 101001 00 164 111001 00 228
001001 11 39 011001 11 103 101001 11 167 111001 11 231
001010 00 40 011010 00 104 101010 00 168 111010 00 232
001010 11 43 011010 11 107 101010 11 171 111010 11 235
001011 00 44 011011 00 108 101011 00 172 111011 00 236
001011 11 47 011011 11 111 101011 11 175 111011 11 239
001100 00 48 011100 00 112 101100 00 176 111100 00 240
001100 11 51 011100 11 115 101100 11 179 111100 11 243
001101 00 52 011101 00 116 101101 00 180 111101 00 244
001101 11 55 011101 11 119 101101 11 183 111101 11 247
001110 00 56 011110 00 120 101110 00 184 111110 00 248
001110 11 59 011110 11 123 101110 11 187 111110 11 251
001111 00 60 011111 00 124 101111 00 188 111111 00 252
001111 11 63 011111 11 127 101111 11 191 111111 11 255
Subnet Network address Host Range Broadcast Subnet mask
address
1 193.160.150.0/30 193.160.150.1 193.160.150.2 193.160.150.3 255.255.255.252
2 193.160.150.4/30 193.160.150.5 193.160.150.6 193.160.150.7 255.255.255.252
3 193.160.150.8/30 193.160.150.9 193.160.150.10 193.160.150.11 255.255.255.252
4 193.160.150.12/30 193.160.150.13 193.160.150.14 193.160.150.15 255.255.255.252
5 193.160.150.16/30 193.160.150.17 193.160.150.18 193.160.150.19 255.255.255.252
.
.
.
64 193.160.150.252/30 193.160.150.253 193.160.150.254 193.160.150.255 255.255.255.252

4. (÷ 128) 193 . 160.150.0/24

Step 1. CLASS "C" N.N.N.H

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

Step 5. The subnet mask=27+26+25+24+23+22+22=128+64+32+16+8+4+2=254

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.

The following table represents host portion

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)

Want standard Host portion 00000000 Subnet mask Network prefix


7
70 128 2 "1" bit borrowed 10000000 128 24+1 =25
40 64 26 "2" bit borrowed 11000000 128+64= 192 42+2 =26
25 32 25 "3" bit borrowed 11100000 128+64+32= 224 42+3 =27
13 16 24 "4" bit borrowed 11110000 128+64+32+16= 240 24+4 =28
5 8 23 "5" bit borrowed 11111000 128+64+32+16+8= 248 24+5=29

127
128

192 191
224 223
240 239
248 247

256

Subnet Network address Host Range Broadcast Subnet mask


address
1 193.160.150.0/25 193.160.150.1 193.160.150.126 193.160.150.127 255.255.255.128
2 193.160.150.128/26 193.160.129.33 193.160.150.190 193.160.150.191 255.255.255.192
3 193.160.150.192/27 193.160.150.193 193.160.150.222 193.160.150.223 255.255.255.224
4 193.160.150.224/28 193.160.150.225 193.160.150.238 193.160.150.239 255.255.255.240
5 193.160.150.240/29 193.160.150.241 193.160.150.247 193.160.150.248 255.255.255.248

Вам также может понравиться