You are on page 1of 25

# Assignment jobsheet

Problem 1
Total number of host bits
Number of hosts

172.30.1.33
255.255.0.0
172.30.0.0
172.30.255.255
16 (65536)
65534

First step:

172

30

33
00100001

10101100

00011110

00000001

00000000

11111111

11111111

00000000

255

255

Second step:
>perform a bit-wise and operation on the ip addressand the subnet
>use the;
~1 and 1 = 1
~1 and 0 = 0
~0 and 0 = 0

172

30

33
00100001

10101100

00011110

00000001

00000000

11111111

11111111

00000000

10101100

00011110

172

00000000

30

00000000

27
128
1

26
64
0

25
32
1

24
23
16
8
0
1
128+32+8+4=172

22
4
1

21
2
0

20
1
0

128
0

64
0

32
0

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

4
1

2
1

1
0

0
0

0
0

0
0

0
0

0
0

0
0

1
0

0
0

0
0

0
0

1
0

0
0
0+0=0

0
0

0
0

1
0

0
0
0+0=0
172

30

00000000

10101100

00000000
11111111

11111111

10101100

00011110

00000000

11111111

00000000

00011110

172

11111111

30

255

255
27
128
1

26
64
0

25
32
1

24
23
16
8
0
1
128+32+8+4=172

22
4
1

21
2
0

20
1
0

128
0

64
0

32
0

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

4
1

2
1

1
0

128
1

64
1

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

2
1

1
1

128
1

64
1

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

2
1

1
1

Formula :

2n-2
Total number of network mask is 8+8=16
n

= 16

216

= 65 536

216-2

= 65 534

Problem 2
Total number of host bits
Number of hosts

172.30.1.33
255.255.255.0
172.30.1.0
172.30.1.255
8 (256)
254

First step :

172

30

33
00100001

10101100

00011110

00000001

00000000

11111111

11111111

11111111

=
0

255

255

255

Second step :
>perform a bit-wise and operation on the ip addressand the
>use the;
~1 and 1 = 1
~1 and 0 = 0
~0 and 0 = 0

172

30

33
00100001

00000000

00000000

10101100
11111111
10101100
172

00011110
11111111
00011110

00000001
11111111
00000001

30

27
128
1

26
64
0

25
32
1

24
23
22
16
8
4
0
1
1
128+32+8+4=172

21
2
0

20
1
0

128
0

64
0

32
0

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

4
1

2
1

1
0

0
1

0
1

0
1

0
0
1
1
1+1=1

0
1

0
1

1
1

0
0

0
0

1
0

0
0
0
0
1+0=0

0
0

0
0

1
0

172

30

255
00100001

00000000
00000000

10101100
11111111
10101100
172

255

00011110
11111111
00011110
30

00000001
11111111
00000001
1

27
128
1

26
64
0

25
32
1

24
23
22
16
8
4
0
1
1
128+32+8+4=172

128
0

64
0

32
0

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

128
1

64
1

32
1

15
8
1
1
1+1=1

128
0

64
0

2n-2
Total number of network mask is 8
=8

28

= 256

28-2 = 254

20
1
0

4
1

2
1

1
0

4
1

2
1

1
1

2
0

1
0

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

Formula =

21
2
0

Problem 3
Total number of host bits
Number of hosts

192.168.10.234
255.255.255.0
192.168.10.10
192.168.10.255
8 (256)
254

Fisrt step:

192
234

168

10

11101010

11000000

10101000

00001010

00000000

11111111

11111111

11111111

255

255

255

Second step:
>perform a bit-wise and operation on the ip addressand the
>use the;
~1 and 1 = 1
~1 and 0 = 0
~0 and 0 = 0

192

168

10

234
11101010

11000000

10101000

00001010

00000000

11111111

11111111

11111111

00000000

11000000
192

10101000
168

00001010
10

27
128
1

26
64
1

25
32
0

24
23
16
8
0
0
128+64=192

22
4
0

21
2
0

20
1
0

128
1

64
0

32
1

16
8
0
1
128+32+8=168

4
0

2
0

1
0

0
1

0
1

0
1

1
1

0
1

1
1

0
1

0
1
0
0
0+0=0

0
0

1
0

0
0

0
1
=10

1
0

1
0

1
0

192

168

10

255
11101010

00000000

11000000
11111111

10101000
11111111

00001010
11111111

11111111

11000000

10101000

00001010

168

10

192
255

27
128
1

26
64
1

25
32
0

24
23
16
8
0
0
128+64=192

22
4
0

21
2
0

20
1
0

128
1

64
0

32
1

16
8
0
1
128+32+8=168

4
0

2
0

1
0

128
0

64
0

32
0

16
8
0
1
8+2=10

4
0

2
1

1
0

128
1

64
1

2
1

1
1

Formula =

2n-2

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

## Total number of network mask is 8

n

=8

28

= 256

28-2 = 254

Problem 4

172.17.99.71
255.255.255.0

Total number of host bits
Number of hosts

172.17.0.0
172.17.255.255
16 (65 536)
65 534

First step :

172

17

99

71
01000111

10101100

00010001

01100011

00000000

11111111

11111111

00000000

255

255

Second step :
>perform a bit-wise and operation on the ip addressand the
>use the;
~1 and 1 = 1
~1 and 0 = 0
~0 and 0 = 0

172

17

99

71
01000111

10101100

00010001

01100011

00000000

11111111

11111111

00000000

00000000

10101100

00010001

00000000

172

17

27
128
1

26
64
0

25
32
1

24
23
22
16
8
4
0
1
1
128+32+8+4=172

21
2
0

20
1
0

128
0

64
0

32
0

16
8
1
0
16+1=17

4
0

2
0

1
1

0
0

1
0

1
0

0
0
0
0
1+0=0

0
0

1
0

1
0

0
0

1
0

0
0

0
0
0
0
1+0=0

1
0

1
0

1
0

172

17

99

71
01000111

10101100

00000000
11111111

11111111

00010001
11111111

10101100

00010001

172

01100011
00000000
11111111

17

255

255

27
128
1

26
64
0

25
32
1

128
0

64
0

32
0

128
1

64
1

24
23
22
16
8
4
0
1
1
128+32+8+4=172
16
8
1
0
16+1=17

4
0

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

21
2
0

20
1
0

2
0

1
1

2
1

1
1

128
1

64
1

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

Formula =

2n-2
Total number of network mask is 8+8=16
n

= 16

216

= 256

216-2 = 254

2
1

1
1

Problem 5
Total number of host bits
Number of hosts

192.168.3.219
255.255.0.0
192.168.0.0
192.168.255.255
16 (65 536)
65 534

First step :
192

168

219
11011011

11000000

10101000

00000011

00000000

11111111

11111111

00000000

255

255

Second step :
>perform a bit-wise and operation on the ip addressand the

>use the;
~1 and 1 = 1
~1 and 0 = 0
~0 and 0 = 0

192

168

219
11011011

11000000

10101000

00000011

00000000

11111111

11111111

00000000

00000000

11000000

10101000

00000000

192

168

27
128
1

26
64
1

25
32
0

128
1

64
0

32
1

24
23
16
8
0
0
128+64=192
16
0

8
1

22
4
0

21
2
0

20
1
0

4
0

2
0

1
0

128+32+8=168
128
0

64
0

32
0

16
8
0
0
1+0=0

4
0

2
0

1
0

128
0

64
0

32
0

16
8
0
0
1+0=0

4
0

2
0

1
0

192

168

219
11011011

11000000

00000000
11111111

11111111

11000000

10101000
11111111
10101000

192

00000011
00000000
11111111

168

255

255

27
128
1

26
64
1

25
32
0

24
16
0

23
8
0

22
4
0

21
2
0

20
1
0

128+64=192
128
1

64
0

128
1

64
1

128
1

64
1

32
1

16
8
0
1
128+32+8=168

2
0

1
0

32
16
8
4
1
1
1
1
1128+64+32+16+8+4+2+!=255

2
1

1
1

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

2
1

1
1

Formula =

2n-2
Total number of network mask is 8+8=16
n
216

= 16
= 256

216-2 = 254

4
0

Problem 6
Total number of host bits
Number of hosts

192.168.3.219
255.255.225.223
192.168.0.0
192.168.255.255
5 (32)
30

First step :

192

168

219
11011011

11000000

10101000

00000011

11100000

11111111

11111111

11111111

255

255

255

223

Second step :
>perform a bit-wise and operation on the ip addressand the
>use the;
~1 and 1 = 1
~1 and 0 = 0
~0 and 0 = 0

192

168

219
11011011

11000000

10101000

00000011

11100000

11111111

11111111

11111111

11000000

11000000

10101000

00000011

192

168

192

27
128
1

26
64
1

25
32
0

24
23
16
8
0
0
128+64=192

22
4
0

21
2
0

20
1
0

128
1

64
0

32
1

16
8
0
1
128+32+8=168

4
0

2
0

1
0

0
1

0
1

0
1

0
0
1
1
1+2=3

0
1

1
1

1
1

1
1

1
1

0
1

1
1
0
0
128+64=192

0
0

1
0

1
0

192

168

219
11011011

11000000

10101000

00000011

11100000
11111111

11111111

11000000

11111111
10101000

192

11111111
11111111

168

255

255

27
128
1

26
64
1

25
32
0

24
23
16
8
0
0
128+64=192

22
4
0

21
2
0

20
1
0

128
1

64
0

32
1

16
8
0
1
128+32+8=168

4
0

2
0

1
0

128
1

64
1

2
1

1
1

128
1

64
1

2
0

1
0

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

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

4
0

Formula =

2n-2
Total number of network mask is 5
n

=5

25

= 32

25-2 = 30