You are on page 1of 17

TASK 1

PROBLEM 1
GIVEN
Host IP address
Subnet Mask

172.30.1.33
255.255.255.0

FIND
-Number Of Subnet Bits
-Number of subnet
-Number Of Host Bit Per Subnet
-Number of usable host per subnet
-Subnet address for this IP address
-IP address of first host on this subnet
-IP address of last host on this subnet
-Broadcast address for this subnet
-Number of subnet bits
255
.
255
.
255
.
0
11111111 . 11111111 . 111111111 . 000000000 . Semua bit ada lapan bit.
8 + 8 + 8 + 8 = 32 bit
32-24 = 8 bit . 24 bit nombor 1. Ada lapan bit. 8 + 8 + 8 = 24 bit

-Number of subnet
Formula = 2 n
Formula = 2

28 = 256 subnet

(n adalah bilangan bit)

-Number of host bit per subnet


Formula = 2n(0)

28 = 256 host bit

(host adalah kosong 0)

-Number of usable host per subnet


Formula = 2n - 2

28 = 256 2
= 254 usable host

-Subnet address
IP Address Decimal = 172.30.1.33 [Nak cari subnet address kena darab.
Darab dalam binary panggil
Subnet Mask Decimal =255.255.255.0 LOGICAL AND. IP address (*) subnet
mask]
IP address binary = 10101100 . 00011110 . 00000001 . 00100001
Subnet mask binary = 11111111 . 11111111 . 11111111 . 00000000
Subnet Address binary = 10101100 . 00011110 . 00000001 . 00000000
Subnet Address Decimal =
172
.
30
.
1
.
0

-IP Address of First Host


Nak cari first host kena tambah 1 tambah dalam binary panggil
LOGICAL OR. Subnet Address tambah dengan 1
Subnet address binary= 10101100.00011110.00000001.00000000
Satu binary
= 00000000.00000000.00000000.00000001
First host binary
=10101100.00011110.000000001.00000001
Fisrt host decimal
= 172.30.1.1

-IP address last host


Nak cari last host kena tambah dengan usable host. Subnet Address
tambah dengan usable host.
Subnet Address binary = 10101100.00011110.00000001.00000000
Usable host binary
= 00000000.00000000.00000000.11111110
Last host binary
=10101100.00011110.00000001.11111110
Last host decimal
=
172.30.1.254

-Broadcast Address
Nak cari broadcast kena tambah satu 1. Last host tambah dengan 1.
Last host binary =10101100.00011110.00000001.11111110
Satu binary
= 00000000.00000000.00000000.00000001
Broadcast Binary=10101100.00011110.00000001.11111111
Broadcast Decimal=172.30.1.255

PROBLEM 2
GIVEN
Host IP address
Subnet Mask

172.30.1.33
255.255.255.252

FIND
-Number Of Subnet Bits
-Number of subnet
-Number Of Host Bit Per Subnet
-Number of usable host per subnet
-Subnet address for this IP address
-IP address of first host on this subnet
-IP address of last host on this subnet
-Broadcast address for this subnet
-Number of subnet bits
255
.
255
.
255
.
0
11111111 . 11111111 . 111111111 . 11111100 . Semua bit ada lapan bit. 8
+ 8 + 8 + 8 = 32 bit
32-24 (tolak yg tiada kosong) = 8 + 6 (tambah enam bit yg ada kosong 0)
= 14 bit . 24 bit nombor 1. Ada lapan bit. 8 + 8 + 8 = 24 bit

-Number of subnet
Formula = 2 n
Formula = 2

214 = 16384 subnet

(n adalah bilangan bit)

-Number of host bit per subnet


Formula =2n(0)

22 = 4 host bit

(host adalah kosong 0)

-Number of usable host per subnet


Formula = 2n - 2

22 = 4 2
= 2 usable host

-Subnet address
IP Address Decimal = 172.30.1.33 [Nak cari subnet address kena darab.
Darab dalam binary panggil
Subnet Mask Decimal =255.255.255.0 LOGICAL AND. IP address (*) subnet
mask]
IP address binary = 10101100 . 00011110 . 00000001 . 00100001
Subnet mask binary = 11111111 . 11111111 . 11111111 . 11111100
Subnet Address binary = 10101100 . 00011110 . 00000001 . 00100000
Subnet Address Decimal =
172
.
30
.
1
.
32

-IP Address of First Host


Nak cari first host kena tambah 1 tambah dalam binary panggil
LOGICAL OR. Subnet Address tambah dengan 1
Subnet address binary = 10101100.00011110.00000001.00100000
Satu binary
= 00000000.00000000.00000000.00000001

