Vous êtes sur la page 1sur 30

1. Determine network information for a given IP address and network mask.

Task 2: Challenge
Problem 1:
Host IP Address: 172.30.1.33
Network Mask: 255.255.0.0
To change these decimal number to binary number is by following these step:-

1) Convert Host IP Address to Binary


172.30.1.33
From these number, what can we added to get the total 172.30.1.33?
20= 1
21= 2
22= 4
23= 8
24= 16
25= 32
26= 64
27= 128
From added number, which number do we have?
172=?
27
128
1

26
64
0

25
32
1

24
23
16
8
1
0
7
5
4
2
2 +2 + 2 +2 =172

22
4
1

21
2
0

20
1
0

21
2
1

20
1
0

128+32+16+4=172
So the number will be 10110100 and this number is a binary number for 172.

30=?
27
128
0

26
64
0

25
32
0

24
23
16
8
1
1
24+23+22+21=30
16+8+4+2=30

00011110 is a binary number for 30

22
4
1

1=?
27
128
0

26
64
0

25
32
0

24
16
0

23
8
0

22
4
0

21
2
0

20
1
1

24
23
16
8
0
0
25+20=33

22
4
0

21
2
0

20
1
1

20=1
1=1
00000001 is a binary number for 1

33=?
27
128
0

26
64
0

25
32
1

32+1=33
00100001 is a binary number for 33

2) Convert Network Mask to binary


255.255.0.0
From these number, what can we added to get the total 255.255.0.0?
20= 1
21= 2
22= 4
23= 8
24= 16
25= 32
26= 64
27= 128
From added number, which number do we have?
255=?
27
128
1

26
64
1

25
32
1

24
23
22
16
8
4
1
1
1
27+26+25+24+23+22+21+20=255

21
2
1

20
1
1

21
2
1

20
1
1

21
2
0

20
1
0

128+64+32+16+8+4+2+1=255
So the number will be 10110100 and this number is a binary number for 255.

255=?
27
128
1

26
64
1

25
32
1

24
23
22
16
8
4
1
1
1
7
6
5
4
3
2
1
0
2 +2 +2 +2 +2 +2 +2 +2 =255
128+64+32+16+8+4+2+1=255

11111111 is a binary number for 255

0=?
27
128
0

26
64
0

25
32
0

24
16
0

23
8
0

22
4
0

0=0
There is nothing you can added to get 0
00000000 is a binary number for 0

0=?
27
128
0

26
64
0

25
32
0

24
16
0

23
8
0

22
4
0

21
2
0

20
1
0

0=0
There is nothing you can added to get 0
00000000 is a binary number for 0

All of these step is a way to convert decimal to binary number. There is a few step to convert this
number by using divided, multiply, or minus. You do the same step to find binary number for these
decimal.

To find the Network Address.


*Perform a bit-wise AND (Multiply) operation on the IP address and the subnet mask*
172
10101100
AND
Subnet Mask
11111111
Network Address
10101100
172
Network Address is 172.30.0.0
IP Address

30
00011110
AND
11111111
00011110
30

1
00000001
AND
00000000
00000000
0

33
00100001
AND
00000000
00000000
0

To find the Network Broadcast Address.


*Perform an invert (swap 0 to 1, 1 to 0) on the network address and the network mask*
172
30
Network Address
10101100
00011110
Mask Address
11111111
11111111
Broadcast
10101100
00011110
172
30
Network Broadcast Address is 172.30.255.255

0
00000000
00000000
11111111
255

0
00000000
00000000
11111111
255

By counting the number of host bits, we can determine the total number of usable host for this
network.
Host Bits: 16 (count the inverted number)

Formula

Total of number Host:


16

2 =65,536

2x = y

use this formula to get the Number of Host

65,536 2 = 65,534 (addresses that cannot use the all 0s address,


network address, or the all 1s address, broadcast address.)

y - 2= Answer

Problem 1
Host IP Address
Network Mask
Network Address
Network Broadcast Address
Total Number of Host Bits
Number of Host

