You are on page 1of 13

Problem 1
Given :

172.25.114.250
255.255.0.0 (/16)

Find :
Total Number of Host Bits
Number Host

172.25.0.0
172.25.255.255
65,534
216

172
10101100
11111111
10101100
172

27
26
25
24

25
00011001
11111111
00011001
25

23

22

21

20

128

64

32

16

114
01110010
00000000
01110010
114

250
11111010
00000000
11111010
250

128+32+8+4= 172
128

64

32

16

16+8+1= 25
128

64

32

16

0= 0

128

64

32

16

172
10101100
11111111
10101100
172

0
0= 0
25
00011001
11111111
00011001
25

0
0
00000000
00000000
11111111
255

0
00000000
00000000
11111111
255
1

NOTE: 1 and 1=1 , 0 and 1=0

27
26
25
24
23
22

21

20

128

64

32

16

Total of 16 zeros
is the number of
host bits

128+32+8+4= 172
128

64

32

16

16+8+1= 25
128

64

32

16

128+64+32+16+8+4+2+1= 255

128

64

32

16

128+64+32+16+8+4+2+1= 255

216 = 65,536
Formula
2n-2
n =16
216 -2= 65,53

Problem 2

172.30.1.33

255.255.255.0

172.30.1.0

172.30.1.255

Total Number Of Host Bits

254

Number of Host

28

172
10101100
x 11111111
10101100
172

27
26
25
24

30
00011110
11111111
00011110
30

23

22

21

20

128

64

32

16

1
00000001
11111111
00000001
1

33
00100001
00000000
00000000
0

128+32+8+4= 172

128

64

32

16

0
128

0
64

0
32

1
16

1
8

1
4

21

10

128

64

32

16

0
0 30
16+8+4+2=
0= 1

172
10101100
x 11111111
10101100
172
NOTE: 1 and 1=1 , 0 and 1=0
27
26
25
24
23
22
64

32

16

0
0= 0

30
00011110
11111111
00011001
30

128

1
00000001
11111111
00000001
1

21

20

0
00000000
00000000
11111111
255

Total of 8 zeros is
the number of
host bits
3

128+32+8+4= 172

128

64

32

16

16+8+4+2= 30

128

64

32

16

0= 1
128

64

32

16

128+64+32+16+8+4+2+1= 255

Total Number
28=256
n=8
28-2=254

Formula
2n-2

of Host Bits:

Problem 3

192.168.10.234

255.255.255.0

192.168.10.0

192.168.10.255

Total Number Of Host Bits

254

Number of Host

28

192
11000000
x 11111111
11000000
192

27
26
25
24
23

168
10101000
11111111
10101000
168

22

21

20

128

64

32

16

10
00001010
11111111
00001010
10

234
11101010
00000000
11101010
234

128+64=192
128

64

32

16

128+32+8=168

128

64

32

16

8+2=10

128

64

32

16

192
11000000
x 11111111
11000000
192
NOTE: 1 and 1=1 , 0 and 1=0

0
0= 0

168
10101000
11111111
10101000
168

27
26
25
24
23
22
21

10
00001010
11111111
00001010
10

20

128

64

32

16

0
00000000
00000000
11111111
255

Total of 8 zeros
is the number of
host bits

128+64=192
128

64

32

16

128+32+8=168

128

64

32

16

8+2=10

128

64

32

16

128+64+32+16+8+4+2+1= 255

Total Number
28=256

of Host Bits:
Formula
2n-2
6

n=8
28-2=254
Problem 4

172.17.99.71

255.255.0.0

172.17.0.0

172.17.255.255

Total Number Of Host Bits

65,534

Number of Host

216

172
10101100
x 11111111
10101100
172

27
26
25
24

17
00010001
11111111
00010001
17

23

22

21

20

128

64

32

16

99
01100011
11111111
01100011
99

234
11101010
00000000
11101010
234

128+32+8+4= 172

128

64

32

16

16+1=17
128

64

32

16

0= 0
128

64

32

16

0= 0

172
10101100
x 11111111
10101100
172
NOTE: 1 and 1=1 , 0 and 1=0

17
00010001
11111111
00010001
17

27
26
25
24
23
22

0
00000000
00000000
11111111
255

21

20

128

64

32

16

0
00000000
00000000
11111111
255

Total of 16 zeros
is the number of
host bits

128+32+8+4= 172

128

64

32

16

16+1=17
128

64

32

16

128+64+32+16+8+4+2+1= 255

128

64

32

16

128+64+32+16+8+4+2+1= 255

Total Number
216=65,536
n=16
216-2=65,534

of Host Bits:
Formula
2n-2

Problem 5

192.168.3.219

255.255.0.0

192.168.0.0

192.168.255.255

Total Number Of Host Bits

65532

Number of Host

216

192
11000000
x 11111111
11000000
192

27
26
25
24
23

168
10101000
11111111
10101000
168

22

21

20

128

64

32

16

3
00000011
00000000
00000011
3

219
11011011
00000000
11011011
219

128+64=192
128

64

32

16

128+32+8=168

128

64

32

16

0=0
128

64

32

16

192
11000000
x 11111111
11000000
192
NOTE: 1 and 1=1 , 0 and 1=0

0
0= 0

168
10101000
11111111
10101000
168

27
26
25
24
23
22
21

0
00000000
00000000
11111111
255

20

128

64

32

16

0
00000000
00000000
11111111
255

Total of 16
zeros is the
number of

128+64=192
128

64

32

16

128+32+8=168

128

64

32

16

128+64+32+16+8+4+2+1= 255
128

64

32

16

128+64+32+16+8+4+2+1= 255

216=65,536
n=16
216-2=65,534

Formula
2n-2
10

Problem 6

192.168.3.219

255.255.255.224

192.168.3.192

192.168.3.223

Total Number Of Host Bits

30

Number of Host

25

192
11000000
x 11111111
11000000
192
27
26
25
24
23

168
10101000
11111111
10101000
168
22

21

20

128

64

32

16

3
00000011
11111111
00000011
3

192
11100000
00000000
11100000
192

128+64=192
128

64

32

16

128+32+8=168

128

64

32

16

2+1=3
128

64

32

16

128+64=192

192
11000000

168
10101000

3
00000011

192
11000000
11

x 11111111
11000000
192
NOTE: 1 and 1=1 , 0 and 1=0

11111111
10101000
168

27
26
25
24
23
22

11111111
00000011
3

21

20

128

64

32

16

128+64=192
128

64

32

16

11100000
11011111
223

Total of 5
zeros is the
number of
host bits

128+32+8=168

128

64

32

16

2+1=3
128

64

32

16

128+64+16+8+4+2+1=223

Total Number
25=32
n=5
25-2=30

Formula
2n-2

of Host Bits :

12

13