You are on page 1of 25

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 8 bit


b)Number of Subnet 256 Subnet
c)Number of Host Bit Per Subnet 8
d)Number of Usable Host Per Subnet 254
e)Subnet Address for this IP Address 172.30.1.0
f)IP Address of First Host on this Subnet 172.30.1.1
g)IP Address of Last Host on this Subnet 172.30.1.254
h)Broadcast Address for this Subnet 172.30.1.255

a)Number Of Subnet bits

255.255.255.0

11111111. 11111111.11111111.00000000

8 bit

8+8+8+8=32 bit
32-24=8 bit
*24 bit nombor 1(kira yang ada 1 sahaja). Lapan bit=8+8+8=24 bit
b) Number Of Subnet

255.255.255.0

11111111. 11111111.11111111.00000000

8 Bit

Formula=2n (n is the number of bit)


28=256 subnet

c)Number of Host Bit Per Subnet

number of Host Bits per Subnet


Formula 2n(0)
bit is the total of 0 at the last host
11111111. 11111111.11111111.00000000
=8 bit

d) Number of Usable Host Per Subnet


=28-2
=256-2
=Number of Usable Host Per Subnet is=254 Subnet
e)Subnet Address

IP Address=172.30.1.33

172.30.1.33

10101100.00011110.00000001.00100001
Subnet Mask=11111111.11111111.11111111.00000000

255.255.255.0

11111111.11111111.11111111.00000000
IP Address and Subnet Mask should be multiply to get Subnet Address for this IP
Adress.

10101100 . 00011110 . 00000001 . 00100001


11111111 . 11111111 . 11111111 . 00000000
______________________________________
10101100 . 00011110 . 00000001 . 00000000

172 . 30 . 1 . 0
Subnet Addres for IP Address is=172.30.1.0

f) IP Address of First Host

You must added 1 to the last bit of value Ip Address to get the first host.

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

You must take and added the number of usable host per subnet to get the last host
Number of usable host per subnet is 254

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

You must added 1 at the last bit in the last host of Ip Address to get Broadcast
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 14bits


b) Number of Subnet 16384
c) Number of Host Bit Per Subnet 2
d) Number of Usable Host Per Subnet 2
e) Subnet Address for this IP Address 172.30.1.32
f) IP Address of First Host 172.30.1.33
g) IP Address of Lst Host 172.30.1.34
h) Broadcast Address for this Subnet 172.30.1.35

a) Number of Subnet Bits

255.255.255.252

11111111.1111111.1111111.11111100

8 bits 6 bit

*calculate Bit Number


*8 bits+6 bit=14bits
b) Number of Subnet

255.255.255.252

11111111.11111111.11111111.11111100

2n(n is number of bit)


Number of subnet is 214=16348

c) number of Host Bits per Subnet


Formula 2n(0)
bit is the total of 0 at the last host
11111111.11111111.11111111.11111100
number of host bits per subnet is= 2

d) Number of Usable host per subnet

= 22-2

=4-2

=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

Subnet Mask= 255.255.255.252

172 . 30 . 1 . 33

10101100.00011110.00000001.00100001
255 . 255 . 255 . 252

11111111.11111111.11111111.11111100
You must use multiply operation to get subnet address for this IP
address between IP Address and Subnet Mask.

10101100.00011110.00000001.00100001
11111111.11111111.11111111.11111100

10101100.00011110.00000001.00100000

172 . 30 . 1 . 32
Subnet Addres for IP address is=172.30.1.32
f) IP address of First Host
You need to added 1 to the last bit of value IP address to get the first
host.

172 . 30 . 1 . 32
+ 1

172 . 30 . 1 . 33

IP Addressof First host is=172.30.1.33

g) IP Address of Last Host

You need to take and added the number of usable host per subnet to get
the last host.

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

You must added 1 for broadcast address 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 8


b)Number of Subnet 256
c)Number of host bit Per Subnet 8
d)Number of usable host per Subnet 254
e)Subnet Address for this IP Address 192.192.10.0
f)IP Address of first Host 192.192.10.1
g)IP Address of Last Host 192.192.10.254
h)Broadcast address for this Subnet 192.192.10.255

a)Number of Subnet bits

255.255.255.0

11111111.11111111.11111111.00000000

8bits

*Calculate bit Number


*Subnet bits=8 bit
b) Number of Subnet

255.255.255.0

11111111.11111111.11111111.000000000
8 bit
*2n (n is the number of bit)

*Number of subnet is = 28
* 8
2 =256 Subnet

c)Number of host bit per Subnet

Formula 2n(0)
bit is the total of 0 at the last host
11111111.11111111.11111111.00000000
=8 bit

d) Number of Usable host per Subnet

