IP Subnetting
Contoh :
192.168.0.1
x.x.x.x
11111111.11111111.11111111.11111111
11111111 = 2^7+2^6+2^5+2^4+2^3+2^2+2^1+2^0
= 128+64+32+16+8+4+2+1
= 255
Suffix
192.168.0.1/24
24 = dari jumlah biner 11111111.11111111.11111111.00000000
Jumlah Host = 2^N - 2
Jumlah Network = 2^n - 2
N = jumlah angka 1 dalam 1 segment
n = jumlah angka 0
Jumlah Host = 2^8 - 2 = 256 - 2 = 254
Jumlah Network = 2 ^8 - 2 = 256 -2 = 254
202.152.63.0/255.255.255.240
Lihat netmask 255.255.255.240 =111111111.11111111.111111111.11110000
240 desimal = 11110000 biner
Jumlah Host = 2^4 -2 = 16 - 2 = 14 Host
Jumalh Network = 2 ^4 - 2 = 16 -2 = 14 Network
Jumlah IP Per Network
256-240=16 -> jadi kelipatan 16
1. 202.152.63.0
202.152.63.1 start
202.152.63.14 end
202.152.63.15 netmask
2. 202.152.63.16
202.152.63.17 start
202.152.63.30 end
202.152.63.31 netmask
Jadi untuk 202.152.63.0/28 didapat :
1. 202.152.63.1 - 202.152.63.14
2. 202.152.63.17 - 202.152.63.30
Contoh :
192.168.0.1
x.x.x.x
11111111.11111111.11111111.11111111
11111111 = 2^7+2^6+2^5+2^4+2^3+2^2+2^1+2^0
= 128+64+32+16+8+4+2+1
= 255
Suffix
192.168.0.1/24
24 = dari jumlah biner 11111111.11111111.11111111.00000000
Jumlah Host = 2^N - 2
Jumlah Network = 2^n - 2
N = jumlah angka 1 dalam 1 segment
n = jumlah angka 0
Jumlah Host = 2^8 - 2 = 256 - 2 = 254
Jumlah Network = 2 ^8 - 2 = 256 -2 = 254
202.152.63.0/255.255.255.240
Lihat netmask 255.255.255.240 =111111111.11111111.111111111.11110000
240 desimal = 11110000 biner
Jumlah Host = 2^4 -2 = 16 - 2 = 14 Host
Jumalh Network = 2 ^4 - 2 = 16 -2 = 14 Network
Jumlah IP Per Network
256-240=16 -> jadi kelipatan 16
1. 202.152.63.0
202.152.63.1 start
202.152.63.14 end
202.152.63.15 netmask
2. 202.152.63.16
202.152.63.17 start
202.152.63.30 end
202.152.63.31 netmask
Jadi untuk 202.152.63.0/28 didapat :
1. 202.152.63.1 - 202.152.63.14
2. 202.152.63.17 - 202.152.63.30