You are on page 1of 16

Task 2

Problem 1
IP Address -> 172.30.1.33
Network Mask -> 255.255.0.0
Network Address -> 172.30.0.0
Network Broadcast Address -> 172.30.255.255
Network Broadcast Address -> 16.65.536
Number of Host -> 65.534
How I solve problem to get Network Address ?
Firs we need change this number 172.30.1.33 to Binary Number
you will get this change 172.30.1.33 = 10101100. 00011110. 00000001. 00100001
27=128

26=64

25=32

24=16

23=8

22=4

21=2

20=1

Take the IP address 172.30.1.33 and the start with 1 st octet (172)
Example
2 172

2 86

2 43

2 21

2 10

2 30

=10101100

2 15

2 7

2 3

2 1

1
=00011110

1
=000000001

2 33

2 16

2 8

2 4

2 2

2 1

=10000100

Where I get number 1 and 0 ? you use calculate and if you get the point thats
mean you the balance another meaning you get that number 1 and if you doesnt
get the point you should 0

NETWORK ADDRESS
To you get the network address , you should combine that IP address binary
number with network mask binary number. Before that you should change that
network mask decimal to binary number
After change network mask decimal to binary number you will get
Network mask
: 255.255.0.0 (Decimal) ->
11111111.11111111.00000000.0000000(Binary)
And now you can start calculate to get your Network Address
Ip address
Network mask

10101100. 00011110. 00000001. 00100001


11111111. 11111111. 00000000. 0000000
__________________________________
10101100. 00011110. 00000000. 00000000 change this

number to decimal
1. Your network adrress is 172.255.0.0
2. 0 and 0 means 0
3. 1 and 0 means 0

BROADCAST ADDRESS
Network address is easy you just combine like network mask combine but this one
you combine network address with network mask
Example :N.address
N.mask

10101100. 00011110. 00000000. 00000000


11111111. 11111111. 00000000. 00000000
___________________________________
10101100. 00011110. 11111111. 11111111

Note if you can see , you seem on back number is the different number . That we
can see the different broadcast address with network mask. If this binary is the
same number thats mean is 1
1. Your broadcast address is 172. 30. 255. 255

Number of Host Bits


Step to get Total Number of Host Bits inside Network mask :Using network mask (11111111. 11111111. 00000000. 0000000) and
continue with using this formula

Formula : 2N - 2
Total number of mask is 8+8=16
N
= 16
16
2
=65 536
16
2 -2 =65 534

Problem 2

In problem 2 until 6 you just follow my step how I solve 6 problem. If you dont
understand you can read my problem number 1 to know more detail.

Host IP Address
Network Mask
Network address
: 172.
Network broadcast address
Total Number of Host Bits : 256
Number of Host

: 172. 30. 1. 33
:255. 255. 255. 0
30. 1. 0
: 172. 30. 1. 255
: 254

First you need change decimal to binary number to get Network address

IP ADDRESS
On network address you just copy on problem 1
and you will get 172.30.1.33 = 10101100. 00011110. 00000001. 00100001

NETWORK MASK
you need change network mask decimal to binary and you will get
255. 255. 255. 0 = 11111111. 11111111. 11111111. 00000000

NETWORK ADDRESS
Combine binary number IP Address with network mask
IP Address : 10101100. 00011110. 00000001. 00100001
Network mask
: 11111111. 11111111. 11111111. 00000000
_____________________________________
10101100. 00011110. 00000001. 00000000 = 172. 30. 1. 0

BROADCAST ADRRESS
Combine binary number network address and network mask
N.Address
N.Mask

: 10101100. 00011110. 00000001. 00000000


: 11111111. 11111111. 11111111. 00000000
____________________________________
10101100. 00011110. 00000001. 11111111
= 172. 30. 1. 255

Number of Host Bits


Total number of mask is 8

N
=8
8
2
= 256
8
2 -2 = 254

Problem 3
Host IP Address
Network Mask
Network Address
: 192.
Network Broadcast Address
Total Number of Host Bits : 256
Number of Host

: 192. 168. 10. 234


: 255. 255. 255. 0
168. 10. 0
: 192. 168. 10 .255
: 254

IP Address
2

192

96

48

24

12

=1100000

168

84

42

21

10

2 10

2 1
has 8 bits)

=10101000

