You are on page 1of 30

IP ADDRESS CALCULATING

TASK 1
(PROBLEM 1)
GIVEN :
Host IP Address 172.30.1.33
Subnet Mask 255.255.255.0

FIND :
a) Number of subnet bits
b) Number of subnet
c) Number of host bit per subnet
d) Number of usable host per subnet
e) Subnet address for this IP address
f) IP address of first host
g) IP address of last host
h) Broadcast address for this subnet

ANSWERS
a) Number of subnet bits

255.255.255.0 8 bit

11111111.11111111.11111111.00000000
- Calculate the number 0 at the last range
- Number of subnet bits is = 8 bits

b) Number of subnet

255.255.255.0

11111111.11111111.11111111.00000000
8 bit

- eg : 2n (number bit)
- Number of subnet is = 28

c) Number of host bit per subnet

28 = 256 subnet
Number of host bit per subnet is = 256 subnet

d) Number of usable host per subnet

= 28 2
= 256 2
= Number of usable host
Per subnet is = 254 subnet
e) Subnet address for this IP address

Convert IP address and subnet mask from decimal number to binary

IP address - 172 . 30 . 1 . 33

10101100 . 00000011 . 00000001 . 00100001

Subnet mask - 255 . 255 . 255 . 0

11111111 . 11111111 . 11111111 . 00000000

Multiply operations (ip address and subnet mask) to get subnet address for this IP
address

10101100 . 00000011 . 00000001 . 00100001


11111111 . 11111111 . 11111111 . 00000000
______________________________________________
10101100 . 00011110 . 00000001 . 00000000

172 . 30 . 1 . 0

Subnet address for IP address is = 172.30.1.0


f) IP address of first host

To get the first host you need to added 1 to the last bit of value ip address

IP address-> 172 . 30 . 1 . 0
+ 1
172 . 30 . 1 . 1

Ip address of first host is = 172.30.1.1

g) IP address of last host

- To get the last host you need to take and added the number of usable
host per subnet

172 . 30 . 1 . 0
+ 254
172 . 30 . 1 . 254

- Ip address of last host is = 172.30.1.254

h) Broadcast address for this subnet

For broadcast address, you must added 1 at the last bit in the last host of ip address

172 . 30 . 1 . 254
+ 1
172 . 30 . 1 . 255

Broadcast address for this subnet is = 172.30.1.255


(PROBLEM 2)
GIVEN :
Host IP Address 172.30.1.33
Subnet Mask 255.255.255.252

FIND :
a) Number of subnet bits
b) Number of subnet
c) Number of host bit per subnet
d) Number of usable host per subnet
e) Subnet address for this IP address
f) IP address of first host
g) IP address of last host
h) Broadcast address for this subnet

ANSWERS
a) Number of subnet bits

255.255.255.252 2 bit

11111111.11111111.11111111.11111100
- Calculate the number 0 at the last range
- Number of subnet bits is = 2 bits
b) Number of subnet

255.255.255.252

11111111.11111111.11111111.11111100
2 bit

- eg : 2n (number bit)
- Number of subnet is = 22

c) Number of host bit per subnet

22 = 4 subnet
Number of host bit per subnet is = 4 subnet

d) Number of usable host per subnet

= 22 2
=42
= Number of usable host
Per subnet is = 2 subnet
e) Subnet address for this IP address

Convert IP address and subnet mask from decimal number to binary

IP address - 172 . 30 . 1 . 33

10101100 . 00000011 . 00000001 . 00100001

Subnet mask - 255 . 255 . 255 . 252

11111111 . 11111111 . 11111111 . 11111100

Multiply operations (ip address and subnet mask) to get subnet address for this IP
address

10101100 . 00000011 . 00000001 . 00100001


11111111 . 11111111 . 11111111 . 11111100
______________________________________________
10101100 . 00011110 . 00000001 . 00100000

172 . 30 . 1 . 32

Subnet address for IP address is = 172.30.1.32


f) IP address of first host

To get the first host you need to added 1 to the last bit of value ip address

IP address-> 172 . 30 . 1 . 32
+ 1
172 . 30 . 1 . 33

Ip address of first host is = 172.30.1.33

g) IP address of last host

