Вы находитесь на странице: 1из 21

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 28 / 256
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

00000000
8 Bit
11111111
11111111

11111111

16-8 = 8 Bit
b)Number of subnet

255.255.255.0

00000000
8 Bit
11111111
11111111

11111111

Formula =2n

28 = 256 subnet (n is number of bit)

c)Number of host bit per subnet

Formula = 2n(0)

bilangan bit adalah jumlah 0 pada oktek terakhir

11111111.11111111.1111111.00000000
=8

d)Number of usable host per subnet

Formula = 2n-2

28= 256-2
=254 usable host
e)Subnet address

-Convert IP address and subnet mask from decimal number to binary

IP address decimal =172.30.1.33 Subnet mask=255.255.255.0

172.30.1.33 255.255.255.0

00100001

10101100 11111111 00000000


00000001
11111111
00011110 11111111

-Multiply operations (ip address and subnet mask) to get subnet address for this Ip Address

10101100 00011110 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 for first host

Add 1 to the last bit of value Ip address to get the first host :
Example :

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

Add the number of usable host per subnet to get the last host

172 . 30 . 1 . 0
+ 254 (number of usable)
172 . 30 . 1 . 254

Ip address of last host is = 172.30.1.254

h)Broadcast address for this subnet

Add 1 at the last bit in the last host of ip address for broadcast address

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

Broadcast address for subnet is = 172.30.1.255


Task 2
Problem 2

Given:

Host IP address 172.30.1.33


Subnet Mask 255.255.255.252

FIND:

a) Number of subnet bits 14 Bit


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 on this subnet 172.30.1.33
g) Ip address of last host on this subnet 172.30.1.34
h) Broadcast address for this subnet 172.30.1.35

a)Number of subnet bits

255.255.255.252
14 bit

11111100

11111111 11111111
11111111

11111111

8+8+8+8 = 32 bit
16-2 = 14 bit
b)Number of subnet

255.255.255.252
14 bit

11111100

11111111 11111111
11111111
Formul

11111111

Formula =2n

214 = 16384 subnet (n is number of bit)

c)Number of host bit per subnet

Formula = 2n(0)

bilangan bit adalah jumlah 0 pada oktek terakhir

11111111 .11111111 .11111111. 11111100

=2

d)Number of usable host per subnet

Formula = 2n-2

22= 4-2
=2 usable host
e)Subnet address

-Convert IP address and subnet mask from decimal number to binary

IP address decimal =172.30.1.33 Subnet mask=255.255.255.252

172.30.1.33 255.255.255.252

00100001

10101100 11111111 11111100


00000001
11111111
00011110 11111111

-Multiply operations (ip address and subnet mask) to get subnet address for this Ip Address

10101100 00011110 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 for first host

Add 1 to the last bit of value Ip address to get the first host :
Example :

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

Add the number of usable host per subnet to get the last host

172 . 30 . 1 . 32
+ 2 (number of usable)
172 . 30 . 1 . 34

Ip address of last host is = 172.30.1.34

h)Broadcast address for this subnet

Add 1 at the last bit in the last host of ip address for broadcast address

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

Broadcast address for subnet is = 172.30.1.35


Task 3
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 on this subnet 192.192.10.1
g) Ip address of last host on this subnet 192.192.10.254
h) Broadcast address for this subnet 192.192.10.255

a)Number of subnet bits

255.255.255.0

00000000
8 Bit
11111111
11111111

11111111

16-8 = 8 Bit
b)Number of subnet

255.255.255.0

00000000
8 Bit
11111111
11111111

11111111

Formula =2n

28 = 256 subnet (n is number of bit)

c)Number of host bit per subnet

Formula = 2n(0)

bilangan bit adalah jumlah 0 pada oktek terakhir

11111111.11111111.1111111.00000000
=8

d)Number of usable host per subnet

Formula = 2n-2

28= 256-2
=254 usable host
e)Subnet address

-Convert IP address and subnet mask from decimal number to binary

IP address decimal =192.192.10.234 Subnet mask=255.255.255.0

