You are on page 1of 25

Assignment jobsheet

Task 2: challenge
Problem 1
Host ip address
Network mask
Network address
Network broadcast address
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:
Convert the host ip address and network mask to binary number.

172

30

33
Ip address
00100001

10101100

00011110

00000001

Net mask
00000000

11111111

11111111

00000000

255

255

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

172

30

33
Ip address
00100001

10101100

00011110

00000001

Sub mask
00000000

11111111

11111111

00000000

Net address =

10101100

00011110

172

00000000

30

00000000

Network address = 172.30.0.0


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

Net address
00000000

10101100

Network mask =
00000000
Broadcast
11111111

11111111

10101100

00011110

00000000

11111111

00000000

00011110

172

11111111

30

255

255
Network address = 172.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
Host ip address
Network mask
Network address
Network broadcast address
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 :
Convert the host ip address and network mask to binary number.

172

30

33
Ip address
00100001

10101100

00011110

00000001

Net mask
00000000

11111111

11111111

11111111

=
0

255

255

255

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

172

30

33
Ip address
00100001

Sub mask
00000000

Net address =
00000000

10101100
11111111
10101100
172

00011110
11111111
00011110

00000001
11111111
00000001

30

Network address = 172.30.1.0


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
Net address
00100001

Network mask=
00000000
Broadcast
00000000

10101100
11111111
10101100
172

255

Network address = 172.30.1.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
Host ip address
Network mask
Network address
Network broadcast address
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:
Convert the host ip address and network mask to binary number.

192
234

168

10

Ip address
11101010

11000000

10101000

00001010

Net mask
00000000

11111111

11111111

11111111

255

255

255

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

192

168

10

234
Ip address
11101010

11000000

10101000

00001010

Sub mask
00000000

11111111

11111111

11111111

Net address =
00000000

11000000
192

10101000
168

00001010
10

Network addess = 192.168.10.0


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
Net address
11101010

Network mask=
00000000

11000000
11111111

10101000
11111111

00001010
11111111

Broadcast
11111111

11000000

10101000

00001010

168

10

192
255

Network address = 192.168.10.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
Host ip address
Network mask

172.17.99.71
255.255.255.0

Network address
Network broadcast address
Total number of host bits
Number of hosts

172.17.0.0
172.17.255.255
16 (65 536)
65 534

First step :
Convert the host ip address and network mask to binary number.

172

17

99

71
Ip address
01000111

10101100

00010001

01100011

Net mask
00000000

11111111

11111111

00000000

255

255

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

172

17

99

71
Ip address
01000111

10101100

00010001

01100011

Subnet mask =
00000000

11111111

11111111

00000000

Net address =
00000000

10101100

00010001

00000000

172

17

Network address = 172.17.0.0


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
Ip address
01000111

10101100

Subnet mask=
00000000
Broadcast
11111111

11111111

00010001
11111111

10101100

00010001

172

01100011
00000000
11111111

17

255

255

Network address = 172.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
Host ip address
Network mask
Network address
Network broadcast address
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 :
Convert the host ip address and network mask to binary number.
192

168

219
Ip address
11011011

11000000

10101000

00000011

Net mask
00000000

11111111

11111111

00000000

255

255

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

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

192

168

219
Ip address
11011011

11000000

10101000

00000011

Subnet mask =
00000000

11111111

11111111

00000000

Net address =
00000000

11000000

10101000

00000000

192

168

Network address = 192.168.0.0


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
Ip address
11011011

11000000

Subnet mask=
00000000
Broadcast
11111111

11111111

11000000

10101000
11111111
10101000

192

00000011
00000000
11111111

168

255

255

Network address = 192.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
Host ip address
Network mask
Network address
Network broadcast address
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 :
Convert the host ip address and network mask to binary number.

192

168

219
Ip address
11011011

11000000

10101000

00000011

Net mask
11100000

11111111

11111111

11111111

255

255

255

223

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

192

168

219
Ip address
11011011

11000000

10101000

00000011

Subnet mask =
11100000

11111111

11111111

11111111

Net address =
11000000

11000000

10101000

00000011

192

168

192

Network address = 192.168.3.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
Ip address
11011011

11000000

10101000

00000011

Subnet mask=
11100000
Broadcast
11111111

11111111

11000000

11111111
10101000

192

11111111
11111111

168

255

255

Network address = 192.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