172.30.1.33
255.255.0.0
172.30.0.0
172.30.255.255
65536
65534 (after minus 2)

Problem 2:
Host IP Address: 172.30.1.33
Network Mask: 255.255.255.0
To change these decimal number to binary number is by following these step:-

1) Convert Host IP Address to Binary


172.30.1.33
From these number, what can we added to get the total 172.30.1.33?
20= 1
21= 2
22= 4
23= 8
24= 16
25= 32
26= 64
27= 128
From added number, which number do we have?
172=?
27
128
1

26
64
0

25
32
1

24
23
16
8
1
0
27 +25 + 24+22=172

22
4
1

21
2
0

20
1
0

21
2
1

20
1
0

128+32+16+4=172
So the number will be 10110100 and this number is a binary number for 172.

30=?
27
128
0

26
64
0

25
32
0

24
23
16
8
1
1
24+23+22+21=30
16+8+4+2=30

00011110 is a binary number for 30

22
4
1

1=?
27
128
0

26
64
0

25
32
0

24
16
0

23
8
0

22
4
0

21
2
0

20
1
1

24
23
16
8
0
0
25+20=33

22
4
0

21
2
0

20
1
1

20=1
1=1
00000001 is a binary number for 1

33=?
27
128
0

26
64
0

25
32
1

32+1=33
00100001 is a binary number for 33

2) Convert Network Mask to binary


255.255.255.0
From these number, what can we added to get the total 255.255.255.0?
20= 1
21= 2
22= 4
23= 8
24= 16
25= 32
26= 64
27= 128
From added number, which number do we have?
255=?
27
128
1

26
64
1

25
32
1

24
23
22
16
8
4
1
1
1
27+26+25+24+23+22+21+20=255

21
2
1

20
1
1

21
2
1

20
1
1

21
2
1

20
1
1

128+64+32+16+8+4+2+1=255
So the number will be 10110100 and this number is a binary number for 255.

255=?
27
128
1

26
64
1

25
32
1

24
23
22
16
8
4
1
1
1
7
6
5
4
3
2
1
0
2 +2 +2 +2 +2 +2 +2 +2 =255
128+64+32+16+8+4+2+1=255

11111111 is a binary number for 255

255=?
27
128
1

26
64
1

25
32
1

24
23
22
16
8
4
1
1
1
27+26+25+24+23+22+21+20=255
128+64+32+16+8+4+2+1=255

11111111 is a binary number for 255

0=?
27
128
0

26
64
0

25
32
0

24
16
0

23
8
0

22
4
0

21
2
0

20
1
0

0=0
There is nothing you can added to get 0
00000000 is a binary number for 0

All of these step is a way to convert decimal to binary number. There is a few step to convert this
number by using divided, multiply, or minus. You do the same step to find binary number for these
decimal.

To find the Network Address.


*Perform a bit-wise AND (multiply) operation on the IP address and the subnet mask*
172
10101100
AND
Subnet Mask
11111111
Network Address
10101100
172
Network Address is 172.30.1.0
IP Address

30
00011110
AND
11111111
00011110
30

1
00000001
AND
11111111
00000001
1

33
00100001
AND
00000000
00000000
0

To find the Network Broadcast Address.


*Perform an invert (swap 0 to 1, 1 to 0) on the network address and the network mask*
172
30
Network Address
10101100
00011110
Mask Address
11111111
11111111
Broadcast
10101100
00011110
172
30
Network Broadcast Address is 172.30.1.255

1
00000001
11111111
00000001
1

0
00000000
00000000
11111111
255

By counting the number of host bits, we can determine the total number of usable host for this
network.
Host Bits: 8 (count the inverted Number)
Total of number Host:
use this formula to get the Number of Host

28=256

256 2 = 254 (addresses that cannot use the all 0s address,


network address, or the all 1s address, broadcast address.)

Formula
2x = y
y - 2= Answer

Problem 2
Host IP Address
Network Mask
Network Address
Network Broadcast Address
Total Number of Host Bits
Number of Host