First host binary


Fisrt host decimal

=10101100.00011110.000000001.00100001
=172.30.1.33

-IP address Last host


Nak cari last host kena tambah dengan usable host. Subnet Address
tambah dengan usable host.
Subnet Address binary
Usable host binary
Last host binary
Last host decimal

= 10101100.00011110.00000001.00100000
= 00000000.00000000.00000000.00000010
=10101100.00011110.00000001.00100010
= 172.30.1.34

-Broadcast Address
Nak cari broadcast kena tambah satu 1. Last host tambah dengan 1.
Last host binary =10101100.00011110.00000001.00100010
Satu binary
= 00000000.00000000.00000000.00000001
Broadcast Binary=10101100.00011110.00000001.00100011
Broadcast Decimal=172.30.1.35

PROBLEM 3
GIVEN

Host IP address
Subnet Mask
FIND
-Number Of Subnet Bits
-Number of subnet
-Number Of Host Bit Per Subnet
-Number of usable host per subnet
-Subnet address for this IP address
-IP address of first host on this subnet
-IP address of last host on this subnet
-Broadcast address for this subnet
-Number of subnet bits

192.192.10.234
255.255.255.0

255
.
255
.
255
.
0
11111111 . 11111111 . 111111111 . 000000000 . Semua bit ada lapan bit.
8 + 8 + 8 + 8 = 32 bit
32-24 = 8 bit . 24 bit nombor 1. Ada lapan bit. 8 + 8 + 8 = 24 bit
-Number of subnet
Formula = 2 n
Formula = 2

28 = 256 subnet

(n adalah bilangan bit)

-Number of host bit per subnet


Formula =2n(0)

28 = 256 host bit

(host adalah kosong 0)

-Number of usable host per subnet


Formula = 2n - 2

28 = 256 2
= 254 usable host

-Subnet address
IP Address Decimal = 192.192.10.234 [Nak cari subnet address kena
darab. Darab dalam binary panggil
Subnet Mask Decimal =255.255.255.0 LOGICAL AND. IP address (*) subnet
mask]
IP address binary = 11000000 . 11000000 . 00001010 . 11101010
Subnet mask binary = 11111111 . 11111111 . 11111111 . 00000000

Subnet Address binary = 11000000 . 11000000 . 00000001 . 00000000


Subnet Address Decimal =
192
.
192
.
10
.
0

-IP Address of First Host


Nak cari first host kena tambah 1 tambah dalam binary panggil
LOGICAL OR. Subnet Address tambah dengan 1
Subnet address binary=11000000.11000000.00001010.00000000
Satu binary
=00000000.00000000.00000000.00000001
First host binary
=11000000.11000000.00001010.00000001
Fisrt host decimal
=172.30.10.1

-IP address last host


Nak cari last host kena tambah dengan usable host. Subnet Address
tambah dengan usable host.
Subnet Address binary=11000000.11000000.00001010.00000000
Usable host binary
=00000000.00000000.00000000.11111110
Last host binary
=11000000.11000000.00001010.11111110
Last host decimal
=192.192.10.254

-Broadcast Address
Nak cari broadcast kena tambah satu 1. Last host tambah dengan 1.
Last host binary =11000000.11000000.00001010.11111110
satu binary = 00000000.00000000.00000000.00000001
Broadcast Binary =11000000.11000000.00001010.11111111
Broadcast Decimal = 192.192.10.255

PROBLEM 4
GIVEN

Host IP address
Subnet Mask

172.17.99.71
255.255.0.0

FIND
-Number Of Subnet Bits
-Number of subnet
-Number Of Host Bit Per Subnet
-Number of usable host per subnet
-Subnet address for this IP address
-IP address of first host on this subnet
-IP address of last host on this subnet
-Broadcast address for this subnet
-Number of subnet bit
255
.
255
.
0
.
0
11111111 . 11111111 . 00000000 . 000000000 . Semua bit ada lapan
bit. 8 + 8 + 8 + 8 = 32 bit
32-16 = 16 bit . 16 bit nombor 1. Ada lapan bit. 8 + 8 + 0 = 16 bit
Number of subnet
Formula = 2 n
Formula = 2

216 = 65536 subnet

(n adalah bilangan bit)

-Number of host bit per subnet


Formula =2n(0)

216 = 65536 host bit

(host adalah kosong 0)

-Number of usable host per subnet


Formula = 2n - 2

216 = 65536 2
= 65534 usable host

-Subnet address
IP Address Decimal = 192.192.10.234 [Nak cari subnet address kena
darab. Darab dalam binary panggil
Subnet Mask Decimal =255.255.255.0 LOGICAL AND. IP address (*) subnet
mask]
IP address binary = 10101100 . 00010001 . 01100011 . 01000111
Subnet mask binary = 11111111 . 11111111 . 00000000 . 00000000
Subnet Address binary = 10101100 . 00010001 . 00000000 . 00000000
Subnet Address Decimal =
172
.
17
.
0
.
0

-IP Address of First Host


Nak cari first host kena tambah 1 tambah dalam binary panggil
LOGICAL OR. Subnet Address tambah dengan 1
Subnet address binary= 10101100.00010001.00000000.00000000
Satu binary
= 00000000.00000000.00000000.00000001
First host binary
=10101100.00010001.00000000.00000001
Fisrt host decimal
=172.17.0.1

-IP address Last host


Nak cari last host kena tambah dengan usable host. Subnet Address
tambah dengan usable host.
Subnet address binary=10101100.00010001.00000000.00000000
Usable host binary
=00000000.00000000.00000000.00010000
Last host binary
=10101100.00010001.00000000.00010000
Last host decimal
= 172.17.0.16
-Broadcast Address
Nak cari broadcast kena tambah satu 1. Last host tambah dengan 1.
Last host binary =10101100.00010001.00000000.00010000
Satu binary =00000000.00000000.00000000.00000001
Broadcast Binary=10101100.00010001.00001010.00010001
Broadcast Decimal=172.17.0.17

PROBLEM 5
GIVEN

Host IP address
Subnet Mask

FIND
-Number Of Subnet Bits
-Number of subnet
-Number Of Host Bit Per Subnet
-Number of usable host per subnet
-Subnet address for this IP address
-IP address of first host on this subnet
-IP address of last host on this subnet
-Broadcast address for this subnet
-Number of subnet bits

172.17.99.71
255.255.0.0

255
.
255
.
255
.
0
11111111 . 11111111 . 111111111 . 000000000 . Semua bit ada lapan bit.
8 + 8 + 8 + 8 = 32 bit
32-24 = 8 bit . 24 bit nombor 1. Ada lapan bit. 8 + 8 + 8 = 24 bit

-Number of subnet
Formula = 2 n
Formula = 2

28 = 256 subnet

(n adalah bilangan bit)

-Number of host bit per subnet


Formula =2n(0)

28 = 256 host bit

(host adalah kosong 0)

-Number of usable host per subnet


Formula = 2n - 2

28 = 256 2
= 254 usable host

-Subnet address
IP Address Decimal = 192.168.3.219 [Nak cari subnet address kena darab.
Darab dalam binary panggil

Subnet Mask Decimal =255.255.255.0 LOGICAL AND. IP address (*) subnet


mask]
IP address binary = 11000000 . 10101000 . 00000011 . 11011011
Subnet mask binary = 11111111 . 11111111 . 11111111 . 00000000
Subnet Address binary = 11000000 . 10101000 . 00000011 . 00000000
Subnet Address Decimal =
192
.
168
.
3
.
0

-IP Address of First Host


Nak cari first host kena tambah 1 tambah dalam binary panggil
LOGICAL OR. Subnet Address tambah dengan 1

Subnet Address binary=11000000.10101000.00000011.00000000


Satu binary
=00000000.00000000.00000000.00000001
First host binary
=11000000.10101000.00000011.00000001
First host Decimal
= 192.168.3.1

-IP address Last host


Nak cari last host kena tambah dengan usable host. Subnet Address
tambah dengan usable host.

Subnet Address binary=11000000.10101000.00000011.00000000


Usable host binary
=00000000.00000000.00000000.11111110
Last host binary
=11000000.10101000.00000011.11111110
Last host decimal
= 192.168.3.254

-Broadcast Address
Nak cari broadcast kena tambah satu 1. Last host tambah dengan 1.
Last host binary
=11000000.10101000.00000011.11111110
Satu binary
=00000000.00000000.00000000.00000001
Broadcast Binary =11000000.10101000.00000011.11111111
Broadcast Decimal=192.168.3.255

PROBLEM 6
GIVEN

Host IP address
Subnet Mask

192.168.3.219
255.255.255.252

FIND
-Number Of Subnet Bits
-Number of subnet
-Number Of Host Bit Per Subnet
-Number of usable host per subnet
-Subnet address for this IP address
-IP address of first host on this subnet
-IP address of last host on this subnet
-Broadcast address for this subnet

-Number of subnet bits