- To get the last host you need to take and added the number of usable
host per subnet

172 . 30 . 1 . 32
+ 2
172 . 30 . 1 . 34

- Ip address of last host is = 172.30.1.34

h) Broadcast address for this subnet

For broadcast address, you must added 1 at the last bit in the last host of ip address

172 . 30 . 1 . 34
+ 1
172 . 30 . 1 . 35

Broadcast address for this subnet is = 172.30.1.35


(PROBLEM 3)
GIVEN :
Host IP Address 192.192.10.234
Subnet Mask 255.255.255.0

FIND :
a) Number of subnet bits
b) Number of subnet
c) Number of host bit per subnet
d) Number of usable host per subnet
e) Subnet address for this IP address
f) IP address of first host
g) IP address of last host
h) Broadcast address for this subnet

ANSWERS
a) Number of subnet bits

255.255.255.0 8 bit

11111111.11111111.11111111.00000000
- Calculate the number 0 at the last range
- Number of subnet bits is = 8 bits
b) Number of subnet

255.255.255.0

11111111.11111111.11111111.00000000
8 bit

- eg : 2n (number bit)
- Number of subnet is = 28

c) Number of host bit per subnet

28 = 256 subnet
Number of host bit per subnet is = 256 subnet

d) Number of usable host per subnet

= 28 2
= 256 2
= Number of usable host
Per subnet is = 254 subnet
e) Subnet address for this IP address

Convert IP address and subnet mask from decimal number to binary

IP address - 192 . 192 . 10 . 234

11000000 . 11000000 . 00001010 . 11101010

Subnet mask - 255 . 255 . 255 . 0

11111111 . 11111111 . 11111111 . 00000000

Multiply operations (ip address and subnet mask) to get subnet address for this IP
address

11000000 . 11000000 . 00001010 . 11101010


11111111 . 11111111 . 11111111 . 00000000
______________________________________________
11000000 . 11000000 . 00001010 . 00000000

192 . 192 . 10 . 0

Subnet address for IP address is = 192.192.10.0


f) IP address of first host

To get the first host you need to added 1 to the last bit of value ip address

IP address-> 192 . 192 . 10 . 0


+ 1
192 . 192 . 10 . 1

Ip address of first host is = 192.192.10.1

g) IP address of last host

- To get the last host you need to take and added the number of usable
host per subnet

192 . 192 . 10 . 0
+ 254
192 . 192 . 10 . 254

- Ip address of last host is = 192.192.10.254

h) Broadcast address for this subnet

For broadcast address, you must added 1 at the last bit in the last host of ip address

192 . 192 . 10 . 254


+ 1
12 . 192 . 10 . 255

Broadcast address for this subnet is = 192.192.10.255


(PROBLEM 4)
GIVEN :
Host IP Address 172.17.99.71
Subnet Mask 255.255.255.0

FIND :
a) Number of subnet bits
b) Number of subnet
c) Number of host bit per subnet
d) Number of usable host per subnet
e) Subnet address for this IP address
f) IP address of first host
g) IP address of last host
h) Broadcast address for this subnet

ANSWERS
a) Number of subnet bits

255.255.255.0 8 bit

11111111.11111111.11111111.00000000
- Calculate the number 0 at the last range
- Number of subnet bits is = 8 bits
b) Number of subnet

255.255.255.0

11111111.11111111.11111111.00000000
8 bit

- eg : 2n (number bit)
- Number of subnet is = 28

c) Number of host bit per subnet

28 = 256 subnet
Number of host bit per subnet is = 256 subnet

d) Number of usable host per subnet

= 28 2
= 256 2
= Number of usable host
Per subnet is = 254 subnet
e) Subnet address for this IP address

Convert IP address and subnet mask from decimal number to binary

IP address - 172 . 17 . 99 . 71

10101100 . 00010001 . 01100011 . 01000111

Subnet mask - 255 . 255 . 255 . 0

11111111 . 11111111 . 11111111 . 00000000

Multiply operations (ip address and subnet mask) to get subnet address for this IP
address

10101100 . 00010001 . 01100011 . 01000111


11111111 . 11111111 . 11111111 . 00000000
______________________________________________
10101100 . 00010001 . 01100011 . 00000000

