SlideShare une entreprise Scribd logo
1  sur  4
Mumpung belum terlambat, tulisan ini sedikit sharing untuk bahasan (bukan bocoran loh..hehe) soal Paket 2 –
UKK TKJ 2014. Soalnya kurang lebih seperti berikut:
Baik, kita langsung aja yah. Asumsikan sekarang PC Routernya sudah terinstall sistem operasi MikroTik dan
tampilan di layar monitornya seperti gambar berikut:
Tambahkan ip address pada interface yang mengarah ke internet (public), di dalam soal ditentukan
menggunakan ether1.
[admin@MikroTik] > ip address add address=192.168.1.2/24 interface=ether1 comment=public [tekan enter]
Setelah memasukkan perintah di atas, harusnya saat mengetikkan perintah ping 192.168.1.1 harusnya
tampilannya seperti berikut:
Reply from 192.168.1.1: bytes=32 time=95ms TTL=45
Reply from 192.168.1.1: bytes=32 time=88ms TTL=45
Reply from 192.168.1.1: bytes=32 time=91ms TTL=45
Reply from 192.168.1.1: bytes=32 time=85ms TTL=45
Selanjutnya tambahkan ip address berikutnya pada interface yang akan digunakan oleh local, menggunakan
ether2
[admin@MikroTik] > ip address add address=10.10.10.1/27 interface=ether2 comment=local [tekan enter]
Agar router dapat berkomunikasi dengan internet dan bisa menjangkau alamat website (domain) maka wajib
memasukkan kedua perintah berikut ini:
[admin@MikroTik] > ip route add gateway=192.168.1.1 [tekan enter]
[admin@MikroTik] > ip dns set server=192.168.1.1,8.8.8.8 [tekan enter]
Keempat perintah diatas Anda masukkan, berarti sudah melakukan pengaturan ip address pada 2 interface yang
ditentukan pada soal dan telah mengatur routing ke Internet.
Saatnya kita melompat untuk konfigurasi Hotspot terlebih dahulu, sengaja saya tidak mengatur NAT dan Limit
Bandwidth karena saat konfigurasi Hotspot selesai dilakukan dengan baik, maka konfigurasi NAT dengan
sendirinya terbuat dan dari menu Hotspot nantinya kita akan melimit bandwidth sesuai yang diminta pada soal di
atas.
Cukup mudah untuk melakukan setup Hostpot di MikroTik, Anda bisa sambil pejamkan mata dan enter :)
Berikut langkah-langkahnya:
[admin@MikroTik] > ip hotspot setup [tekan enter]
Select interface to run HotSpot on
hotspot interface: ether2 [tekan enter]
Set HotSpot address for interface
local address of network: 10.10.10.1/27 [tekan enter]
masquerade network: yes [tekan enter, perintah ini akan membuat konfiguasi NAT, seperti yang saya sebutkan tadi
bahwa terbuat dengan sendirinya]
Set pool for HotSpot addresses
address pool of network: 10.10.10.2-10.10.10.30 [tekan enter]
Select hotspot SSL certificate
select certificate: none [hapus tulisan: import-other-certificate, ganti menjadi: none, lalu tekan enter]
Select SMTP server
ip address of smtp server: 0.0.0.0 [tekan enter]
Setup DNS configuration
dns servers: 192.168.1.1,8.8.8.8 [tekan enter]
DNS name of local hotspot server
dns name: smktkj.net [tekan enter]
Create local hotspot user
name of local hotspot user: admin [tekan enter]
password for the user: 1234 [tuliskan 1234, lalu enter]
Well done, sampai disini, konfigurasi hotspot di MikroTik sudah jadi. Bener kan kalau tutup mata aja dan enter
bisa selesai ;).
Saatnya kita memberlakukan kebijakan batas [limit] bandwidth pada client, neh perintahnya:
[admin@MikroTik] > ip hotspot user profile add name=limit_user rate-limit=256k/128k [tekan enter]
Nah, tinggal nambahin user sebanyak 25 di Hostpot yang sudah kita buat.
[admin@MikroTik] > ip hotspot user add profile=limit_user password=1234 name=user1 [tekan enter]
Agar tidak kelamaan nulis, mending tekan tanda panah atas pada keyboard, maka akan muncul perintah
sebelumnya, ganti nilai akhir secara berurutan, nilai 1 menjadi 2, lalu 2 nya diganti ke 3 hingga angkanya 25,
perintahnya sebagai berikut:
[admin@MikroTik] > ip hotspot user add profile=limit_user password=1234 name=user1 [ganti 1 seperti berikut]
[admin@MikroTik] > ip hotspot user add profile=limit_user password=1234 name=user2 [tekan enter]
[admin@MikroTik] > ip hotspot user add profile=limit_user password=1234 name=user3 [tekan enter]
Lakukan terus…
[admin@MikroTik] > ip hotspot user add profile=limit_user password=1234 name=user21 [tekan enter]
[admin@MikroTik] > ip hotspot user add profile=limit_user password=1234 name=user22 [tekan enter]
[admin@MikroTik] > ip hotspot user add profile=limit_user password=1234 name=user23 [tekan enter]
[admin@MikroTik] > ip hotspot user add profile=limit_user password=1234 name=user24 [tekan enter]
[admin@MikroTik] > ip hotspot user add profile=limit_user password=1234 name=user25 [tekan enter]
Asyik…nambah usernya sudah selesai, sisa 1 yang tersisa, memblok akses menuju 2 situs
: http://www.youtube.com danhttp://www.facebook.com, mau nambahin blok ke http://www.PhinisiTraining.com juga
bisa hehe..
Perintahnya dapat di lihat dibawah ini:
[admin@MikroTik] > ip hotspot walled-garden add dst-host=www.facebook.com action=deny [tekan enter]
[admin@MikroTik] > ip hotspot walled-garden add dst-host=www.youtube.com action=deny [tekan enter]
[admin@MikroTik] > ip hotspot walled-garden add dst-host=www.PhinisiTraining.com action=deny [tekan enter]
Setelah semua perintah di atas dimasukkan, sekarang silakan coba menyambungkan kabel dari port ether2 (port
local, yang telah disetup-kan Hostpot) ke laptop yang Anda siapkan. Kosongkan terlebih dahulu konfigurasi IP
pada laptop, lalu tunggu hingga mendapatkan ip secara otomatis dari DCHP Server MikroTik, setelah berhasil
mendapatkannya, selanjutnya coba Anda buka browser dan lakukan browsing.
Jika tidak ada aral melintang, harusnya browsing Anda akan diarahkan ke halaman login MikroTik dengan
tampilan seperti berikut:
Masukkan user name dan password yang telah Anda buat
sebelumnya (ada 25 user), gunakan salah satunya. Dan coba akses ke internet menggunakan 2 alamat yang
sudah di blokir sebelumnya, jika gagal, selamat Anda berhasil. Terakhir, lakukan akses selain ke alamat yang
sudah di blok, misalnya www.Phinisi.co.id, jika terbuka berarti sekali lagi selamat, Anda telah menyelesaikan ujian
ini dengan baik :)
Share this:

Contenu connexe

En vedette

Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 

En vedette (20)

Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 

Mikrotik

  • 1. Mumpung belum terlambat, tulisan ini sedikit sharing untuk bahasan (bukan bocoran loh..hehe) soal Paket 2 – UKK TKJ 2014. Soalnya kurang lebih seperti berikut: Baik, kita langsung aja yah. Asumsikan sekarang PC Routernya sudah terinstall sistem operasi MikroTik dan tampilan di layar monitornya seperti gambar berikut: Tambahkan ip address pada interface yang mengarah ke internet (public), di dalam soal ditentukan menggunakan ether1. [admin@MikroTik] > ip address add address=192.168.1.2/24 interface=ether1 comment=public [tekan enter] Setelah memasukkan perintah di atas, harusnya saat mengetikkan perintah ping 192.168.1.1 harusnya tampilannya seperti berikut: Reply from 192.168.1.1: bytes=32 time=95ms TTL=45 Reply from 192.168.1.1: bytes=32 time=88ms TTL=45 Reply from 192.168.1.1: bytes=32 time=91ms TTL=45 Reply from 192.168.1.1: bytes=32 time=85ms TTL=45
  • 2. Selanjutnya tambahkan ip address berikutnya pada interface yang akan digunakan oleh local, menggunakan ether2 [admin@MikroTik] > ip address add address=10.10.10.1/27 interface=ether2 comment=local [tekan enter] Agar router dapat berkomunikasi dengan internet dan bisa menjangkau alamat website (domain) maka wajib memasukkan kedua perintah berikut ini: [admin@MikroTik] > ip route add gateway=192.168.1.1 [tekan enter] [admin@MikroTik] > ip dns set server=192.168.1.1,8.8.8.8 [tekan enter] Keempat perintah diatas Anda masukkan, berarti sudah melakukan pengaturan ip address pada 2 interface yang ditentukan pada soal dan telah mengatur routing ke Internet. Saatnya kita melompat untuk konfigurasi Hotspot terlebih dahulu, sengaja saya tidak mengatur NAT dan Limit Bandwidth karena saat konfigurasi Hotspot selesai dilakukan dengan baik, maka konfigurasi NAT dengan sendirinya terbuat dan dari menu Hotspot nantinya kita akan melimit bandwidth sesuai yang diminta pada soal di atas. Cukup mudah untuk melakukan setup Hostpot di MikroTik, Anda bisa sambil pejamkan mata dan enter :) Berikut langkah-langkahnya: [admin@MikroTik] > ip hotspot setup [tekan enter] Select interface to run HotSpot on hotspot interface: ether2 [tekan enter] Set HotSpot address for interface local address of network: 10.10.10.1/27 [tekan enter] masquerade network: yes [tekan enter, perintah ini akan membuat konfiguasi NAT, seperti yang saya sebutkan tadi bahwa terbuat dengan sendirinya] Set pool for HotSpot addresses address pool of network: 10.10.10.2-10.10.10.30 [tekan enter] Select hotspot SSL certificate select certificate: none [hapus tulisan: import-other-certificate, ganti menjadi: none, lalu tekan enter] Select SMTP server ip address of smtp server: 0.0.0.0 [tekan enter] Setup DNS configuration dns servers: 192.168.1.1,8.8.8.8 [tekan enter] DNS name of local hotspot server dns name: smktkj.net [tekan enter] Create local hotspot user name of local hotspot user: admin [tekan enter] password for the user: 1234 [tuliskan 1234, lalu enter]
  • 3. Well done, sampai disini, konfigurasi hotspot di MikroTik sudah jadi. Bener kan kalau tutup mata aja dan enter bisa selesai ;). Saatnya kita memberlakukan kebijakan batas [limit] bandwidth pada client, neh perintahnya: [admin@MikroTik] > ip hotspot user profile add name=limit_user rate-limit=256k/128k [tekan enter] Nah, tinggal nambahin user sebanyak 25 di Hostpot yang sudah kita buat. [admin@MikroTik] > ip hotspot user add profile=limit_user password=1234 name=user1 [tekan enter] Agar tidak kelamaan nulis, mending tekan tanda panah atas pada keyboard, maka akan muncul perintah sebelumnya, ganti nilai akhir secara berurutan, nilai 1 menjadi 2, lalu 2 nya diganti ke 3 hingga angkanya 25, perintahnya sebagai berikut: [admin@MikroTik] > ip hotspot user add profile=limit_user password=1234 name=user1 [ganti 1 seperti berikut] [admin@MikroTik] > ip hotspot user add profile=limit_user password=1234 name=user2 [tekan enter] [admin@MikroTik] > ip hotspot user add profile=limit_user password=1234 name=user3 [tekan enter] Lakukan terus… [admin@MikroTik] > ip hotspot user add profile=limit_user password=1234 name=user21 [tekan enter] [admin@MikroTik] > ip hotspot user add profile=limit_user password=1234 name=user22 [tekan enter] [admin@MikroTik] > ip hotspot user add profile=limit_user password=1234 name=user23 [tekan enter] [admin@MikroTik] > ip hotspot user add profile=limit_user password=1234 name=user24 [tekan enter] [admin@MikroTik] > ip hotspot user add profile=limit_user password=1234 name=user25 [tekan enter] Asyik…nambah usernya sudah selesai, sisa 1 yang tersisa, memblok akses menuju 2 situs : http://www.youtube.com danhttp://www.facebook.com, mau nambahin blok ke http://www.PhinisiTraining.com juga bisa hehe.. Perintahnya dapat di lihat dibawah ini: [admin@MikroTik] > ip hotspot walled-garden add dst-host=www.facebook.com action=deny [tekan enter] [admin@MikroTik] > ip hotspot walled-garden add dst-host=www.youtube.com action=deny [tekan enter] [admin@MikroTik] > ip hotspot walled-garden add dst-host=www.PhinisiTraining.com action=deny [tekan enter] Setelah semua perintah di atas dimasukkan, sekarang silakan coba menyambungkan kabel dari port ether2 (port local, yang telah disetup-kan Hostpot) ke laptop yang Anda siapkan. Kosongkan terlebih dahulu konfigurasi IP pada laptop, lalu tunggu hingga mendapatkan ip secara otomatis dari DCHP Server MikroTik, setelah berhasil mendapatkannya, selanjutnya coba Anda buka browser dan lakukan browsing. Jika tidak ada aral melintang, harusnya browsing Anda akan diarahkan ke halaman login MikroTik dengan tampilan seperti berikut:
  • 4. Masukkan user name dan password yang telah Anda buat sebelumnya (ada 25 user), gunakan salah satunya. Dan coba akses ke internet menggunakan 2 alamat yang sudah di blokir sebelumnya, jika gagal, selamat Anda berhasil. Terakhir, lakukan akses selain ke alamat yang sudah di blok, misalnya www.Phinisi.co.id, jika terbuka berarti sekali lagi selamat, Anda telah menyelesaikan ujian ini dengan baik :) Share this: