Subnetting
In Color
Copy Left :
Nugroho, ST. – Produktif TKJ SMKN 2 Bawang
Sebuah Analogi
Kelas C
Network
Network ID
ID /
/ Ketua
Ketua Kelompok
Kelompok /
/
Network Address
Network Address Ketua Kelas
Ketua Kelas
IP : xxx.xxx.xxx.0 Absen : 0
1 1
2 2
Jumlah IP Valid yg Anggota Kelompok /
s/d
boleh untuk IP host Anggota Kelas s/d
= 256 – 2 = 256 – 2
Broadcast 253
Broadcast ID
ID /
/ Sekretaris
Sekretaris Kelompok
253
Kelompok /
/
Broadcast
254
Address
Broadcast Address Sekretaris Kelas
Sekretaris Kelas
254
IP : xxx.xxx.xxx.255 Absen : 255
Kelompok IP
256 IP 256
Kelompok Siswa / Kelas
anak
Pembagian kelompok
Untuk tugas tertentu dari guru, 256 anak Kelas C tersebut,
akan dibagi menjadi kelompok-kelompok yang lebih kecil.
Dengan aturan sbb :
seluruh anak harus HABIS TERBAGI (tanpa sisa)
dengan jumlah anak per kelompoknya harus SAMA
BANYAK (imbang)
dalam tiap kelompok 1 anak ABSEN TERKECIL
(paling depan) jadi Ketua kelompok
dalam tiap kelompok 1 anak ABSEN TERBESAR
(paling belakang) jadi Sekretaris kelompok
Pembagian kelompok
Berdasar aturan tersebut, 256 anak dalam 1 kelas C tersebut
hanya bisa dibagi menjadi sejumlah kelompok berikut :
1 kelompok 20 berisi 256 anak / kelompok
2 kelompok 21 berisi 128 anak / kelompok
4 kelompok 22 berisi 64 anak / kelompok
8 kelompok 23 berisi 32 anak / kelompok
16 kelompok 24 berisi 16 anak / kelompok
32 kelompok 25 berisi 8 anak / kelompok
64 kelompok 26 berisi 4 anak / kelompok
128 kelompok 27 berisi 2 anak / kelompok
256 kelompok 28 berisi 1 anak / kelompok
256 anak tidak bisa dibagi misalnya menjadi 3, 5 atau 6
kelompok tidak habis terbagi / tidak imbang
Pembagian kelompok
OK
128 anak
256 anak
128 anak
bagi 2
X
85 anak
86 anak
bagi 3
Ketua, Sekretaris, dan Anggota
0 Ketua Kel 1
256
anak
128 Ketua Kel 2
bagi 2
128 129-254 128-2=126
anak
255 Sekre. Kel 2
subnetting / subnet
disinilah muncul konsep subnetting,
subnetting
yaitu istilah lain dari pembagian
kelompok.
untuk menyatakan berapa banyaknya
kelompok subnetting (dalam subnetting
kelompok disebut juga kelas),
kelas maka
digunakan Notasi yaitu subnet mask /
netmask
singkatnya subnetting = pembagian
kelompok
Cara menyebutkan subnet mask/netmask
1. Notasi desimal
• IP : 192.168.0.254
subnetmask : 255.255.255.192
• IP : 100.100.100.100
subnetmask : 255.255.240.0
2. Notasi CIDR
• IP : 192.168.0.254/26
• IP : 100.100.100.100/20
Persamaan subnet mask/netmask
1. Notasi desimal
• subnetmask : 255 . 255 . 255 . 192
11111111 11111111 11111111 11000000
2. Notasi CIDR
• IP : 192.168.0.254/26
1 nya ada 26 11111111 11111111 11111111 11000000
• IP : 100.100.100.100/20
1 nya ada 20 11111111 11111111 11110000 00000000
Notasi desimal kelas C
IP : xxx.xxx.xxx.xxx
subnetmask : 255.255.255.xxx
ciri kelas C
Angka Ajaib
255.255.255.xxx
=256-
Y xxx
Jumlah kelompok Jumlah anak per
atau kelas atau kelompok atau jumlah
subnet
IP per kelas =Y
=256 / Y
Notasi desimal kelas C
IP : 192.168.0.254
subnetmask : 255.255.255.192
Jumlah kelompok atau
kelas atau subnet Angka Ajaib
64 =4 kel =256-
=256/
Y
(32-xx)
=2
Jumlah kelompok
atau kelas atau Jumlah anak per
subnet kelompok atau jumlah
=256 / Y IP per kelas =Y
Notasi CIDR kelas C
IP : 192.168.0.254 / 26
Jumlah kelompok atau
kelas atau subnet Angka Ajaib
64 =4 kel =2(32-26)
26
=256/
Ditanyakan :
a.Berapa host per subnet yang valid / dapat
digunakan sebagai IP host
b.Berapa kelompok/kelas/subnet yang terbentuk?,
Sebutkan kelompok-kelompok tersebut.
c.Sebutkan NetworkID/Network Address dan
broadcast ID/Broadcast Addressnya
d.Sebutkan NetworkID/Network Address dan
broadcast ID/Broadcast Address jika IPnya
200.150.100.100
Notasi CIDR kelas C
IP : 200.150.100.50 / 27
Angka AJAIB
desimal CIDR
255.255.255.xxx / xx
Y
Angka AJAIB
Y
Angka AJAIB
= 256-xxx = 2(32-xx)
Hal Menarik
Angka kel
Biner CIDR subnet Mask Desimal Host / Subnet
Ajaib subnet
Subnetting
Kelas B
In Color
Jumlah Seluruh Anak
Ingat Analogi sebelumnya !!! Kelas B
IP : xxx.xxx.0.0 – xxx.xxx.0.255 256 IP
xxx.xxx.1.0 – xxx.xxx.1.255 256 IP
xxx.xxx.2.0 – xxx.xxx.2.255 256 IP
xxx.xxx.3.0 – xxx.xxx.3.255 256 IP
s/d
256 x 256
Berapa Jumlah seluruh anak
dalam 1 kelas?, termasuk ketua
dan sekretaris = IP Inclusive
Kelas C 256
Kelas B 256 x 256
Kelas A 256 x 256 x 256
Berapa jumlah anak dlm 1 kelompok?
Jika DIBAGI 2 kelompok (Angka
Ajaib= 128)
Kelas C 256
128
Y
(24-xx)
=2
Jumlah kelompok
atau kelas atau Jumlah anak per
subnet kelompok atau jumlah
=256 / Y IP per kelas = Y*256
Notasi CIDR kelas B
IP : 150.50.0.50 / 18
Jumlah kelompok atau
kelas atau subnet Angka Ajaib
=256/ 64 =4 kel =2(24-18)
18
Angka kel
Biner CIDR subnet Mask Desimal Host / Subnet
Ajaib subnet
Subnetting
Kelas A
In Color
Notasi desimal kelas A
IP : xxx.xxx.xxx.xxx
subnetmask : 255.xxx.0.0
ciri kelas A Angka Ajaib
255.xxx.0.0
=256-
Jumlah kelompok
atau kelas atau
Y xxx
subnet
Jumlah anak per
=256 / Y kelompok atau jumlah IP
per kelas = Y*256*256
Notasi CIDR kelas A
IP : xxx.xxx.xxx.xxx / xx
ciri kelas A
8 <= XX < 16
Angka Ajaib
Y
(16-xx)
=2
Jumlah kelompok
atau kelas atau
subnet
=256 / Y Jumlah anak per kelompok
atau jumlah IP per kelas
= Y*256*256
Tabel Kelas A
Angka kel
Biner CIDR subnet Mask Desimal Host / Subnet
Ajaib subnet
Subnet : 255.255.255.des
Konversi dari CIDR > desimal
IP : 192.168.10.3 / 25
Angka Ajaib
xx >=24 =2(32-xx)
128
=2 (32-25)
=2(7)
des = 256 – Angka Ajaib
= 256 – 128 = 128
Subnet : 255.255.255.128
Konversi dari desimal > CIDR
Subnet : 255.255.255.224
32
2(x) = 32
x =5
/CIDR = /32-5
= /27