=10100000 (you must put 0 to create the byte. 1 byte

234

117

58

29

14

=11101010

192. 168. 10. 234 = 11000000. 10101000. 10100000. 11101010

NETWORK MASK
255. 255. 255. 0 : 11111111. 11111111. 11111111. 00000000

NETWORK ADDRESS
IP Address : 11000000. 10101000. 10100000. 11101010
Network Mask
: 11111111. 11111111. 11111111. 00000000
____________________________________
11000000. 10101000. 10100000. 0000000
After you change decimal you will get the binary number is 192. 168. 10. 0

BROADCAST ADRRESS
N.Address
N.Mask

: 11000000. 10101000. 10100000. 0000000


: 11111111. 11111111. 11111111. 0000000
______________________________________
11000000. 10101000. 10100000. 1111111

After change decimal to binary you will get 192. 168. 10 .255

Number of Host Bits


Total number of mask is 8

N
=8
8
2
= 256
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 536
Number of host
: 65 534

IP ADDRESS
2 172

2 86

2 43

2 21

2 10

2 5

2 2

2 1

2 17

99

2 8

49

2 4

24

2 2

12

2 1

=10101100

=10001000

71

35

17

=1100011

=10001110

172. 17. 0. 0 : 10101100. 10001000. 11000110. 10001110

NETWORK MASK
255. 225. 0. 0 : 11111111. 11111111. 00000000. 00000000

NETWORK ADDRESS
IP Address : 10101100. 10001000. 11000110. 10001110
Network Mask
: 11111111. 11111111. 00000000. 00000000
_____________________________________
10101100. 10001000. 00000000. 00000000
Binary
Decimal

10101100. 10001000. 00000000. 00000000


172. 17. 0. 0

BROADCAST ADRRESS
N.Address
N.Mask

Binary
Decimal

: 10101100. 10001000. 00000000. 00000000


: 11111111. 11111111. 00000000. 00000000
_____________________________________
10101100. 10001000. 11111111. 11111111
10101100. 10001000. 11111111. 11111111
172. 17. 255. 255

Number of Host Bits


Total number of mask is 8+8=16
N
= 16
16
2
=65 536
16
2 -2 =65 534

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 : 65 536
Number of host
: 65 534

IP ADDRESS
2

192

96

48

24

12

=11000000

168

84

42

21

10

=10101000

= 1100000

2 219

2 109

2 54

2 27

2 13

2 6

2 3

2 1

=11011011

192. 168. 3. 219 : 11000000. 10101000. 1100000. 11011011

NETWORK MASK
255. 255. 0. 0 : 11111111. 11111111. 0000000. 00000000

NETWORK ADDRESS
IP Address : 11000000. 10101000. 1100000. 11011011
Network mask
: 11111111. 11111111. 0000000. 00000000
____________________________________
11000000. 10101000. 0000000. 00000000
=192. 168. 0.0

BROADCAST ADRRESS
N.Address
N.Mask

: 11000000. 10101000. 0000000. 00000000


: 11111111. 11111111. 0000000. 00000000
___________________________________
11000000. 10101000. 1111111. 11111111
=192. 168. 255. 255

Number of Host Bits


Total number of mask is 8+8=16
N
= 16
16
2
=65 536
16
2 -2 =65 534

Problem 6
Host IP Address
Network Mask
Network Address
: 192.
Network broadcast address
Total number of host bits : 32
Number of hosts
: 30

: 192. 168. 3. 219


: 255. 255. 0. 0
168. 3. 219
: 192. 168. 3. 223

IP ADDRESS
192. 168. 3. 219 : 11000000. 10101000. 1100000. 11011011

NETWORK MASK
255. 255. 255. 244 : 11111111. 11111111. 11111111. 11100000

NETWORK ADDRESS
IP Address : 11000000. 10101000. 11000000. 11011011
Network mask
: 11111111. 11111111. 11111111. 11100000
____________________________________
11000000. 10101000. 11000000. 11011011
=192. 168. 3. 219

BROADCAST ADRRESS
N.Address
N.Mask

: 11000000. 10101000. 11000000. 11011011


: 11111111. 11111111. 11111111. 11100000
______________________________________
11000000. 10101000. 11000000. 11011111

=192. 168. 3. 223

Number of Host Bits


Total number of mask is 5
N
=5
5
2
= 32
5
2 -2 = 30