You are on page 1of 12

8 7 6 5 4 3 2

Desimal Biner Hex 1 1 1 1 1 1 1


47 00101111 2F 2^7 2^1
83 1010011 53 128 64 32 16 8 4 2
251 FB 0 0 1 0 1 1 1

95 01011111 5F
154 10011010 9A 8 4 2 1 8 4 2
0 0 1 0 1 1 1
2 16
5 3
0 1 0 1 0 0 1
64 16 2

128 64 32 16 8 4 2
1 1 1 1 1 0 1
8 4 2 1 8 2
F B
1
1
2^0
1
1

1
1

1
1

1
1
1
A 0xxxxxxx IP A
B 10xxxxxx IP B
C 110xxxxx IP C
D 1110xxxx IP D Multicast
E 1111xxxx IP E Reserved -riset

Bin Dec
IP A 00000000 0
01111111 127
IP 0 supernet
IP 127 Loopback
IP A 00000001 1
01111110 126

IP Private 00001010 10 10.x.x.x

IP B 10000000 128
10111111 191
Private
Segemen 1, 2 172.16 172.16.0.x
172.16.31.x
seg 3 seg 4
Segmen 3,4 00000000 xxxxxxxxx 0.x
oktet 00011111 xxxxxxxxx 31.x

IP 172.17.20.30 non private


IP 172.16.32.222 non private

IP 172.16.0.10 private

IP C 11000000 192 192.x.x.x


11011111 223 223.x.x.x
Private
Segemen 1, 2 192.168

seg 3 seg 4
Segmen 3,4 00000000 xxxxxxxxx 0.0
11111111 xxxxxxxxx 255.255
192.168.2.4 private
192.168.250.250 private
192.169.20.53 non private

11011110 11011011 00101010 10001000


222 219 42 136

bin des
0 0
1 1
10 2
11 3
100 4
101 5
128 64 32 16 8 4 2 1
1 0 B 140.54.53.36
1 1 0 0 1 0 1 0C 202.20.40.50
0 1 1 1 1 1 1 0A 126.65.66.67
1 1 1 0 0 0 0 0D 224.0.0.64
0 1 1 1 1 1 1 1A 127.0.0.1 not for host
1 0 0 0 0 0 0 0 128
1 0 0 0 1 1 1 0

10.10.10.23

129.45.222.12

172.16.32.30
172.16.31.121
4 segment
3 paket
2
1

PC A SW

Frame 0 S PCA S SW
D? D?

S IP PCF
D IP PC E

Dari IP address berikut, tentukan kelasnya:


193.23.54.12
222.41.42.45
53.24.65.34
166.45.64.12
242.12.41.111
111.222.221.112
201.124.122.41
190.190.21.21

Tentukan IP address server berikut di kelas apa


youtube
google
yahoo
facebook
shopee
bukalapak
gojek
Cara mengetahui IP address, masuk ke web browser, buka situs https://mxtoolbox.com
Pilih DNS Lookup di kotak pencarian
Masukkan nama server di atas, misalnya youtube.com
Setelah IP address servernya diperoleh, tentukan kelas IP addressnya

Contoh:
Perangkat apa
yg bisa bekerja
sampai layer 7 osi
FW
Firewall
Blok
IP address L3
Port ftp, telneL4
Application L7

RTR PC E

S RT S SW
D SW D PC E

ACK/ NACK
Acknowledgement
p1 ACK 1
p2 ACK 2
p3 ACK 3
p4 ACK 4
p5 ACK5

p1 -
p2 -
p3 -
p4 NACK
p5 -
LANJUTAN IP ADDRESSING
SUBNETTING

IP address t.d. 4 angka desimal, yang dalam bit disebut OKTET (Okta bit)

Subnet Oktet 1
oktet 1 oktet 2 oktet 3 oktet 4 Checking
KELAS A Net Portion Host portion Host portion Host portion 0xxxxxxx
KELAS B Net Portion Net Portion Host portion Host portion 10xxxxxx
KELAS C Net Portion Net Portion Net Portion Host portion 110xxxxx

Net Portion = FIX, tidak berubah untuk masing2 kelas


Host Portion = bisa berubah, bisa sebagian bit nya dipinjam untuk jadi subnet

Proses membagi jaringan (subnetting) dengan operasi AND antara IP dan subnet mask
IP network/subnet = IP AND subnet mask
IP broadcast = IP network, dengan bit-bit host portion, ALL ONES (semua nilainya 1)

