Saturday 28 February 2015

Studi tentang Batch Scripting di Sistem Operasi Windows

Digunakan untuk menjalankan perintah command prompt (cmd) windows dengan sangat mudah dan lancar.

0. Mendeklarasikan variabel
@echo off
set name=peter

1. Memanggil suatu variabel
echo %name%

2. Mengambil user input
Mengambil user input dan meletakkannya pada suatu variabel, dengan SET /P dan SET /A.

Contoh:

1. Mempermudah ping sebuah alamat  IP yang mau di PING:
@echo off
set /p alamatIP=Masukkan alamat IP yang hendak di ping:
ping %alamatIP%

INGAT:
No space diantara tanda sama dengan ('=').

Contoh SET /A:


3. String Processing
Mengolah string.


4. Kondisi / Kondisional execution.
Mengeksekusi sebuah blok kode atau sebuah pernyataan dengan suatu atau beberapa syarat.

"IF I can FLY, I go to you, IF not, I am not go to you"

Coba paste game dibawah ini ke notepad, save dengan nama gametebaknama.bat.
Jika nama yang kamu masukkan/inputkan benar, maka kamu tepat. Jika salah, maka kamu tidak tepat.

@echo off

echo Permainan menebak nama
echo ======================
set /p name=Sila masukkan nama:
if %name%==peter echo Match
if not %name%==peter echo do not match


Atau contoh yang asik satu lagi nih dibawah sini:


@echo off
echo MENU HARI INI
echo =============
echo 1. Nasi goreng tempe perkedel
echo 2. Nasi goreng ayam
echo 3. Nasi goreng sambel
set /p pilihan=Silahkan masukkan pilihanmu :
if %pilihan%==1 echo harga yang kamu bayar Rp. 2000
if %pilihan%==2 echo harga yang kamu bayar Rp. 3000
if %pilihan%==3 echo harga yang kamu bayar Rp. 1000

5. Loop 
Loop : Perform a command several times.

Loop ada dua: loop forever (selamanya) atau loop tertentu.
Loop selamanya itu begini:


@echo off
:up
echo =============
echo MENU HARI INI
echo =============
echo 1. Nasi goreng tempe perkedel
echo 2. Nasi goreng ayam
echo 3. Nasi goreng sambel
set /p pilihan=Silahkan masukkan pilihanmu :
if %pilihan%==1 echo harga yang kamu bayar 2000
if %pilihan%==2 echo harga yang kamu bayar 3000
if %pilihan%==3 echo harga yang kamu bayar 1000
goto up:

6. Function
Function: How to package a block of code.


Friday 27 February 2015

Perhitungan-perhitungan Elektronika

1. Perhitungan biaya total pemakaian listrik

Langkah:
1. Cari besar Watt obyek listrik
2. Tentukan berapa lama obyek itu hidup selama sebulan
3. Dibagi seribu
4. Dikalikan Angka Rp dari ketentuan tarif dasar listrik PLN.


Contoh:
Sebuah rumah memasang 5 lampu 20 watt dan menyala 12 jam sehari. Dua lampu 60 watt dan menyala 5 jam sehari. Sebuah kulkas 125 watt dan menyala 24 jam sehari. Sebuah Pesawat TV 200 watt dan menyala 6 jam sehari. Sebuah setrika listrik 250 watt dan dipakai 2 jam sehari.

Jika tarif listrik adalah Rp. 750/kwh, perkirakan biaya listrik rumah tersebut dalam satu hari dan satu bulan.

Jawaban (1 jam =  1h; w adalah singkatan dari watt):
5 lampu 20 watt = 5 x 20 watt = 100 watt x 12 jam = 1200 wh * 750 / kwh =
2 lampu 60 watt = 2 x 60 watt = 120; 120 watt x 5 jam = 600 wattjam; 600wattjam * 750 / kwh =
1 kulkas 125 watt = 1 x 125 watt = 125 watt; 125 watt x
1 pesawat TV 200 watt = 1 x 200 watt = 200 watt x 6 jam = 1200 wattjam; 1200 wattjam *


