Skip to main content

Subneting (Subnet Mask)

Subneting
Perhitungan subnetinbisa dilakukan dengan 2 cara yaitu cara binary dan dengan cara melihat tablel CIDR. Pada hakekatnya semua pertentang subnetting akan berkisar di 4 masalah yaitu
1.      Jumlah subnet
2.      Jumlah host
3.      Blok subnet
4.      Alamat broadcast

Penulisan ip pada umumnya adalah 192.168.1.2 namun ada kalanya ditulis dengan 192.168.1.2/24 .
Artinya bahwa ip address 192.168.1.2 mempunyai subnet mask ya itu 255.255.255.0
/24 di ambil dari perhitungan 24 bit subnet mask yang di bagi kedalam 8 bit, maka deretan angka binary nya adalah sebagai berikut :
11111111.11111111.11111111.00000000
Jika kita perhatikan diatas angka 1 dari deret binary nya ada 24 buah,. Jika di jadikan bilangan decimal maka akan membentuk deret
255.255.255.0
Konsep ini disebut CIDR (Classless Inter Domain Routing) yang diperkenalkan oleh IEET pada tahun 1992

Berikut merupakan tebel CIDR
255.0.0.0
/8
255.128.0.0
/9
255.192.0.0
/10
255.224.0.0
/11
255.240.0.0
/12
255.248.0.0
/13
255.252.0.0
/14
255.254.0.0
/15
255.255.0.0
/16
255.255.128.0
/17
255.255.192.0
/18
255.255.224.0
/19
255.255.240.0
/20
255.255.248.0
/21
255.255.252.0
/22
255.255.254.0
/23
255. 255.255.0
/24
255. 255.255.128
/25
255. 255.255.192
/26
255. 255.255.224
/27
255. 255.255.240
/28
255. 255.255.248
/29
255. 255.255.252
/30

Soal :
Ip address 192.168.1.0/26
Berapa jumlah subnet, jumlah host persubnet,blok subnet dan broadcast?
Jawab
/26 di jadikan biner terlebih dahulu yaitu mejadi
11111111.11111111.11111111.11000000
Untuk jumlah subnet kita mengambil banyaknya angka 1 dari kelompok terahir bilangan binary, kelompok terakhir bilangan binary yaitu 11000000, maka denga ini angka 1 nya yaitu berjumlah 2 buah, maka menghitung nya adalah 2 pangkat jumlah anggka 1 yaitu 2 pangkat 2 = 4
2^2=4

Untuk jumlah host persubnet kita mengambil jumlah angga 0, jumlah angka nol yaitu 6 buah, maka didapat 2 pangkat 6 di kurangi 2 = 62
2^6-2 =62

Perhitungan blok subnet nya yaitu di ambil dari nilai biner, 11000000, yang berarti bahwa nilainya di bilangan decimal adalah 192, maka untuk perhitungan subnet nya yaitu
256 – 192 = 64,
Blok subnet berikutnya yaitu 64 + 64 = 128
Blok subnet berikutnya yaitu 128 + 64 = 192
Jadi subnet lengkap nya adalah 0, 64, 128, 192

Alamat host dan broadcast yang valid yaitu kita buat langsung tabelnya, dimana host pertama adalah 1 angka setelah subnet, dan broadcast adalah 1 angka sebelum subnet berikutnya, dan tabel nya adalah sebagai berikut
Subnet
192.168.1.0
192.168.1.64
192.168.1.128
192.168.1.192
Host pertama
192.168.1.1
192.168.1.65
192.168.1.129
192.168.1.193
Host terakhir
192.168.1.62
192.168.1.126
192.168.1.190
192.168.1.254
Broadcast
192.168.1.63
192.168.1.127
192.168.1.191
192.168.1.255



Diketahui IP Addres : 200.200.1.0 /28
Ditanya :
1.      Berapa jumlah host?
2.      Berapa jumlah subnet?
3.      Berapa jumlah host per blok subnet?
4.      Alamat Multicast,first IP,last IP dan  Broadcast?


Jawab :
200.200.1.0 /28
Maka biner nya adalah : 11111111.11111111.11111111.11110000
Dan 255.255.255.240
                         
1.      Jumlah host = 2^y   - 2 dimana y adalah banyak nya binary 0
Maka 2^4 - 2 = 16 – 2 = 14.

2.      Jumlah subnet = 2^x. Dimana x adalah banyak nya binary 1
Maka 2^4 = 16.

3.      Jumlah host per subnet adalah
256 – 240 = 16. Maka 0, 16, 32, 48, 64, 80, 96, 112, 128, 144, 160, 176, 192, 208, 224, 240,.

4.      Alamat Multicast,first IP,last IP dan  Broadcast?
200.200.1.0

Multicast
200.200.1.0
200.200.1.16
200.200.1.32
200.200.1.48
First IP
200.200.1.1
200.200.1.17
200.200.1.33
200.200.1.49
Last IP
200.200.1.14
200.200.1.30
200.200.1.46
200.200.1.63
Broadcast
200.200.1.15
200.200.1.31
200.200.1.47
200.200.1.63

