Nama : Muhammad Adjie |
Konfigurasi PPTP dan PPPoE sekaligus di router mikrotik
| Tanggal : 10/09/2015 |
Kelas : XII TKJ 4 | SK/KD : | |
No. Jobsheet : 011 | Guru : Bang Maman |
assalamualaikum wr.wb saya adjie, untuk menjawab pertanyaan teman",disini saya akan menjelaskan dan mengkonfigurasikan mikrotik sebagai PPTP dan PPPoE sekaligus (ujian kemarin). di artikel sebelumnya sudah dibahas apa itu vpn dan pppoe,pptp,di http://adjie404-albahri.blogspot.com/2015/10/konfigurasi-pppoe-1-server-dan-2-client.html
maka dari itu saya akan langsung saja ke konfigurasi'nya
I. TOPOLOGI
pertama-tama siapkan topologi seperti dibawah ini
II. TUJUAN KONFIGURASI
tujuan konfigurasi kali ini adalah untuk membuat pptp server dan pppoe server dalam satu buah router mikrotik (router a),serta juga menjadikan mikrotik sebagai pppoe client(kantor c) dan pptp client (kantor b)
III. ALAT DAN BAHAN
1. GNS3
2. VirtualBox
3. Mikrotik RouterOS
4. VPCS
5. Cloud (koneksi internet)
6. Windows XP (meremote dgn winbox)IV. LANGKAH-LANGKAH KONFIGURASI
1. Pertama-tama masuk ke Router ISP dari winbox
2. Di router ISP ,kita hanya memberikan IP address saja ke tiap" kantor (IP Public)
IP > Address > + > Address: 180.211.94.233/30Network: 180.211.94.232Interface : ether1
3.
IP > Address > + > Address: 160.100.100.101/30Network: 160.100.100.100Interface : ether2
4. Sekarang kita masuk ke KANTOR_A
5. Konfigurasikan IP address tiap" interfaces di KANTOR_A seperti ini (seperti di topologi)
6. setelah itu tambahkan ip firewall nat di kantor a
Ip > firewall > nat > + > chain : srcnat
Src.Address: 180.180.100.0/24
Out. Interface : ether2
Action : masquerade
7.
Ip > firewall > nat > + > chain : srcnat
Out. Interface : ether2
Action : masquerade
8.
Ip > firewall > nat > + > chain : srcnat
Src.Address: 192.168.10.0/24
Out. Interface : ether1
Action : masquerade
9.
Ip > firewall > nat > + > chain : srcnat
Src.Address: 192.168.20.0/24
Out. Interface : ether2
Action : masquerade
10. tambahkan ip routes di kantor a
Ip > routes > + > Dst address : 0.0.0.0/0
Gateway : 192.168.11.1
11.
Ip > routes > + > Dst address :160.100.100.100/30
Gateway : 180.211.94.233
12
Ip > routes > + > Dst address :192.168.20.0/24
Gateway : 192.168.11.1
13. Buatlah ip pool untuk PPPoE di kantor A
IP > Pool > + Name : PPPoe_Pool
Address : 180.180.100.10-180.180.100.24
14. Buat Profiles untuk PPPoE
PPP > PPP Profile > + > Name: Profile_PPPoE (untuk menamai profil PPPoE)
Local address : 180.180.100.1 (local address untuk server pppoe)
Remote address: PPPoE_Pool (ip pool yg sudah dibuat untuk pppoe client)
15. Tambahkan PPPoE Servers
Tab PPPoE Servers > +
Service Name : SERVER_PPPoE_ADJIE
Interface : ether3 ( interface yg menuju switch yg akan menuju ke client pppoe )
Default profile : default
16. masuk ke pppoe secrets (untuk menambahkan user dan password client pppoe)
tab Secrets > +
Name : adjie.pppoe
Password : 1357
Service : pppoe (jangan lupa dipilih yg pppoe)
Profile : Profile_PPPoE (profil pppoe yg tadi sudah dibuat)
17. Nah untuk konfig pppoe sudah selesai , masih kantor A ,sekarang kita akan mengkonfigurasi PPTP nya. aktifkan PPTP Server
PPP > tab interface >cari PPTP server > klik > centang : "Enabled" > default profile : default-encryption > apply
18. tambahkan pptp secrets (untuk menambahkan user dan password client pptp)
tab Secrets > +Name : adjie.pptpPassword :1357Service : anyProfile : default-encryption
Local address : 10.1.1.1Remote address : 10.2.2.2Lalu apply
19. Setelah itu tambahkan DHCP Server ke LAN di Ether 5 (192.168.20.0/24)
20. Tambahkan DNS Servers di Kantor A
Servers : 8.8.8.8 , 8.8.4.4
Jgn Lupa Di Centang Allow Remote Request ;)
21. Konfigurasi di KANTOR A telah selesai ,sekarang kita coba masuk ke KANTOR B :)
22. Tambahkan IP address di Kantor B
Address
: 160.100.100.102/30 Address : 192.168.30.1/24
Network
: 160.100.100.100
Network : 192.168.30.0
Interface
: ether1
Interface : ether2
23. Tambahkan IP firewall Nat di KANTOR B
Ip
> firewall > nat > + > chain : srcnat
Src.Address:
192.168.30.0/24
Out.
Interface : ether1
Action
: masquerade
24. Tambahkan juga DNS servers
25. Tambahkan IP Route di Kantor B
Ip > routes > + > Dst address : 0.0.0.0/0
Gateway : 160.100.100.101
26. Tambahkan interface PPTP Client di Kantor B
Interfaces > + > PPTP Client
27. Lalu akan muncul tampilan seperti ini , di tab dial out ,isikan ip address public dari kantor a dan juga secret yang sudah dibuat sebelumnyadi kantor a
Connect to : 180.211.94.234
User : adjie.pptp
password : 1357
profile : default-encryption
28. Tambahkan DHCP Server ke LAN Kantor B ( 192.168.30.0/24 )
29. Serta tambahkan IP routes ke PPTP Server di kantor B
Ip > routes > + > Dst address :192.168.10.0/24
Gateway :pptp-out1
30. Sekarang kita beranjak ke kantor C ,masuk ke kantor C ,setelah itu , berilah IP address
Address
: 180.180.100.2/24 Address : 192.168.10.1/24
Network
: 180.180.100.0
Network : 192.168.10.0
Interface
: ether1
Interface : ether2
31. Tambahkan interfaces PPPoE client di Kantor C
Interfaces > + > PPPoE Client
32. Maka akan muncul wizard seperti ini ,di tab general
Name : pppoe-out1
Interfaces : ether1 (kabel yang menuju ke pppoe servers)
33. Tadi di general ,nah ,sekarang kita ke tab dial out
User : adjie.pppoe
Password : 1357
Profile : default
lalu apply
Jika sudah terhubung, maka di interfaces bisa dilihat ada indikator tanda "R",jika tidak ada ,cobalah ulangi lagi sampai berhasil
34. Sekarang tambahkan Routes di kantor C agar bisa terkoneksi dengan baik ke pppoe server
Ip > routes > + > Dst address : 0.0.0.0/0
Gateway : pppoe-out1
35. Tambahkan IP dns di kantor C
36. Dan juga DHCP Server untuk ke LAN kantor C nya (ether2) :)
37. Tambahkan IP firewall nat ke interface pppoe agar bisa terhubung ke internet
Ip
> firewall > nat > + > chain : srcnat
Src.Address: 182.168.10.0/24
Out.
Interface :pppoe-out1
Action
: masquerade
38. Oh iya hampir aja lupa , tambahkan IP Route Ke interface PPTP , Di KANTOR_A (masuk lagi dah ke kantor a hehe )
Ip > routes > + > Dst address : 192.168.30.0/24
Gateway :<pptp-adjie.pptp>
39. Konfigurasi pun selesai :)
V. TESTING KONFIGURASI
1. Testing Konfigurasi di PC 1 ,apakah bisa mendapatan ip dhcp dan bisa ping ke internet melalui PPPoE Client di router mikrotik.
dan ternyata bisa
2. Test ping antara PPTP server dan PPTP client di masing" LAN router Kantor A dan Kantor B, dan ternyata juga mereka saling terhubung. itu tandanya konfigurasi telah berjalan dengan sebagaimana mestinya :)
3. Dan juga test koneksi internet PC3 di LAN kantor A ,jika seperti ini ,maka semua konfigurasi telah selesai :)
VI . KESIMPULAN
Demikianlah jobsheet dari saya mengenai konfigurasi PPTP dan PPPoE ,semoga bermanfaat :)
Wassalamualaikum wr.wb
Sign up here with your email
ConversionConversion EmoticonEmoticon