2. Sebuah laptop VAIO tertulis menggunakan 10.5V dan 3.8A. Tentukan berapa daya (Watt) laptop?
P = V. I^2
P = 10.5 * 3.8^2
P = 151.62 Watt atau setara 152 Watt

Berapakah biaya dipakai untuk menyalakan laptop ini selama 10 jam?
Total Watt selama 10 jam = 152 Watt * 10 jam = 1520 WattHour
Biaya yang dikeluarkan = 1520 WattHour * Rp. 750 / Kwh = 1.52

3. Sebuah setrika merek Melati menyala dengan


4. Sebuah Wireless Access point tertulis di label menggunakan

Pengenalan ARDUINO

1. PENGENALAN PIN-PIN
1. POWER PIN
2. DIGITAL PIN
3. ANALOG PIN
4. GROUND PIN



Digital pin bisa digunakan untuk mengeluarkan sinyal menggunakan procedure bahasa pemrograman digitalwrite()dan bisa digunakan untuk membaca sinyal menggunakan procedure digitalread().

Digitalwrite terdiri atas HIGH dan LOW. Sinyal HIGH itu sama dengan 5volt, sinyal LOW 0v.

Digitalread() atau baca bisa digunakan untuk membaca atau menyelidiki apakah sinyal sedang HIGH atau LOW.

Tetapi terlebih dahulu mode pin harus disetting ke mode digital dulu.

Pin digital antara lain pin 0 - 13 atau pin berwarna hijau di gambar diatas.


Pin analog

Pin analog bisa digunakan juga untuk read dan write, menggunakan nama procedure yang sedikit berbeda dekat pin digital yaitu analogread() dan analogwrite().

Tapi sebelum bisa menggunakan pin analog untuk membaca atau menulis, pin analog harus disetting atau dideklarasi modenya sebagai mode baca atau tulis.



Thursday 26 February 2015

TCP socket programming basic

- Server:
1. Create a socket with the socket()
2. Bind the socket to an address using the bind( )
3. Listen for connections with the listen()
4. Accept a connection with the accept
5. Send and receive data, use the read() and write() system calls

-Client:
1. Create a socket with the socket()
2. Connect the socket to the address of the server using the connect() system call.
3. Send and receive data, use the read() and write() system calls.

 

System Administration

Since a computer consist of harddisk, memory, processor, and network card then the task of system administration are:
1. Check the current space (hard disk)
2. Check harddisk label
3. Check average memory usage (memory)
4. Check average processor usage (processor)
5. And so on

Environment Variables

1. They usually referenced by putting special symbols in front of or around the variable name.
For instance, to display the user home directory, the user has to type:
Echo %HOMEDRIVE%

The PATH is the system variable that your operating system uses to locate needed executables from the command line or Terminal window. 
 
2. Drag and drop files to command-line editor.



Survey

Hal-hal survey tanah:
1. Harga jual (Rp.)
2. Luas tanah (meter persegi)
3. Ketersediaan akses (ada / tidak adanya jalan)
4. Jarak lokasi tanah dari pusat perbelanjaan.

Hal-hal survey barang belian
1. Merek yang tersedia untuk jenis barang yang akan dibeli.
2. Jumlah toko yang akan dibandingkan harganya.
3.

Survey operator telepon seluler:
1. Biaya menelepon antar operator per menit.
2. Biaya telepon dengan operator yang sama.
3. Masa pemakaian kartu / masa berlaku kartu
4. Bonus / discount yang ditawarkan

Tumbuh-tumbuhan

Jika aku sebut tumbuhan-tumbuhan adalah living machine / mesin yang hidup, bolehkan?

Java

Class
For now it is enough to know that every application begins with a class definition

/**
 * The HelloWorldApp class implements an application that
 * simply prints "Hello World!" to standard output.
 */
class HelloWorldApp {
    public static void main(String[] args) {
        System.out.println("Hello World!"); // Display the string.
    }
}
 