Multicast
200.200.1.64
200.200.1.80
200.200.1.96
200.200.1.112
First IP
200.200.1.65
200.200.1.81
200.200.1.97
200.200.1.113
Last IP
200.200.1.78
200.200.1.94
200.200.1.110
200.200.1.126
Broadcast
200.200.1.79
200.200.1.95
200.200.1.111
200.200.1.127


Multicast
200.200.1.128
200.200.1.144
200.200.1.160
200.200.1.176
First IP
200.200.1.129
200.200.1.145
200.200.1.161
200.200.1.177
Last IP
200.200.1.142
200.200.1.158
200.200.1.174
200.200.1.190
Broadcast
200.200.1.143
200.200.1.159
200.200.1.175
200.200.1.191

Multicast
200.200.1.192
200.200.1.208
200.200.1.224
200.200.1.240
First IP
200.200.1.193
200.200.1.209
200.200.1.225
200.200.1.241
Last IP
200.200.1.206
200.200.1.222
200.200.1.158
200.200.1.254
Broadcast
200.200.1.207
200.200.1.223
200.200.1.239
200.200.1.255


Diketahui IP addres : 130.130.1.0 /19

/19 = 255.255.224.0
biner = 11111111.11111111.11100000.00000000

1. jumlah host = 2^y - 2, 2^13 - 2 = 8.192 - 2 = 8.190

2. Jumlah subnet = 2^x, 2^3 = 8

3. Jumlah host per blok subnet = 256 - 224 = 32.
   32, 64, 96, 128, 160, 192, 224.

4. Alamat mutlicast, firs IP, Last IP, dan broad cast



Multicast
130.130.0.0
130.130.32.0  
130.130.64.0  
130.130.96.0   
first ip
130.130.0.1
130.130.32.1
130.130.64.1
130.130.96.1
last ip
130.130.31.254
130.130.63.254
130.130.95.254
130.130.127.254
Broadcast
130.130.31.255
130.130.63.255
130.130.95.255
130.130.127.255
  



Multicast
130.130.128.0
130.130.160.0
130.130.192.0
130.130.224.0
first ip
130.130.128.1
130.130.160.1
130.130.192.1
130.130.224.1
last ip
130.130.159.254
130.130.191.254
130.130.223.254
130.130.255.254
Broadcast
130.130.159.255
130.130.191.255
130.130.223.255
130.130.255.255

Comments

Popular posts from this blog

Section 6 Quiz Oracle Database Programming with SQL

Section 6 Quiz             (Answer all questions in this section)                                                             1.         Given the following descriptions of the employees and jobs tables, which of the following scripts will display each employee ï¾’ s possible minimum and maximum salaries based on their job title? EMPLOYEES Table: Name   Null?    Type EMPLOYEE_ID          NOT NULL     NUMBER (6) FIRST_NAME             VARCHAR2 (20) LAST_NAME  NOT NULL     VARCHAR2 (25) EMAIL NOT NULL     VARCHAR2 (25) PHONE_NUMBER                  VARCHAR2 (20) HIRE_DATE   NOT NULL     DATE JOB_ID           NOT NULL     VARCHAR2 (10) SALARY                     NUMBER (8,2) COMMISSION_PCT                NUMBER (2,2) MANAGER_ID                       NUMBER (6) DEPARTMENT_ID                 NUMBER (4) JOBS Table: Name   Null?    Type JOB_ID           NOT NULL     VARCHAR2 (10) JOB_TITLE     NOT NULL     VARCHAR2 (35) MIN_SALARY                      

Section 10 Quiz Database Programming With SQL

Section 10 Quiz             (Answer all questions in this section) 1.         A multiple-row operator expects how many values?   Mark for Review (1) Points             One or more (*)             Only one             Two or more             None 2.         The salary column of the f_staffs table contains the following values: 4000 5050 6000 11000 23000 Which of the following statements will return the last_name and first_name of those employees who earn more than 5000?  Mark for Review (1) Points             SELECT last_name, first_name FROM f_staffs WHERE salary IN (SELECT last_name, first_name FROM f_staffs WHERE salary <5000 o:p="">             SELECT last_name, first_name FROM f_staffs WHERE salary = (SELECT salary FROM f_staffs WHERE salary < 5000);             SELECT last_name, first_name FROM f_staffs WHERE salary IN (SELECT salary FROM f_staffs WHERE salary > 5000); (*)             SELEC

Section 2 Quiz Database Design Oracle

Section 2 Quiz             (Answer all questions in this section) 1.         An Entity Relationship model is independent of the hardware or software used for implementation. True or False?  Mark for Review (1) Points             True (*)             False 2.         A well structured ERD will show only some parts of the finished data model. You should never try to model the entire system in one diagram, no matter how small the diagram might be. True or False?           Mark for Review (1) Points             True             False (*) 3.         The purpose of an ERD is to document the proposed system and facilitate discussion and understanding of the requirements captured by the developer. True or False?          Mark for Review (1) Points             True (*)             False 4. Documenting Business Requirements helps developers control the scope of the system and prevents users from claiming that the new system does not meet their business req