172 . 17 . 99 . 0

Subnet address for IP address is = 172.17.99.0


f) IP address of first host

To get the first host you need to added 1 to the last bit of value ip address

IP address-> 172 . 17 . 99 . 0
+ 1
172 . 17 . 99 . 1

Ip address of first host is = 172.17.99.1

g) IP address of last host

- To get the last host you need to take and added the number of usable
host per subnet

172 . 17 . 99 . 0
+ 254
172 . 17 . 99 . 254

- Ip address of last host is = 172.17.99.254

h) Broadcast address for this subnet

For broadcast address, you must added 1 at the last bit in the last host of ip address

172 . 17 . 99 . 254
+ 1
172 . 17 . 99 . 255

Broadcast address for this subnet is = 172.17.99.255


(PROBLEM 5)
GIVEN :
Host IP Address 192.168.3.219
Subnet Mask 255.255.255.0

FIND :
a) Number of subnet bits
b) Number of subnet
c) Number of host bit per subnet
d) Number of usable host per subnet
e) Subnet address for this IP address
f) IP address of first host
g) IP address of last host
h) Broadcast address for this subnet

ANSWERS
a) Number of subnet bits

255.255.255.0 8 bit

11111111.11111111.11111111.00000000
- Calculate the number 0 at the last range
- Number of subnet bits is = 8 bits
b) Number of subnet

255.255.255.0

11111111.11111111.11111111.00000000
8 bit

- eg : 2n (number bit)
- Number of subnet is = 28

c) Number of host bit per subnet

28 = 256 subnet
Number of host bit per subnet is = 256 subnet

d) Number of usable host per subnet

= 28 2
= 256 2
= Number of usable host
Per subnet is = 254 subnet
e) Subnet address for this IP address

Convert IP address and subnet mask from decimal number to binary

IP address - 192 . 168 . 3 . 219

11000000 . 10101000 . 00000011 . 11011011

Subnet mask - 255 . 255 . 255 . 0

11111111 . 11111111 . 11111111 . 00000000

Multiply operations (ip address and subnet mask) to get subnet address for this IP
address

11000000 . 10101000 . 00000011 . 11011011


11111111 . 11111111 . 11111111 . 00000000
______________________________________________
11000000 . 10101000 . 00001010 . 00000000

192 . 168 . 3 . 0

Subnet address for IP address is = 192.168.3.0


f) IP address of first host

To get the first host you need to added 1 to the last bit of value ip address

IP address-> 192 . 168 . 3 . 0


+ 1
192 . 168 . 3 . 1

Ip address of first host is = 192.168.3.1

g) IP address of last host

- To get the last host you need to take and added the number of usable
host per subnet

192 . 168 . 3 . 0
+ 254
192 . 168 . 3 . 254

- Ip address of last host is = 192.168.3.254

h) Broadcast address for this subnet

For broadcast address, you must added 1 at the last bit in the last host of ip address

192 . 168 . 3 . 254


+ 1
12 . 168 . 3 . 255

Broadcast address for this subnet is = 192.168.3.255


(PROBLEM 6)
GIVEN :
Host IP Address 192.168.3.219
Subnet Mask 255.255.255.252

FIND :
a) Number of subnet bits
b) Number of subnet
c) Number of host bit per subnet
d) Number of usable host per subnet
e) Subnet address for this IP address
f) IP address of first host
g) IP address of last host
h) Broadcast address for this subnet

ANSWERS
a) Number of subnet bits

255.255.255.252 2 bit

11111111.11111111.11111111.11111100
- Calculate the number 0 at the last range
- Number of subnet bits is = 2 bits
b) Number of subnet

255.255.255.252

11111111.11111111.11111111.11111100
2 bit

- eg : 2n (number bit)
- Number of subnet is = 22

c) Number of host bit per subnet

22 = 4 subnet
Number of host bit per subnet is = 4 subnet

d) Number of usable host per subnet

= 22 2
=42
= Number of usable host
Per subnet is = 2 subnet
e) Subnet address for this IP address

Convert IP address and subnet mask from decimal number to binary

IP address - 192 . 168 . 3 . 219

11000000 . 10101000 . 00000011 . 11011011