Wednesday 25 February 2015

Peristiwa (Event)

Jenis peristiwa berdasarkan jenis waktu:
1. Peristiwa masa lampau
2. Peristiwa masa sekarang / hari ini  / 24 jam
3. Peristiwa masa depan


Ada berapa banyak sih jenis peristiwa? Jenis peristiwa sebanyak jumlah kata kerja yang dibuat/diciptakan oleh manusia.
Contoh:
memukul - peristiwa pemukulan
mengangkat - peristiwa pengangkatan
mengesahkan - peristiwa pengesahan
merampok - peristiwa perampokan
membengkokan - peristiwa pembengkokan
mengangkangi - peristiwa pengangkangan
menggeser - peristiwa penggeseran
memindahkan - peristiwa pemindahan
dan seterusnya

Setiap peristiwa pasti ada subyek (pelaku) dan obyek (orang yang menerima perlakuan), karena
Array
Declare, construct,

Modifier
Access modifier: default, public, protected, private.
Non-access modifier: final, abstract, strictfp.

Inheritance
in java, class can be derived from classes.
Superclass: deriving, induk, class yang diambil.
Subclass: derived, anak, class yang mewarisi.

Polymorphism
Inheritance
Encapsulation
Abstraction
Classes
Objects
Instance
Method
Message Parsing



Next Project: Word recognition

Kecerdasan kalimat

Buatlah kalimat dengan kata kerja / Verbs berikut:
1. Mewariskan
2. Menimbun

It looks simple, but it will change your life.


Kecerdasan emosional

Kenalilah jenis perasaan-perasaan berikut dan tentukan hal-hal yang menimbulkannya:
1. Anxiety (cemas)
2. Inferios (merasa rendah diri)
3. Superior (merasa lebih jago)
4. Merasa jijik dengan dirinya sendiri.
4. Tidak bisa diandalkan
5. Kurang ramah


Kecerdasan angka
1. Berapakah hasil 12 dibagi 3?

2.

3.

4.

5.

Kecerdasan gambar
1. Tanpa pilihan
2. Dengan pilihan ganda

Class and object

Object inherit class.

1. Open console editor
2. Do import
system.net.sockets
system.text
used for conversion between bytes and strings


So do the following code:
1. Dim client as net.sockets.tcpclient
2. Dim stream as networkstream = Nothing

You just created a new tcp client, and a stream for when the connection is made so we can send and receive information between the client and the server.

3. Make a connection attempt
For this you need a server and the IP address and port of the server.
This time your computer is also a server.


Tuesday 24 February 2015

useful windows command-line

1. mstsc
2/ control panel commandline
   Control panel tool             Command
   -----------------------------------------------------------------
   Accessibility Options          control access.cpl
   Add New Hardware               control sysdm.cpl add new hardware
   Add/Remove Programs            control appwiz.cpl
   Date/Time Properties           control timedate.cpl
   Display Properties             control desk.cpl
   FindFast                       control findfast.cpl
   Fonts Folder                   control fonts
   Internet Properties            control inetcpl.cpl
   Joystick Properties            control joy.cpl
   Keyboard Properties            control main.cpl keyboard
   Microsoft Exchange             control mlcfg32.cpl
      (or Windows Messaging)
   Microsoft Mail Post Office     control wgpocpl.cpl
   Modem Properties               control modem.cpl
   Mouse Properties               control main.cpl
   Multimedia Properties          control mmsys.cpl
   Network Properties             control netcpl.cpl
                                  NOTE: In Windows NT 4.0, Network
                                  properties is Ncpa.cpl, not Netcpl.cpl
   Password Properties            control password.cpl
   PC Card                        control main.cpl pc card (PCMCIA)
   Power Management (Windows 95)  control main.cpl power
   Power Management (Windows 98)  control powercfg.cpl
   Printers Folder                control printers
   Regional Settings              control intl.cpl
   Scanners and Cameras           control sticpl.cpl
   Sound Properties               control mmsys.cpl sounds
   System Properties              control sysdm.cpl
    