255
.
255
.
255
.
252
11111111 . 11111111 . 111111111 . 11111100 . Semua bit ada lapan bit. 8
+ 8 + 8 + 8 = 32 bit
32-24 (tolak yg tiada kosong) = 8 + 6 (tambah enam bit yg ada kosong 0)
= 14 bit . 24 bit nombor 1. Ada lapan bit. 8 + 8 + 8 = 24 bit

-Number of subnet
Formula = 2 n
Formula = 2

214 = 16384 subnet

(n adalah bilangan bit)

-Number of host bit per subnet


Formula =2n(0)

22 = 4 host bit

(host adalah kosong 0)

-Number of usable host per subnet


Formula = 2n - 2

22 = 4 2
= 2 usable host

-Subnet address
IP Address Decimal = 192.168.3.219 [Nak cari subnet address kena darab.
Darab dalam binary panggil
Subnet Mask Decimal =255.255.255.252 LOGICAL AND. IP address (*)
subnet mask]
IP address binary = 11000000 . 10101000 . 00000011 . 11011011
Subnet mask binary = 11111111 . 11111111 . 11111111 . 11111100
Subnet Address binary = 11000000 . 10101000 . 00000011 . 11011000
Subnet Address Decimal =
192
.
168
.
3
.
216

-IP Address of First Host


Nak cari first host kena tambah 1 tambah dalam binary panggil
LOGICAL OR. Subnet Address tambah dengan 1

Subnet Address binary=11000000.10101000.00000011.11011000


Satu binary
=00000000.00000000.00000000.00000001
First host binary
=11000000.10101000.00000011.11011001
First host Decimal
=192.168.3.217

-IP address Last host


Nak cari last host kena tambah dengan usable host. Subnet Address
tambah dengan usable host.
Subnet Address binary=10101100.00011110.00000001.11011000
Usable host binary
=00000000.00000000.00000000.00000010
Last host binary
=10101100.00011110.00000001.11011010
Last host decimal
=172.30.1.218

-Broadcast Address
Nak cari broadcast kena tambah satu 1. Last host tambah dengan 1.
Last host binary
=11000000.10101000.00000011.11011010
Satu binary
= 00000000.00000000.00000000.00000001
Broadcast Binary =11000000.10101000.00000011.11011011
Broadcast Decimal=192.168.3.219

TASK 2
FIND THE SUBNET MASK AND REFER THE IP ADDRESS BELLOW.
1)
2)
3)
4)
5)
6)

192.17.99.11/26
192.17.10.1/25
192.17.40.1/28
192.168.1.0/26
192.168.1.64/26
192.168.1.128/26
1) Subnet mask
11111111 . 11111111 . 11111111 . 11000000 (26 bit 1) 8 + 8 + 8
+2
255
.
255
. 255
.
192
128
1

64
1

32
0

16
0

8
0

4 2 1
0 0 0

1
128
+ 64
192
subnet mask = 255 . 255 . 255 . 192

2) Subnet mask
11111111 . 11111111 . 11111111 . 10000000 (25 bit 1) 8 + 8 + 8
+1
255
.
255
.
255
. 128
128 64 32 16 8 4 2 1
1
0
0 0 0 0 0 0
128
+ 0
128
Subnet mask = 255 . 255 . 255 . 128
3) Subnet mask
1111111 . 11111111 .11111111 . 11110000 (28 bit 1) 8 + 8 + 8
+4
255
.
255
.
255
. 240
128
1

64
1

32
1

16 8 4 2 1
1 0 0 0 0

1
128
+
64
1192
+ 32
1
224
+ 16
240
Subnet mask = 255 . 255 . 255 . 240
4) Subnet Mask
11111111 . 11111111 . 11111111 . 11000000 (26 bit 1) 8 + 8 +
8+2
255
.
255
. 255
.
192
128
1
1
128
+ 64

64
1

32
0

16
0

8
0

4 2 1
0 0 0

192
subnet mask = 255 . 255 . 255 . 192

5) Subnet Mask
11111111 . 11111111 . 11111111 . 11000000 (26 bit 1) 8 + 8 +
8+2
255
.
255
. 255
.
192
128
1

64
1

32
0

16
0

8
0

4 2 1
0 0 0

1
128
+ 64
192
subnet mask = 255 . 255 . 255 . 192
6) Subnet Mask
11111111 . 11111111 . 11111111 . 11000000 (26 bit 1) 8 + 8 +
8+2
255
.
255
. 255
.
192
128
1

64
1

32
0

16
0

8
0

4 2 1
0 0 0

1
128
+ 64
192
subnet mask = 255 . 255 . 255 . 192

You might also like