CONTOH
IP kelas A asalnya ada 256x256x256 IP address, 1 network
Akan dibagi ke dalam 4 subnet
Hasilnya, 1 subnetwork berukuran 64x256x256

Kalau dibagi ke dalam 16 subnet


Hasilnya, 1 subnetwork berukuran 16x256x256

CARA membagi subnet dengan teknik subnetting


Perhatikan arah pergerakan bit yg dikonversi
Bit-bit subnet, bergerak dari arah kiri ke kanan
Bit-bit host, dari kanan ke kiri

Subnet
oktet 1 oktet 2 oktet 3 oktet 4
contoh 103 10 169 245 dec
103.10.169.245 IP kelas A 01100111 00001010 10101001 11110101 bin
default Subnet mask 11111111 00000000 00000000 00000000 bin
255. 0 0 0 dec
IP network 01100111 00000000 00000000 00000000
103. 0 0 0
IP Broadcast 01100111 11111111 11111111 11111111
103 255 255 255
SLOT IP address asalnya adalah 103.0.0.0 sampai 103.255.255.255
IP host, dimulai dari 103.0.0.1 - 103.255.255.254
Jumlah host yang bisa dibentuk dari IP standard kelas A 256x256x256 - 2
yg merah, menjadi bit-bit subnet portion
net portion host portion host portion host portion
dibagi 4 subnet 11111111 11000000 00000000 00000000
255 192 0 0
IP subnet A #0 01100111 00000000 00000000 00000000
IP subnet A #1 01100111 01000000 00000000 00000000
IP subnet A #2 01100111 10000000 00000000 00000000
IP subnet A #3 01100111 11000000 00000000 00000000

Nomor subnet, (#0, #1, #2, #3), sama dengan nilai biner pada bit-bit subnet

IP subnet #0 01100111 00000000 00000000 00000000


103 0 0 0
IP broadcast 01100111 00111111 11111111 11111111
103 63 255 255
Slot IP host 103.0.0.1 - 103.63.255.254
jumlah host 64x256x256 - 2

IP subnet #1 01100111 01000000 00000000 00000000


103 64 0 0
IP broadcast 01100111 01111111 11111111 11111111
103 127 255 255
Slot IP host 103.64.0.1 - 103.127.255.254
jumlah host 64x256x256 - 2

IP subnet #2 01100111 10000000 00000000 00000000


103 128 0 0
IP broadcast 01100111 10111111 11111111 11111111
103 191 255 255
Slot IP host 103.128.0.1 - 103.191.255.254
jumlah host 64x256x256 - 2

IP subnet #3 01100111 11000000 00000000 00000000


103 192 0 0
IP broadcast 01100111 11111111 11111111 11111111
103 255 255 255
Slot IP host 103.192.0.1 - 103.255.255.254
jumlah host 64x256x256 - 2
CONTOH 2
dibagi 16 yg merah, menjadi bit-bit subnet portion
16 = 2^4 net portion host portion host portion host portion
Subnetmask 11111111 11110000 00000000 00000000
255 240 0 0
IP subnet A #0 01100111 00000000 00000000 00000000
IP subnet A #1 01100111 00010000 00000000 00000000
IP subnet A #2 01100111 00100000 00000000 00000000
IP subnet A #3 01100111 00110000 00000000 00000000

IP subnet #11 01100111 10110000 00000000 00000000


103 176 0 0
IP broadcast 01100111 10111111 11111111 11111111
103 191 255 255
slot ut IP host 103.176.0.1 s.d. 103.191.255.254

Max bit yang bisa dipinjam untuk subnet dari host portion adalah (disisain 2 bit)

Subnetmask 11111111 11111111 11111111 11111100


ip subnet 00
ip host 01
ip host 10
ip broadcast 11

Diketahui IP address 145.35.64.25


Subnetmask 255.255.192.0
Berapa IP subnetnya
Berapa nomor subnetnya xxxxx cari sendiri

Subnetmask 11111111 11111111 11000000 00000000


255 255 192 0
IP subnet B #? 10010001 xxxxxxxx 01000000 xxxxxxxxx
IP host 145 35 64 25
IP subnetwork 145 35 64 0
nomor subnet 1

IP yang lain 11111111 11111111 11000000 00000000


145.35.164.25 IP subnet B #? 10010001 xxxxxxxx 10100100 xxxxxxxxx
IP host 145 35 164 25
hasil AND 10000000
IP subnetwork 145 35 128 0
nomor subnet 2
slot 145.35.128.0 s.d 145.35.191.255
IP broadcast 10010001 xxxxxxxx 10111111 xxxxxxxxx

You might also like