Try.. Catch ..

If an operation of writing a file is fail, what do you next.

Scratch

Scratch help us to:
1. Create own computer games
2. Create interactive stories
3. Create animation
Without having to write code a.k.a just by drag-and-drop.

WIFI

Master said: "It just a configuration"

1. Set up wireless network

Data yang diperlukan:
Nama SSID yang akan dibuat:
Apakah SSID boleh dimunculkan atau tidak boleh.
Jenis keamanan jaringan yang akan digunakan: WPA, WPA2
Password untuk masuk ke dalam SSID:




2. Bridging 2 wireless coverage between 2 access point
Syarat: AP 1 harus bisa detek AP 2. AP2 harus bisa detek AP1.

Parameter yang perlu disetting:

3. Denying a host / MAC filtering

Data yang diperlukan:
Alamat MAC PC/laptop/gadget yang ingin dilarang masuk ke dalam SSID.

4. Set up login server / RADIUS server

5. Set up SNMP server for the access point

6.

Network Troubleshooting

ipconfig
ping
tracert
nslookup


IPconfig


ipconfig: information gathering: ip address, your router's ip address, your DNS server ip address, DHCP server iP address (ipconfig /all),

Ping

ping: allows you to send a SIGNAL to another Device on the NETWORK to see if it is ACTIVE
try:
1. ping your router a.k.a gateway a.k.a default router.
2. ping other PC.
3. ping outside the network PC.

Tracert

Tracert let's you see, the step-by-step route a packet takes to the destination you specify.

You can also use the term HOPS instead of routers. So, if it takes 10 routers to get to google.com, you can instead say. "it took 10 hops".

NSLOOKUP

This command will fetch the DNS records for a given domain name or for a given IP address. Remember the IP address and domain names are stored in DNS servers, so the nslookup command cause you to query the DNS Record to gather information.

8.8.8.8 --> google-public-dns-a.google.com

Terdiri dari:
1. Interactive mode
2. Non-interactive mode

Non-authoritative : non-your DNS server reply.

ls -a

Record type Name server

1. CNAME
Nickname; alias for a machine.
Name:
Hostname:

2. A record
Informasi yang butuh:
1. Name:
2. Address:

3. SOA record
Data yang dibutuhkan
1. Name :
2. Primary server name:
3. Minimum T T L:
4. Retry time:
5. Mail Box:
6. Refresh Time:
7. Expiry Time:

4. NS record
Data yang dibutuhkan
1. Name
2. Server name

IANA list of root server DNS
IANA list of root server DNS


Monday 23 February 2015

Aktivasi Mandiri Internet Banking

Flowchart aktivasi layanan Mandiri Internet Banking adalah:

Registrasi melalui mesin ATM > Masukkan password OTP (biasanya angka 123456) > Aktivasi di situs www.bankmandiri.co.id > Masukkan no. kartu ATM sbg Access ID, password OTP yang di-inputkan di mesin ATM sebagai Access code > Masukkan username yang anda inginkan > Ganti password OTP anda dengan password yang anda inginkan


Resiko salah dalam memasukkan pin internet banking mandiri yang telah teraktivasi adalah:
Account internet banking anda akan terhapus secara sistem (bukan rekening anda yang terhapus; hanya account internet banking anda saja yang terhapus).

Solusi jika salah dalam memasukkan pin adalah:
Menunggu 1x24 jam dan selepas masa tunggu harus relogin lagi dari ATM untuk mulai dari awal.

Sunday 22 February 2015

Bahan-bahan / yang perlu disediakan:

1. Sebuah cerita, contoh seperti berikut:

Once upon a time there was a wizard called Carrie Anne. She and some friends found themselves in the magic land of Turingville. This land was ruled by Ben the wizard. All of sudden a mysterious voice spoke to them from high in the sky and said you must kiss Ben the wizard to lift the curse of not being able to use technology.