Subnet mask - 255 . 255 . 255 . 252

11111111 . 11111111 . 11111111 . 11111100

Multiply operations (ip address and subnet mask) to get subnet address for this IP
address

11000000 . 10101000 . 00000011 . 11011011


11111111 . 11111111 . 11111111 . 11111100
______________________________________________
11000000 . 10101000 . 00001010 . 11011011

192 . 168 . 3 . 219

Subnet address for IP address is = 192.168.3.219


f) IP address of first host

To get the first host you need to added 1 to the last bit of value ip address

IP address-> 192 . 168 . 3 . 219


+ 1
192 . 168 . 3 . 220

Ip address of first host is = 192.168.3.220

g) IP address of last host

- To get the last host you need to take and added the number of usable
host per subnet

192 . 168 . 3 . 219


+ 2
192 . 168 . 3 . 221

- Ip address of last host is = 192.168.3.221

h) Broadcast address for this subnet

For broadcast address, you must added 1 at the last bit in the last host of ip address

192 . 168 . 3 . 221


+ 1
12 . 168 . 3 . 222

Broadcast address for this subnet is = 192.168.3.222


TASK 2
Find the subnet mask and refer the IP address below:

1) 192.17.99.11/26
- 192.17.99.11/26 which means IP address with subnet mask
=255.255.255.192
- Where I did the 192 in last range in subnet mask?
- Using magic number below and using calculator :-

Magic Number (mesti hafal)

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

- /26 means 26-bit subnet mask. In other words, the subnet mask
is :
- Convert binary numbers to decimal using calculator

= 11111111 . 11111111 . 11111111 . 11000000

255 . 255 . 255 . 192


Subnet mask is = 255.255.255.192
2) 192.17.10.1/25
- 192.17.99.11/25 which means IP address with subnet mask
=255.255.255.128
- Where I did the 128 in last range in subnet mask?
- Using magic number below and using calculator :-

Magic Number (mesti hafal)

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

- /25 means 25-bit subnet mask. In other words, the subnet mask
is :
- Convert binary numbers to decimal using calculator
-
= 11111111 . 11111111 . 11111111 . 10000000

255 . 255 . 255 . 128

Subnet mask is = 255.255.255.128


3) 192.17.40.1/28
- 192.17.99.11/28 which means IP address with subnet mask
=255.255.255.240
- Where I did the 240 in last range in subnet mask?
- Using magic number below and using calculator :-

Magic Number (mesti hafal)

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

- /28 means 28-bit subnet mask. In other words, the subnet mask
is :
- Convert binary numbers to decimal using calculator

= 11111111 . 11111111 . 11111111 . 11110000

255 . 255 . 255 . 240

Subnet mask is = 255.255.255.240


4) 192.168.1.1/26
- 192.17.99.11/26 which means IP address with subnet mask
=255.255.255.128
- Where I did the 128 in last range in subnet mask?
- Using magic number below :-

Magic Number (mesti hafal)

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

- /26 means 26-bit subnet mask. In other words, the subnet mask
is :
- Convert binary numbers to decimal using calculator

= 11111111 . 11111111 . 11111111 . 10000000

255 . 255 . 255 . 128

Subnet mask is = 255.255.255.128


5) 192.168.1.64/26
- 192.17.99.11/26 which means IP address with subnet mask
=255.255.255.192
- Where I did the 192 in last range in subnet mask?
- Using magic number below :-

Magic Number (mesti hafal)

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

- /26 means 26-bit subnet mask. In other words, the subnet mask
is :
- Convert binary numbers to decimal using calculator

= 11111111 . 11111111 . 11111111 . 11000000

255 . 255 . 255 . 192

Subnet mask is = 255.255.255.192


6) 192.168.1.128/26
- 192.17.99.11/26 which means IP address with subnet mask
=255.255.255.192
- Where I did the 192 in last range in subnet mask?
- Using magic number below :-

Magic Number (mesti hafal)

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

- /26 means 26-bit subnet mask. In other words, the subnet mask
is :
- Convert binary numbers to decimal using calculator

= 11111111 . 11111111 . 11111111 . 11000000

255 . 255 . 255 . 192

Subnet mask is = 255.255.255.192

You might also like