172.30.1.33
255.255.255.0
172.30.1.0
172.30.1.255
256
254 (after minus 2)

Problem 3:
Host IP Address: 192.168.10.234
Network Mask: 255.255.255.0
To change these decimal number to binary number is by following these step:-

1) Convert Host IP Address to Binary


192.168.10.234
From these number, what can we added to get the total 192.168.10.234?
20= 1
21= 2
22= 4
23= 8
24= 16
25= 32
26= 64
27= 128
From added number, which number do we have?
192=?
27
128
1

26
64
1

25
32
0

24
23
16
8
0
0
27 +26=192

22
4
0

21
2
0

20
1
0

21
2
0

20
1
0

128+64=192
So the number will be 11000000 and this number is a binary number for 192.

168=?
27
128
1

26
64
0

25
32
1

24
23
16
8
0
1
24+25+23=168
16+32+8=168

10101000 is a binary number for 168

22
4
0

10=?
27
128
0

26
64
0

25
32
0

24
23
16
8
0
1
23+21=10

22
4
0

21
2
1

20
1
0

22
4
0

21
2
1

20
1
0

8+2=10
00001010 is a binary number for 10
234=?
27
128
1

26
64
1

25
32
1

24
23
16
8
0
1
27+26+25+23+21=243
128+64+32+8+2=243

11101010 is a binary number for 234

2) Convert Network Mask to binary


255.255.255.0
From these number, what can we added to get the total 255.255.255.0?
20= 1
21= 2
22= 4
23= 8
24= 16
25= 32
26= 64
27= 128
From added number, which number do we have?
255=?
27
128
1

26
64
1

25
32
1

24
23
22
16
8
4
1
1
1
27+26+25+24+23+22+21+20=255

21
2
1

20
1
1

21
2
1

20
1
1

21
2
1

20
1
1

128+64+32+16+8+4+2+1=255
So the number will be 10110100 and this number is a binary number for 255.

255=?
27
128
1

26
64
1

25
32
1

24
23
22
16
8
4
1
1
1
7
6
5
4
3
2
1
0
2 +2 +2 +2 +2 +2 +2 +2 =255
128+64+32+16+8+4+2+1=255

11111111 is a binary number for 255

255=?
27
128
1

26
64
1

25
32
1

24
23
22
16
8
4
1
1
1
27+26+25+24+23+22+21+20=255
128+64+32+16+8+4+2+1=255

11111111 is a binary number for 255

0=?
27
128
0

26
64
0

25
32
0

24
16
0

23
8
0

22
4
0

21
2
0

20
1
0

0=0
There is nothing you can added to get 0
00000000 is a binary number for 0

All of these step is a way to convert decimal to binary number. There is a few step to convert this
number by using divided, multiply, or minus. You do the same step to find binary number for these
decimal.

To find the Network Address.


*Perform a bit-wise AND (multiply) operation on the IP address and the subnet mask*
192
110000000
AND
Subnet Mask
11111111
Network Address
11000000
192
Network Address is 192.168.10.0
IP Address

168
10101000
AND
11111111
10101000
168

10
00001010
AND
11111111
00001010
10

234
11101010
AND
00000000
00000000
0

To find the Network Broadcast Address.


*Perform an invert (swap 0 to 1, 1 to 0) on the network address and the network mask*
192
168
Network Address
11000000
10101000
Mask Address
11111111
11111111
Broadcast
11000000
10101000
192
168
Network Broadcast Address is 192.168.10.255

10
00001010
11111111
00001010
10

234
11101010
00000000
11111111
255

By counting the number of host bits, we can determine the total number of usable host for this
network.
Host Bits: 8 (count the inverted Number)
Total of number Host:
use this formula to get the Number of Host

28=256

256 2 = 254 (addresses that cannot use the all 0s address,


network address, or the all 1s address, broadcast address.)

Formula
2x = y
y - 2= Answer

Problem 3
Host IP Address
Network Mask
Network Address
Network Broadcast Address
Total Number of Host Bits
Number of Host

192.168.10.234
255.255.255.0
192.168.10.0
192.168.10.255
256
254 (after minus 2)