2. Sebuah nama pengguna
3. Sebuah gender pengguna
4. Sebuah kondisi untuk mendapatkan pronoun berdasarkan gender pengguna, apakah he/she/it.
4. Sebuah nama hari ini.
5. 4 buah list:
List pertama : peranan / role
List kedua : nama-nama teman yang ada disekitar / names
List ketiga : nama-nama tindakan / actions
List keempat : nama-nama tempat / places
6. Dan sebuah randomisasi

Start of making

Cerita diatas bisa dibuat sebagai berikut:

Once upon a time there was a ____ called ____ . ____ and some friends found themselves in the magic land of ____. This land was ruled by ____ the ____. All of sudden a mysterious voice spoken to them from high in the sky and said you must ____ ____ the ____ to lift the curse of not being able to use technology.

Yang pada akhirnya bisa dibuat sebagai berikut:

Once upon a time, there was a  actor_role called name. " pronoun and some friends found themselves in the magic land of magic_place. This land was ruled by actor_name the actor_role. All of a sudden a mysterious voice spoke to them from high in the sky and said you must quest actor_name the actor_role to lift the curse of not being able to use technology.

List

List yang dipakai:
roles = ["Knight", "Princess", "Prince", "Frog", "Wizard", "ogre"]
names = ["Ben", "Dave", "Liz", "Alex", "Rachel", "Clive", "Eben"]
actions = ["slay", "kiss", "save", "marry", "rescue", "eat"]
places = ["Computopia", "Turringville", "Digitopolis", "Bool city"]

Randomisasi

Randomisasi yang akan dipakai tapi sebelumnya harus mengimpor module random. Sebagai berikut:

import random

actor_name =  random.choice(names)
actor_role = random.choice(roles)
quest = random.choice(actions)
magic_place = random.choice(places)

Jika diperhatikan variabel hasil randomisasi inilah yang akan dipakaikan kedalam cerita dan taruh perintah import random di paling atas program.

Kondisi untuk mendapatkan pronoun

Tapi sebelumnya harus mendapatkan gender pengguna. Jadi langkah 3 dan 4 disatukan sebagai berikut:
gender = input ('Apakah kamu cowok atau cewek? ')
if gender == "girl":
    pronoun = "she"
elif gender == "boy":
    pronoun = "he"
else
    pronoun = "it"

Sebuah nama pengguna


Untuk mendapatkan nama pengguna sebagai berikut dan disimpan ke dalam variabel name.
name = input ('What is your name? ')

Merangkumkan program

name = input ('What is your name? ')
gender = input('Apakah kamu boy atau girl? ')
if gender == "girl":
    pronoun = "she"
elif gender == "boy"
    pronoun = "he"
else
    pronoun = "it"

 'List
roles = ["Knight", "Princess", "Prince", "Frog", "Wizard", "Ogre"]
names = ["Ben", "Dave", "Liz", "Alex", "Rachel", "Clive", "Eben"]
actions = ["slay", "kiss", "save", "marry", "rescue", "eat"]
places = ["Computopia", "Turringville", "Digitopolis", "Bool city"]

'Randomization
actor_name = random.choice(names)
actor_role = random.choice(roles)
quest = random.choice(actions)
magic_place = random.choice(places)

'Now, the story
Story = "Once upon a time, there was a " + actor_rule + "called " + name + ". " + pronoun + " and some friends found themselves in the magic land of " + magic_place + ". This land was ruled by " + actor_name + " the " + actor_role + ". All of sudden a mysterious voice spoke to them from high in the sky and said you must " + quest + " "  + actor_name + " the " + actor_role + " to lift the curse of not being able to use technology... "

The video to show:
 
Next project:
1. Membuat bible online yang bebas dari nama Allah.

Raspberry Projects

1. Turn on Raspberry into Ad-Blocker

Langkah:
1. Login ke Pi, masukkan username dan password.
Default username: pi, default password: raspberry.

2. Paste dan enter code berikut:
curl -s "https://raw.githubusercontent.com/jacobsalmela/pi-hole/master/automated%20install/basic-install.sh" | bash