=28-2

=256-2

=254 is the number of usable host Per subnet


e) Subnet address for this IP Address

*Convert IP Address and Subnet Mask from Decimal number to Binary Number

IP Address=192.192.10.234

Subnet Mask=255.255.255.0

192.192.10.234

11000000.11000000.00001010.11101010
255.255.255.0

11111111.11111111.1111111.0000000
You must use multiply operation to get subnet address for this IP
Address between IP Address and Subnet Mask.

11000000.11000000.00001010.11101010
11111111.11111111.11111111.00000000
11000000.11000000.00001010.00000000

192 . 192 . 10 . 0
*Subnet Address for IP Address=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

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

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

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

* You have to added 1 at the last bit in the last host of IP Address for
Broadcast Address

192.192.10.254
+ 1
192.192.10.255
-Broadcast Address for this Subnet is 192.192.10.255
(PROBLEM 4)

GIVEN:
Host IP Address 192.168.3.219
Subnet Mask 255.255.255.0

FIND:

a) Number of Subnet bits 8


b)Number of Subnet 256
c)Number of Host bit Per Subnet 8
d)Number of Usable Host Per Subnet 254
e) Subnet Address for this IP Address 192.163.3.0
f)IP Address of First Host 192.168.3.1
g)IP Address of Last Host 192.168.3.254
h) Broadcast Address for this Subnet 192.168.3.255

a)Number of Subnet Bits

255.255.255.0

11111111.11111111. 11111111.00000000
8 bits
*16-8=8bit
b) Number of Subnet

255.255.255.0

11111111.11111111. 11111111.00000000
8 bit

*2n(n is the number of bits)

*28=256 Subnet (n is the number of bit)

c) Number of Host bit Per Subnet


Formula 2n(0)
bit is the total of 0 at the last host
11111111.11111111.11111111.00000000
=8 bit

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
IP Address=192.168.3.219

Subnet Mask=255.255.255.0

192.168.3.219

11000000.10101000.00000011.11011011
255.255.255.0

11111111.11111111.1111111.0000000
*You must use multiply operation to get subnet address for
this IP address between IP Address and Subnet Mask.
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

*You have to added 1 to the last bit of value IP Address to get the first host.

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

*You have to take and added the number of usable host per subnet to get the
last host.

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

*You have to added 1 at the last bit in the last host of IP Address to get
broadcast address.

192.168.3.254
+ 1
192.168.3.255
*Broadcast Address for this subnet is 192.168.3.255
(PROBLEM 5)

GIVEN:
Host IP Address 192.168.3.219
Subnet Mask 255.255.255.252

FIND:

a) Number of Subnet bits 14


b)Number of Subnet 16384
c)Number of Host bit Per Subnet 2
d)Number of Usable Host Per Subnet 2
e) Subnet Address for this IP Address 192.168.3.216
f)IP Address of First Host 192.168.3.217
g)IP Address of Last Host 192.168.3.219
h) Broadcast Address for this Subnet 192.168.3.220

a)Number of Subnet Bits

255.255.255.252

11111111.11111111. 11111111.11111100

8 bit+6 bit=14bit
b) Number of Subnet

255.255.255.252

11111111.11111111. 11111111.11111100
a=2n
214=16384 subnet (n is the number of bit)

c) Number of Host bit Per Subnet


Formula 2n(0)
bit is the total of 0 at the last host
11111111.11111111.11111111.11111100
=2 bit

d) Number of Usable host per Subnet

=22-2

=4-2

=2 Subnet is the number of Usable host


e)Subnet Address for this IP Address

* Convert IP Address and Subnet Mask from Decimal number to Binary

IP Address=192.168.3.219

Subnet Mask=255.255.255.0

192.168.3.219

11000000.10101000.00000011.11011011
255.255.255.252

11111111.11111111.1111111.11111100
*You have to use multiply operation to get subnet address for this IP address
between IP address and Subnet mask.

11000000.10101000.00000011.11011011
11111111.11111111.11111111.11111100
11000000.11000000.00000011.11011000

192 . 168 . 3 . 216

*Subnet Address for IP Address is 192.168.3.216


f) IP Address of First Host
*You must added 1 to the last bit of value IP Address to get the first Host.

192.168.3.216
+ 1
192.168.3.217

g)IP Address of Last Host

*You must take and added the number of usable host per subnet to get the
last host.

192 . 168 . 3 . 217


+ 2
192 . 168 . 3 . 219
h)Broadcast Address for this Subnet

*You must added 1 at the last bit in the last host of IP Address to get
Broadcast Address

192.168.3.219
+ 1
192.168.3.220
*Broadcast Address for this Subnet is 192.168.3.229

You might also like