Problem 4:
Host IP Address: 172.17.99.71
Network Mask: 255.255.0.0
To change these decimal number to binary number is by following these step:-

1) Convert Host IP Address to Binary


172.17.99.71
From these number, what can we added to get the total 172.17.99.71?
20= 1
21= 2
22= 4
23= 8
24= 16
25= 32
26= 64
27= 128
From added number, which number do we have?
172=?
27
128
1

26
64
0

25
32
1

24
23
16
8
0
1
27 +25+23+22=172

22
4
1

21
2
0

20
1
0

21
2
0

20
1
1

128+32+8+4=172
So the number will be 10101100 and this number is a binary number for 172.

17=?
27
128
0

26
64
0

25
32
0

24
23
16
8
1
0
24+20=17
16+1=17

00010001 is a binary number for 17

22
4
0

99=?
27
128
0

26
64
1

25
32
1

24
23
16
8
0
0
26+25+21+20=99

22
4
0

21
2
1

20
1
1

22
4
1

21
2
1

20
1
1

64+32+2+1=99
01100011 is a binary number for 99

71=?
27
128
0

26
64
1

25
32
0

24
23
16
8
0
0
26+22+21+20=71
64+4+2+1=71

01000111 is a binary number for 71

2) Convert Network Mask to binary


255.255.0.0
From these number, what can we added to get the total 255.255.0.0?
20= 1
21= 2
22= 4
23= 8
24= 16
25= 32
26= 64
27= 128
From added number, which number do we have?
255=?
27
128
1

26
64
1

25
32
1

24
23
22
16
8
4
1
1
1
27+26+25+24+23+22+21+20=255

21
2
1

20
1
1

21
2
1

20
1
1

21
2
0

20
1
0

128+64+32+16+8+4+2+1=255
So the number will be 10110100 and this number is a binary number for 255.

255=?
27
128
1

26
64
1

25
32
1

24
23
22
16
8
4
1
1
1
7
6
5
4
3
2
1
0
2 +2 +2 +2 +2 +2 +2 +2 =255
128+64+32+16+8+4+2+1=255

11111111 is a binary number for 255

0=?
27
128
0

26
64
0

25
32
0

24
16
0

23
8
0

22
4
0

0=0
There is nothing you can added to get 0
00000000 is a binary number for 0

0=?
27
128
0

26
64
0

25
32
0

24
16
0

23
8
0

22
4
0

21
2
0

20
1
0

0=0
There is nothing you can added to get 0
00000000 is a binary number for 0

All of these step is a way to convert decimal to binary number. There is a few step to convert this
number by using divided, multiply, or minus. You do the same step to find binary number for these
decimal.

To find the Network Address.


*Perform a bit-wise AND (multiply) operation on the IP address and the subnet mask*
172
110000000
AND
Subnet Mask
11111111
Network Address
11000000
172
Network Address is 172.17.0.0
IP Address

17
10101000
AND
11111111
10101000
17

99
00001010
AND
00000000
00000000
0

71
11101010
AND
00000000
00000000
0

To find the Network Broadcast Address.


*Perform an invert (swap 0 to 1, 1 to 0) on the network address and the network mask*
172
17
Network Address
11000000
10101000
Mask Address
11111111
11111111
Broadcast
11000000
10101000
172
17
Network Broadcast Address is 172.17.255.255

0
00001010
00000000
11111111
255

0
11101010
00000000
11111111
255

By counting the number of host bits, we can determine the total number of usable host for this
network.
Host Bits: 16 (count the inverted Number)
Total of number Host:
216=65536

use this formula to get the Number of Host

65536 2 = 65534 (addresses that cannot use the all 0s


address, network address, or the all 1s address, broadcast
address.)

Formula
2x = y
y - 2= Answer

Problem 4
Host IP Address
Network Mask
Network Address
Network Broadcast Address
Total Number of Host Bits
Number of Host

172.17.99.71
255.255.0.0
172.17.0.0
172.17.255.255
65536
65534 (after minus 2)