3. Tunggu proses instalasi selesai

4. Setting komputer penguji lain di network kamu supaya menggunakan alamat IP pi sebagai DNS server.



2. Turn on a Raspberry Pi as VNC server

Langkah:
1. Login ke Pi, masukkan username dan password.
Default username: pi, default password: raspberry.

2. Ketik di Terminal Window "sudo apt-get update" untuk mengupdate sistem operasi rpi kamu ke versi paling terbaru.

3. Ketik "y" ketika ditanya.

4. Setelah proses updating selesai, ketikkan perintah/command: "sudo install tightvncserver". Tekan "y" dan tekan Enter ketika ditanya.

5. Setelah tight VNC server selesai diinstalasi, kamu dapat memulai software/program tight VNC server ini dengan mengetik: "vncserver:1"

6. Hal diatas akan membuat kamu diminta untuk memasukkan/membuat satu password. Ingat di kepala bahwa password dapat paling banyak 8 karakter.

7. Setelah kamu selesai menginputkan password, kamu selesai. Sekarang kamu dapat menggunakan komputer manapun di network kamu yang ada terinstal VNC client untuk mengakses secara rpi remote.

3. Turn on a Raspberry Pi as Wireless access point Router



Python Introduction

1. Printing
2. Variables
3. Basic math operator (add/tambah, subtract/kurang, multiply/kali)
4. Basic variable types(string, integers)
5. Concatenating string
6. Casting an integer to a string
7. Booleans (True/False)
8. Inequalities (Greater than / less than)
9. If/Else statements
10. Lists
11. List method
12. Adding list together with +
13. Sets
14. For loops
15. Indexing strings
16. Splitting strings
17. Tuples
18. Dictionaries


IDLE3 (Python Programming environment) mencakup:
1. Python shell window: to see result when you Run/F5 your code.
2. Python Editor Window: in which you can write, save and test your code.