192.192.10.234 255.255.255.0

11101010

11000000 00001010 11111111 00000000

11111111
11000000 11111111

-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 for first host

Add 1 to the last bit of value Ip address to get the first host :
Example :

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

Add the number of usable host per subnet to get the last host

192 . 192 . 10 . 0
+ 254 (number of usable)
192 . 192 . 10 . 254

Ip address of last host is = 192.192.10.254

h)Broadcast address for this subnet

Add 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 subnet is = 192.192.10.255


Task 4
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.168.3.0
f) Ip address of first host on this subnet 192.168.3.1
g) Ip address of last host on this subnet 192.168.3.254
h) Broadcast address for this subnet 192.168.3.255

a)Number of subnet bits

255.255.255.0

00000000
8 Bit
11111111
11111111

11111111

16-8 = 8 Bit
b)Number of subnet

255.255.255.0

00000000
8 Bit
11111111
11111111

11111111

Formula =2n

28 = 256 subnet (n is number of bit)

c)Number of host bit per subnet

Formula = 2n(0)

bilangan bit adalah jumlah 0 pada oktek terakhir

11111111.11111111.1111111.00000000
=8

d)Number of usable host per subnet

Formula = 2n-2

28= 256-2
=254 usable host
e)Subnet address

-Convert IP address and subnet mask from decimal number to binary

IP address decimal =192.168.3.219 Subnet mask=255.255.255.0

192.168.3.219 255.255.255.0

11011011

11000000 11111111 00000000


00000011
11111111
10101000 11111111

-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 00000011 00000000

192 168 3 0

Subnet address for IP address is = 192.168.3.0


f) Ip Address for first host

Add 1 to the last bit of value Ip address to get the first host :
Example :

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

Add the number of usable host per subnet to get the last host

192 . 168 . 3 . 0
+ 254 (number of usable)
192 . 168 . 3 . 254

Ip address of last host is = 192.168.3.254

h)Broadcast address for this subnet

Add 1 at the last bit in the last host of ip address for broadcast address

192 . 168 . 3 . 254


+ 1
192 . 168 . 3 . 255

Broadcast address for subnet is = 192.168.3.2


Task 5
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 on this subnet 192.168.3.217
g) Ip address of last host on this subnet 192.168.3.219
h) Broadcast address for this subnet 192.168.3.220

a)Number of subnet bits

255.255.255.252
14 bit

11111100

11111111 11111111
11111111

11111111

8+8+8+8 = 32 bit
32-18 = 14 bit
b)Number of subnet

255.255.255.252
14 bit

11111100

11111111 11111111
11111111
Formul

11111111

Formula =2n

214 = 16384 subnet (n is number of bit)

c)Number of host bit per subnet

Formula = 2n(0)

bilangan bit adalah jumlah 0 pada oktek terakhir

11111111.11111111.1111111.11111100
=2

d)Number of usable host per subnet

Formula = 2n-2

22= 4-2
=2 usable host
e)Subnet address

-Convert IP address and subnet mask from decimal number to binary

IP address decimal =192.168.3.219 Subnet mask=255.255.255.252

192.168.3.219 255.255.255.252

11011011

11000000 11111111 11111100


00000011
11111111
10101000 11111111

-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 00000011 11011000

192 168 3 216

Subnet address for IP address is = 192.168.3.216


f) Ip Address for first host

Add 1 to the last bit of value Ip address to get the first host :
Example :

192 . 168 . 3 . 216


+ 1
192 . 168 . 3 . 217
Ip address of first host is = 192.168.3.217

g)Ip Address of last host

Add the number of usable host per subnet to get the last host

192 . 168 . 3 . 217


+ 2 (number of usable)
192 . 168 . 3 . 219

Ip address of last host is = 192.168.3.219

h)Broadcast address for this subnet

Add 1 at the last bit in the last host of ip address for broadcast address

192 . 168 . 3 . 219


+ 1
192 . 168 . 3 . 220

Broadcast address for subnet is = 192.168.3.220

Вам также может понравиться