Problem 5:
Host IP Address: 192.168.3.219
Network Mask: 255.255.0.0
To change these decimal number to binary number is by following these step:-

1) Convert Host IP Address to Binary


192.168.3.219
From these number, what can we added to get the total 192.168.3.219?
20= 1
21= 2
22= 4
23= 8
24= 16
25= 32
26= 64
27= 128
From added number, which number do we have?
192=?
27
128
1

26
64
1

25
32
0

24
23
16
8
0
0
27 +26=192

22
4
0

21
2
0

20
1
0

21
2
0

20
1
0

128+64=192
So the number will be 11000000 and this number is a binary number for 192.

168=?
27
128
1

26
64
0

25
32
1

24
23
16
8
0
1
27+25+23=168
128+32+8=168

10101000 is a binary number for 168

22
4
0

3=?
27
128
0

26
64
0

25
32
0

24
16
0

23
8
0

22
4
0

21
2
1

20
1
1

22
4
0

21
2
1

20
1
1

21+20=3
2+1=3
00000011 is a binary number for 3
219=?
27
128
1

26
64
1

25
32
0

24
23
16
8
1
1
27+26+24+23+21+20=219
128+64+16+8+2+1=219

11011011 is a binary number for 219

2) Convert Network Mask to binary


255.255.0.0
From these number, what can we added to get the total 255.255.0.0?
20= 1
21= 2
22= 4
23= 8
24= 16
25= 32
26= 64
27= 128
From added number, which number do we have?
255=?
27
128
1

26
64
1

25
32
1

24
23
22
16
8
4
1
1
1
27+26+25+24+23+22+21+20=255

21
2
1

20
1
1

21
2
1

20
1
1

21
2
0

20
1
0

128+64+32+16+8+4+2+1=255
So the number will be 10110100 and this number is a binary number for 255.

255=?
27
128
1

26
64
1

25
32
1

24
23
22
16
8
4
1
1
1
7
6
5
4
3
2
1
0
2 +2 +2 +2 +2 +2 +2 +2 =255
128+64+32+16+8+4+2+1=255

11111111 is a binary number for 255

0=?
27
128
0

26
64
0

25
32
0

24
16
0

23
8
0

22
4
0

0=0
There is nothing you can added to get 0
00000000 is a binary number for 0

0=?
27
128
0

26
64
0

25
32
0

24
16
0

23
8
0

22
4
0

21
2
0

20
1
0

0=0
There is nothing you can added to get 0
00000000 is a binary number for 0

All of these step is a way to convert decimal to binary number. There is a few step to convert this
number by using divided, multiply, or minus. You do the same step to find binary number for these
decimal.

To find the Network Address.


*Perform a bit-wise AND (multiply) operation on the IP address and the subnet mask*
192
110000000
AND
Subnet Mask
11111111
Network Address
11000000
192
Network Address is 192.168.0.0
IP Address

168
10101000
AND
11111111
10101000
168

3
00000011
AND
00000000
00000000
0

219
11011011
AND
00000000
00000000
0

To find the Network Broadcast Address.


*Perform an invert (swap 0 to 1, 1 to 0) on the network address and the network mask*
192
168
Network Address
11000000
10101000
Mask Address
11111111
11111111
Broadcast
11000000
10101000
192
168
Network Broadcast Address is 172.17.255.255

0
00001010
00000000
11111111
255

0
11101010
00000000
11111111
255

By counting the number of host bits, we can determine the total number of usable host for this
network.
Host Bits: 16 (count the inverted Number)
Total of number Host:
216=65536

use this formula to get the Number of Host

65536 2 = 65534 (addresses that cannot use the all 0s


address, network address, or the all 1s address, broadcast
address.)

Formula
2x = y
y - 2= Answer

Problem 5
Host IP Address
Network Mask
Network Address
Network Broadcast Address
Total Number of Host Bits
Number of Host

192.168.3.219
255.255.0.0
192.168.0.0
192.168.255.255
65536
65534 (after minus 2)