Space recognition trick (Memorize program's code)

Module Module1

    Sub Main()
        FileOpen(1, "D:/hello.txt", OpenMode.Input)

        While Not EOF(1)
            Console.WriteLine(LineInput(1))
        End While

        Console.ReadLine()

    End Sub

End Module


For example:

Module is the most left of the code.
Sub Main() is space-out 1 space from Module and shifted a litle bit to the right.
FileOpen is shift a litle bit to the right and after the Sub Main.
While Not is aligned with FileOpen and space-out 1 space from FileOpen.
Console.writeline is shifted a litle bit to the right and inside While Not and End While.
End While is aligned to While Not
Console.readline is space-out 1 space from EndWhile and aligned to EndWhile
End Sub is space-out 1 space from console.readline() and aligned with Sub Main().
EndModule is space-out 1 space from End Sub and aligned with Module.

Pergi ke suatu tempat dan pulang dari suatu tempat dengan matahari


Investing

1. Picking individual stock.
2. Tracking individual stock daily performance.
3. Constantly buying and selling.

Saturday 21 February 2015

Man VS Machine


Algorithms are making it increasingly difficult for investors to beat the market.
Module Module1

    Sub Main()
        Dim s As Char = Nothing
        While s <> "Q"
            Console.WriteLine("Enter choice: ")
            s = Console.ReadLine
        End While

    End Sub

End Module

Wednesday 18 February 2015

Berikut kami informasikan persyaratan registrasi domain CO.ID : - Scan KTP/SIM/Passport Direktur/Penanggungjawab yang masih berlaku - Scan SIUP/TDP/Akta Notaris Pendirian Perusahaan (salah satu) - Scan Merek Dagang, apabila menggunakan nama domain berdasarkan merek dagangnya, bukan dari SIUP.

Tuesday 17 February 2015

Basic Automotive Maintenance

Checklist:
1. Check power steering fluid
2. Check washer fluid
3. Check coolant level
4. Check brake fluid level (rem)
5. Lubricate (minyaki) locks, hinges, hood latch
6. Check rubber seals around door
7. Check oil level
8. Check cabin air filter
9. Check and replace air filter
10. Check tire pressure
11. Replace wiper blades
12. Check bulbs
13. Keep a log book.


Daftar Input

1. Button
2. Checkbox
3. Color
4. Date
5. Datetime
6. Datetime-local
7. email
8. file
9. hidden
10. image
11. month
12. number
13. password
14. radio
15. range
16. reset
17. search
18. submit
19. text
20. time
21. url
22. week

1. Button

2. Checkbox

3. Color

4. Date

5. Datetime

6. Datetime-local

7. Email

8. File

9. Hidden

10. Image

11. Month

12. Number

13. Password

14. Radio

15. Range

16. Reset

17. Search

18. submit

19. Text

20. Time

21. Url

22. Week

Thursday 12 February 2015

Printer

Printer can do:
1. Bisa on body CD/DVD printing
2. Bisa automatic duplex
3. Printing A3
4. Bisa WIFI
5. Bisa scanning yang mana dapat juga sebagai standalone copier.
6. Bisa baca memory card
7. 

Monday 9 February 2015

Sunday 8 February 2015

My Web Page

A Paragraph


http://www.w3schools.com

Javascript place
1. Head
2. Body
3. External

Javascript can:
1. Validate




Step button:
1. Buat/tulis fungsi
2. 3. Buat button
3. Arahkan event button contoh(onclick) ke fungsi yang baru saja dibuat
4. tuliskan apa yang dilakukan suatu fungsi

Monday 2 February 2015

Inti dari alamat ip adalah jumlah bit-bit, jumlah bit untuk host, jumlah bit untuk subnet, dan jumlah bit untuk network.


1. Ada sebuah perusahaan ingin mengkoneksikan 3 buah cabangnya. Cabang 1 terdiri dari 200 host, cabang 2 terdiri dari 10 hosts, cabang 3 terdiri dari 20 hosts. Tentukan pola pengalamatannya (addressing scheme).

Bisa dimulai dari jumlah subnet, bisa dimulai dari jumlah hosts.

Metode 1: Easiest subnetmask
Diketahui ada 3 cabang atau subnetwork.
1 buah class c = 256 buah ip address dimulai dari angka 0 sampai angka 255. Ini cukup.
Jadi solusi pengalamatan untuk perusahaan ini:
192.168.1.0/24 untuk Cabang 1
192.168.2.0/24 untuk Cabang 2
192.168.3.0/24 untuk Cabang 3.

Pengalamatan ini sudah membuat 3 cabang ini bisa terkoneksi. Tanpa pusing-pusing subnetting.

Metode 2: Uniform subnet mask
Starting from left / kiri.
Uniform subnet mask adalah subnetting yang sama dengan menggunakan jumlah subnet.
Jumlah subnet yang dibutuhkan = 3, angka biner yang cocok = 4

Jadi solusi pengalamatan untuk perusahaan ini dengan metode ini adalah:
172.16.0.0/18
172.16.64.0/18
172.16.128.0/18
172.16.192.0/18

Notice (perhatikan!) bahwa prefix yang digunakan sama angkanya yaitu 18.

Notice juga bahwa jumlah alamat IP yang disediakan adalah 16.384 alamat IP, sangat berlebih untuk bahkan cabang 1 cabang yang paling besar yang membutuhkan 200 alamat IP. Mungkin alamat IP dapat digunakan untuk future growth?


Metode 3: Non-uniform (variable) subnet mask
Starting from right / kanan.

Non-uniform subnet mask adalah subnetting yang berbeda dengan memperhatikan jumlah host tiap subnetwork.

Yang perlu diperhatikan adalah jumlah host terbesar. Jika yang terbesar bisa disesuaikan maka yang kecil juga bisa disesuaikan.

Jumlah host yang terbesar adalah pada cabang 1 dengan jumlah 200 host.

Halo non-uniform subnetmask atau VLSM (Variabel Length Subnet Mask) bisa dilihat disini: http://vlsm-calc.net/