Assalamu'alaikum.wr.wb.
Disini saya akan posting laporan yang saya buat mengenai materi setting koneksi internet dengan router Mikrotik (via LAN).
Here I will post my report on lesson the Internet connection settings Mikrotik router (via LAN).
Topologi
- Dapat mengetahui cara konfigurasi interface .
- Dapat mengetahui cara enable/disable interface.
- Dapat mengetahui cara konfigurasi interface menjadi switch.
- Dapat mengetahui cara konfigurasi internet static dan dynamic.
- Dapat mengetahui cara firewall NAT.
- To know how to configure the interface.
- To know how to enable/disable the interface.
- To know how to configure the interface into the switch.
- To know how to configure static and dynamic internet.
- To know how to configure NAT firewall.
B. Perlengkapan
B. Materials
- 1 unit PC/Notebook
- RouterBoard series 951G-2HnD
- Switch Cisco
- UTP Cables
- Cable Power RouterBoard
- WinBox
C. Langkah-langkah
C. Steps
Non-aktifkan Virtual Host-Only Network dan Wireless Network Connection di Control Panel->Network and Internet->Network Connections.
Disable Virtual Host-Only Network and Wireless Network Connection in the Control Panel-> Network and Internet-> Network Connections.
- Dapat mengetahui cara enable/disable interface.
- Dapat mengetahui cara konfigurasi interface menjadi switch.
- Dapat mengetahui cara konfigurasi internet static dan dynamic.
- Dapat mengetahui cara firewall NAT.
- To know how to configure the interface.
- To know how to enable/disable the interface.
- To know how to configure the interface into the switch.
- To know how to configure static and dynamic internet.
- To know how to configure NAT firewall.
B. Perlengkapan
B. Materials
- 1 Unit PC/Laptop
- RouterBoard series R951G-2HnD
- Switch Cisco
- Switch Cisco
- Kabel UTP
- Kabel Power RouterBoard
- WinBox
- WinBox
- 1 unit PC/Notebook
- RouterBoard series 951G-2HnD
- Switch Cisco
- UTP Cables
- Cable Power RouterBoard
- WinBox
C. Langkah-langkah
C. Steps
Non-aktifkan Virtual Host-Only Network dan Wireless Network Connection di Control Panel->Network and Internet->Network Connections.
Disable Virtual Host-Only Network and Wireless Network Connection in the Control Panel-> Network and Internet-> Network Connections.
Buka WinBox, akses dengan MAC Address.
Open WinBox, access via MAC Address.
Open WinBox, access via MAC Address.
Login sebagai admin dan password kosong lalu klik 'Connect'.
Login as admin and the password empty then click 'Connect'.
1. Konfigurasi Interface
1. Configuration Interface
1. Configuration Interface
- Via CLI
Pilih 'New Terminal'.
Select 'New Terminal'.
Ketik perintah 'interface print' untuk mengetahui interface yang digunakan. Saya akan menkonfigurasi interface pada ether1 dan ether2.
Type the command 'interface print' to determine the interface used. I will configure the interfaces on ether1 and ether2.
Ketik perintah 'interface set (nomor yang digunakan pada ether1) name=public' dan 'interface set (nomor yang digunakan pada ether2) name=local'.
Type the command "interface set (the number used on ether1) name = public' and 'interface set (the number used in ether2) name = local'.
Ketik perintah 'interface print' untuk melihat sudah berubah atau belum interface yang dikonfigurasi. Terlihat sudah berhasil berubah interface pada ether1 menjadi public dan interface ether2 menjadi local.
Type the command 'interface print to see is changed interface is configured. Looks already successfully changed the interface ether1 into public and interface ether into local.
- Via GUI
Pilih 'Interfaces', karena sudah dikonfigurasi via CLI maka terlihat sudah terubah ether1 dan ether2 menjadi public dan local. Untuk via GUI, klik tanda '+' untuk mengubah nama interface.
Select 'Interfaces', because it is configured via CLI then look ether1 and ether2 already changed into public and local. For via the GUI, click '+' to change the name of the interface.
Select 'Interfaces', because it is configured via CLI then look ether1 and ether2 already changed into public and local. For via the GUI, click '+' to change the name of the interface.
2. Aktifkan/Non-aktifkan Interface
2. Enable/Disable Interface
2. Enable/Disable Interface
- Via CLI
Ketik perintah 'interface print' untuk mengetahui interface yang digunakan. Saya non-aktifkan interface pada ether3, ether5, dan wlan1.
Type the command 'interface print to determine the interface used. I disable the interface on ether3, ether5, and wlan1.
Type the command 'interface print to determine the interface used. I disable the interface on ether3, ether5, and wlan1.
Ketik perintah 'interface disable (nomor yang digunakan pada ether3, ether5, dan wlan1)'. Lalu ketik perintah 'interface print' untuk melihat sudah berubah atau belum interface yang dinon-aktifkan. Terlihat sudah berhasil berubah dan terdapat tanda 'X' pada ether3, ether5, dan wlan1 yang berarti ternon-aktifkan.
Type the command 'interface is disabled (the number used in ether3, ether5, and wlan1)'. Then type the command 'interface print' to see is changed interface is disabled. Looks already successfully changed and there is a mark 'X' on ether3, ether5, and wlan1 which means disable.
- Via GUI
Pilih 'Interfaces', karena sudah dinon-aktifkan via CLI, terlihat tidak aktif interface ether3, ether5, dan wlan1. Untuk via GUI, klik 2x pada ether3, ether5, dan wlan1.
Select 'Interfaces', because it has been disabled via the CLI, looks inactive interfaces ether3, ether5, and wlan1. For via the GUI, double click on ether3, ether5, and wlan1.
Select 'Interfaces', because it has been disabled via the CLI, looks inactive interfaces ether3, ether5, and wlan1. For via the GUI, double click on ether3, ether5, and wlan1.
Klik 'Disable' lalu 'Apply' dan 'OK' untuk interface ether3. Lakukan hal yang sama untuk ether5, dan wlan1 seperti ether3 untuk menon-aktifkan via GUI.
Click the 'Disable' and then 'Apply' and 'OK' to interface ether3. Do the same for ether5, and wlan1 like ether3 to disable via the GUI.
Click the 'Disable' and then 'Apply' and 'OK' to interface ether3. Do the same for ether5, and wlan1 like ether3 to disable via the GUI.
Terlihat sudah ternon-aktifkan interface ether3, ether5, dan wlan1.
Looks already disabled interfaces ether3, ether5, and wlan1.
Looks already disabled interfaces ether3, ether5, and wlan1.
- Via CLI
Saya ingin mengaktifkan interface wlan1 dan ether3. Ketik perintah 'interface enable (nomor yang digunakan pada wlan1). Ketik perintah 'interface print', terlihat interface wlan1 sudah aktif.
I will enable the interface wlan1 and ether3. Type the command 'interface is enabled (the number used in wlan1)'. Type the command 'interface print, look wlan1 interface is enable.
Ketik perintah 'interface enable (nomor yang digunakan pada ether3). Ketik perintah 'interface print', terlihat interface ether3 sudah aktif.
Type the command 'interface is enabled (the number used in ether3)'. Type the command 'interface print', look ether3 interface is enable.
- Via GUI
Pilih 'Interfaces', karena sudah diaktifkan via CLI, terlihat aktif interfaces wlan1. Untuk via GUI, klik terlebih dahulu interface pada wlan1 lalu klik tanda centang untuk mengaktifkan interface. Lakukan hal yang sama untuk ether3 seperti wlan1 untuk mengaktifkan via GUI.
Select 'Interfaces', because it has been enabled via the CLI, were enable interfaces wlan1. For via the GUI, click first on wlan1 interface and click tick to enable the interface. Do the same for ether3 as wlan1 to enable via the GUI.
3. Konfigurasi Ethernet menjadi Switch
3. Configure Ethernet into Switch
3. Configure Ethernet into Switch
Pilih 'New Terminal'.
Select 'New Terminal'.
Ketik perintah 'interface ethernet print' untuk mengetahui interface ethernet yang digunakan. Saya mengubah ether3, ether 4, dan ether 5.
Type the command 'interface ethernet print' to know the ethernet interface is used. I changed ether3, ether 4, and ether 5.
Ketik perintah 'interface ethernet set (nomor interface yang digunakan) master-port=local'.
Type the command 'ethernet interface set (number of interface used) master-port = local'.
Ketik perintah 'interface ethernet print' untuk melihat hasil konfigurasi. Terlihat master-port sudah berubah menjadi local.
Type the command 'interface ethernet print' to see the results of the configuration. Looks master-port has changed into a local.
4. Konfigurasi Internet (Static)
4. Configure Internet (Static)
A. IP Address
4. Configure Internet (Static)
A. IP Address
- Via CLI
Pilih 'New Terminal'.
Select 'New Terminal'.
Ketik perintah 'ip address add address=172.16.11.121/24 interface=public' dan 'ip address add address=192.168.21.1/29 interface=local'. Ketik perintah 'ip address print' untuk melihat ip address yang sudah dikonfigurasi menjadi static.
Type the command 'ip address add address = 172.16.11.121/24 interface=public' and 'ip address add address=192.168.21.1/29 interface = local'. Type the command 'ip address print' to see the IP address that has been configured to be static.- Via GUI
Pilih 'IP' lalu 'Addresses'.
Select 'IP' and 'Addresses'.
Select 'IP' and 'Addresses'.
Karena sudah dikonfigurasi via CLI, terlihat IP Address yang sudah konfigurasi untuk interface public dan local. Untuk via GUI, klik tanda '+' untuk mengatur IP Address menjadi static.
Because it is configured via CLI, looks IP address that has been configured for the interface and the local public. For via the GUI, click '+' to set a IP address into static.
Saya akan menambahkan IP Address static untuk interface wlan1, Tulis IP Address dan Network pilih interface wlan1, lalu klik 'Apply' dan 'OK'.
I will add a static IP address to the interface wlan1, Write the IP Address and Network select wlan1 interface, then click 'Apply' and 'OK'.
I will add a static IP address to the interface wlan1, Write the IP Address and Network select wlan1 interface, then click 'Apply' and 'OK'.
Terlihat IP Address untuk interfaces wlan1.
Look IP Address for interfaces wlan1.
B. Gateway
- Via CLI
Pilih 'New Terminal'.
Select 'New Terminal'.
Select 'New Terminal'.
Ketik perintah 'ip route add dst-address=0.0.0.0/0 gateway=172.16.11.1'. Ketik perintah 'ip route print' untuk melihat gateway yang sudah dikonfigurasi.
Type the command 'ip route add dst-address = 0.0.0.0/0 gateway = 172.16.11.1.' Type the command 'ip route print' to see the gateway that has been configured.
Type the command 'ip route add dst-address = 0.0.0.0/0 gateway = 172.16.11.1.' Type the command 'ip route print' to see the gateway that has been configured.
- Via GUI
Pilih 'IP' lalu 'Routes'.
Select 'IP' lalu 'Routes'.
Select 'IP' lalu 'Routes'.
Karena sudah dikonfigurasi via CLI, terlihat gateway yang sudah dikonfigurasi.
Because it is configured via CLI, look gateway has been configured.
Untuk via GUI, klik tanda '+' untuk mengatur gateway yang ingin digunakan.
For via the GUI, click '+' to set the gateway want to use.
Tulis gateway '172.16.11.1' lalu 'Apply' dan 'OK'.
Write gateway '172.16.11.1' then 'Apply' and 'OK'.
Ping ke gateway, apabila tidak request time out, maka telah berhasil konfigurasi gateway.
Ping the gateway, if not request time out, it has successful gateway configuration.
C. DNS
Ketik perintah 'ip dns set server=202.43.178.245 allow-remote-requests=yes'. Ketik perintah 'ip dns print' untuk melihat dns yang sudah dikonfigurasi.
Type the command 'ip dns server set=202.43.178.245 allow-remote-requests=yes'. Type the command 'ip dns print' to see dns configured.
Type the command 'ip dns server set=202.43.178.245 allow-remote-requests=yes'. Type the command 'ip dns print' to see dns configured.
- Via GUI
Pilih 'IP' lalu 'DNS'.
Select 'IP' then 'DNS'.
Select 'IP' then 'DNS'.
Tulis DNS '202.43.178.245', centang 'Allow Remote Requests' lalu 'Apply' dan 'OK'.
Write DNS '202.43.178.245', tick 'Allow Remote Requests' and then 'Apply' and 'OK'.
Write DNS '202.43.178.245', tick 'Allow Remote Requests' and then 'Apply' and 'OK'.
Ping ke google.com, apabila tidak request time out, maka telah berhasil konfigurasi DNS.
Ping google.com, if not request time out, it has successfull DNS configuration.
Ping google.com, if not request time out, it has successfull DNS configuration.
Selain ping ke google, saya mencoba ping ke blog saya.
Besides ping to google, I tried to ping my blog.
5. Konfigurasi Internet (DHCP)
5. Configure Internet (DHCP)
- Via CLI
Ketik perintah 'ip address print' untuk melihat nomor yang digunakan pada interface public.
Type the command 'ip address print' to see the number used on the public interface.
Type the command 'ip address print' to see the number used on the public interface.
Hapus IP Address pada interfaces public dengan perintah 'ip address remove numbers=0', lalu ketik perintah 'ip address print', terlihat ip address pada interface public sudah terhapus.
Delete the IP address on the public interfaces with the command 'ip address remove numbers=0', then type the command 'ip address print', look public IP address on the interface has been erased.
Delete the IP address on the public interfaces with the command 'ip address remove numbers=0', then type the command 'ip address print', look public IP address on the interface has been erased.
Ketik perintah 'ip dhcp-client add interface=public add-default-route=yes use-peer-dns=yes use-peer-ntp=yes', lalu ketik perintah 'ip dhcp-client print', terlihat masih non-aktif DHCP client pada interface public.
Type the command 'ip dhcp-client add interface=public add-default-route=yes use-peer-dns=yes use-peer-ntp=yes', then type the command 'ip dhcp-client print', look still disable DHCP client on the public interface.
Type the command 'ip dhcp-client add interface=public add-default-route=yes use-peer-dns=yes use-peer-ntp=yes', then type the command 'ip dhcp-client print', look still disable DHCP client on the public interface.
Untuk mengaktifkan, ketik perintah 'ip dhcp-client enable numbers=0', lalu ketik perintah 'ip dhcp-client print', terlihat sudah aktif DHCP client.
To enable, type the command 'ip dhcp-client enable numbers=0', then type the command 'ip dhcp-client print', seen already enable DHCP client.
To enable, type the command 'ip dhcp-client enable numbers=0', then type the command 'ip dhcp-client print', seen already enable DHCP client.
- Via GUI
Pilih 'IP' lalu 'DHCP Client'.
Select 'IP' and 'DHCP Client'.
Select 'IP' and 'DHCP Client'.
Karena sudah dikonfigurasi via CLI, terlihat DHCP yang sudah dikonfigurasi pada interface public.
Because it is configured via CLI, looks DHCP configured on the public interface.
For via the GUI, click '+' to set DHCP-Client.
Pilih interface 'public', lalu centang 'Use Peer DNS' dan 'Use Peer NTP'. Klik 'Apply' lalu 'OK'.
Select interface 'public' then tick 'Use Peer DNS' and 'Use NTP Peer'. Click 'Apply' and 'OK'
Select interface 'public' then tick 'Use Peer DNS' and 'Use NTP Peer'. Click 'Apply' and 'OK'
Klik dahulu pada interface public, kemudian hapus kembali DHCP-Client dengan klik tanda '-'.
Click first on the public interface, then remove the back DHCP-Client by clicking '-'.
Click first on the public interface, then remove the back DHCP-Client by clicking '-'.
Atur kembali IP Address untuk inteface public denga perintah 'ip address add address=172.16.11.121/24 interface=public'. Ketik perintah 'ip address print' untuk melihat ip address yang sudah dikonfigurasi pada interface public.
Set the IP address for the public interface with the command 'ip address add address=172.16.11.121/24 interface=public'. Type the command 'ip address print' to see the IP address configured on the public interface.
Set the IP address for the public interface with the command 'ip address add address=172.16.11.121/24 interface=public'. Type the command 'ip address print' to see the IP address configured on the public interface.
Atur IP Address PC/Notebook, gunakan pada interface local yang ada di MikroTik. Klik 'OK'.
Set IP Address PC/Notebook, use the local interface that is in MikroTik. Click 'OK'.
Ping IP Address MikroTik melalui CMD.
Ping IP Address MikroTik via CMD.
Ping IP Address PC/Notebook melalui terminal.
Ping IP Address PC/Notebook via terminal.
6. Konfigurasi Firewall NAT
6. Configure Firewall NAT
- Via CLI
Pilih 'New Terminal'.
Select 'New Terminal'.
Select 'New Terminal'.
Ketik perintah 'ip firewall nat add chain=srcnat out-interface=public action=masquerade', lalu ketik perintah 'ip firewall nat print' untuk melihat hasil konfigurasi firewall.
Type the command 'ip firewall nat add chain=srcnat out-interface=public action=masquerade', then type the command 'ip firewall nat print' to see the results of the firewall configuration.
- Via GUI
Pilih 'IP' lalu 'Firewall'.
Select 'IP' then 'Firewall'.
Karena sudah dikonfigurasi via CLI, terlihat firewall NAT yang sudah dikonfigurasi.
Because it is configured via CLI, look NAT firewall configured.
Untuk via GUI, klik tanda '+' untuk mengatur Firewall NAT.
For via the GUI, click the '+' to set NAT firewall.
Pada tab 'General', pilih chain srcnat.
On the 'General' tab, select chain srcnat.
Pada tab 'Action', pilih action masquerade. Klik 'Apply' dan 'OK'.
On the tab 'Action', select the action masquerade. Click 'Apply' and 'OK'.
Atur DNS pada PC/Notebook, tulis gateway yang sudah dikonfigurasi pada MikroTik lalu 'OK'.
Set DNS on your PC / Notebook, write a gateway that is configured on the MikroTik then 'OK'.
Ping ke gateway dan google melalui CMD.
Ping the gateway and google via CMD.
Untuk mengetes kembali, masuk ke browser tulis yang ingin diakses. Disini saya mengakses www.mikrotik.com dan blog saya.
To test back, go to write the browser you want to access. Here I access www.mikrotik.com and my blog.
- Video Tutorial
Semoga Bermanfaat.
Hope It Is Useful.
Hope It Is Useful.
Terima Kasih.
Thank You.
Thank You.
Wassalamu'alaikum.wr.wb.
0 komentar:
Post a Comment