Problem 6:
Host IP Address: 192.168.3.219
Network Mask: 255.255.255.224
To change these decimal number to binary number is by following these step:-

1) Convert Host IP Address to Binary


192.168.3.219
From these number, what can we added to get the total 192.168.3.219?
20= 1
21= 2
22= 4
23= 8
24= 16
25= 32
26= 64
27= 128
From added number, which number do we have?
192=?
27
128
1

26
64
1

25
32
0

24
23
16
8
0
0
27 +26=192

22
4
0

21
2
0

20
1
0

21
2
0

20
1
0

128+64=192
So the number will be 11000000 and this number is a binary number for 192.

168=?
27
128
1

26
64
0

25
32
1

24
23
16
8
0
1
27+25+23=168
128+32+8=168

10101000 is a binary number for 168

22
4
0

3=?
27
128
0

26
64
0

25
32
0

24
16
0

23
8
0

22
4
0

21
2
1

20
1
1

22
4
0

21
2
1

20
1
1

21+20=3
2+1=3
00000011 is a binary number for 3
219=?
27
128
1

26
64
1

25
32
0

24
23
16
8
1
1
27+26+24+23+21+20=219
128+64+16+8+2+1=219

11011011 is a binary number for 219

2) Convert Network Mask to binary


255.255.0.0
From these number, what can we added to get the total 255.255.225.224?
20= 1
21= 2
22= 4
23= 8
24= 16
25= 32
26= 64
27= 128
From added number, which number do we have?
255=?
27
128
1

26
64
1

25
32
1

24
23
22
16
8
4
1
1
1
27+26+25+24+23+22+21+20=255

21
2
1

20
1
1

21
2
1

20
1
1

21
2
1

20
1
1

128+64+32+16+8+4+2+1=255
So the number will be 10110100 and this number is a binary number for 255.

255=?
27
128
1

26
64
1

25
32
1

24
23
22
16
8
4
1
1
1
7
6
5
4
3
2
1
0
2 +2 +2 +2 +2 +2 +2 +2 =255
128+64+32+16+8+4+2+1=255

11111111 is a binary number for 255

255=?
27
128
1

26
64
1

25
32
1

24
23
22
16
8
4
1
1
1
27+26+25+24+23+22+21+20=255
128+64+32+16+8+4+2+1=255

11111111 is a binary number for 255

224=?
27
128
1

26
64
1

25
32
1

24
23
16
8
0
0
27+26+25=224

22
4
0

21
2
0

20
1
0

128+64+32=224
11100000 is a binary number for 224

All of these step is a way to convert decimal to binary number. There is a few step to convert this
number by using divided, multiply, or minus. You do the same step to find binary number for these
decimal.

To find the Network Address.


*Perform a bit-wise AND (multiply) operation on the IP address and the subnet mask*
192
110000000
AND
Subnet Mask
11111111
Network Address
11000000
192
Network Address is 192.168.3.192
IP Address

168
10101000
AND
11111111
10101000
168

3
00000011
AND
11111111
00000011
3

219
11011011
AND
11100000
11000000
192

To find the Network Broadcast Address.


*Perform an invert (swap 0 to 1, 1 to 0) on the network address and the network mask*
192
168
Network Address
11000000
10101000
Mask Address
11111111
11111111
Broadcast
11000000
10101000
192
168
Network Broadcast Address is 172.17.3.223

3
00000011
11111111
00000011
3

0
111 01010
111 00000
110 11111
223

By counting the number of host bits, we can determine the total number of usable host for this
network.
Host Bits: 5 (count the inverted Number)
Total of number Host:
use this formula to get the Number of Host

25=32

32 2 = 30 (addresses that cannot use the all 0s address,


network address, or the all 1s address, broadcast address.)

Formula
2x = y
y - 2= Answer

Problem 6
Host IP Address
Network Mask
Network Address
Network Broadcast Address
Total Number of Host Bits
Number of Host

192.168.3.219
255.255.255.224
192.168.3.192
192.168.255.223
32
30 (after minus 2)

Vous aimerez peut-être aussi