You are on page 1of 13

TASK 1

Problem 1
Given :
Host IP Address
Network Mask

172.25.114.250
255.255.0.0 (/16)

Find :
Network Address
Network Broadcast Address
Total Number of Host Bits
Number Host

IP Address
Subnet Mask
Network Address

172.25.0.0
172.25.255.255
65,534
216

172
10101100
11111111
10101100
172

Network Address : 172.25.0.0


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

Network Add.
Mask
Broadcast

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


Network Broadcast Address : 172.25.255.255
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

Total Number of Host Bits:


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

Problem 2

Host IP Address

172.30.1.33

Network Mask

255.255.255.0

Network Address

172.30.1.0

Network Broadcast Address

172.30.1.255

Total Number Of Host Bits

254

Number of Host

28

IP Address
Subnet Mask
Network Address

172
10101100
x 11111111
10101100
172

Network Address : 172.30.1.0


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
Network Broadcast Address : 172.30.1.255
27
26
25
24
23
22
64

32

16

0
0= 0

30
00011110
11111111
00011001
30

Network Add.
Mask
Broadcast

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
Host IP Address

192.168.10.234

Network Mask

255.255.255.0

Network Address

192.168.10.0

Network Broadcast Address

192.168.10.255

Total Number Of Host Bits

254

Number of Host

28

IP Address
Subnet Mask
Network Address

192
11000000
x 11111111
11000000
192

Network Address : 192.168.10.0


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

Network Add.
Mask
Broadcast

Network Broadcast Address : 192.168.10.255


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
Host IP Address

172.17.99.71

Network Mask

255.255.0.0

Network Address

172.17.0.0

Network Broadcast Address

172.17.255.255

Total Number Of Host Bits

65,534

Number of Host

216

IP Address
Subnet Mask
Network Address

172
10101100
x 11111111
10101100
172

Network Address : 172.17.0.0


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
Network Add.
10101100
Mask
x 11111111
Broadcast
10101100
172
NOTE: 1 and 1=1 , 0 and 1=0

17
00010001
11111111
00010001
17

Network Broadcast Address : 172.17.255.255


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
Host IP Address

192.168.3.219

Network Mask

255.255.0.0

Network Address

192.168.0.0

Network Broadcast Address

192.168.255.255

Total Number Of Host Bits

65532

Number of Host

216

IP Address
Subnet Mask
Network Address

192
11000000
x 11111111
11000000
192

Network Address : 192.168.0.0


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
Network Add.
11000000
Mask
x 11111111
Broadcast
11000000
192
NOTE: 1 and 1=1 , 0 and 1=0

0
0= 0

168
10101000
11111111
10101000
168

Network Broadcast Address : 192.168.255.255


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

Total Number of Host Bits :


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

Formula
2n-2
10

Problem 6
Host IP Address

192.168.3.219

Network Mask

255.255.255.224

Network Address

192.168.3.192

Network Broadcast Address

192.168.3.223

Total Number Of Host Bits

30

Number of Host

25

192
IP Address
11000000
Subnet Mask
x 11111111
Network Address
11000000
192
Network Address : 192.168.3.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
Network Add.

192
11000000

168
10101000

3
00000011

192
11000000
11

Mask
Broadcast

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

11111111
10101000
168

Network Broadcast Address : 192.168.3.223


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