Difference between revisions of "Mikrotik: Router Sederhana"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
Line 23: | Line 23: | ||
/ip dns set allow-remote-request=yes | /ip dns set allow-remote-request=yes | ||
− | + | ||
− | |||
− | |||
/ip firewall nat add chain=srcnat out-interface=ether1 action=masquerade | /ip firewall nat add chain=srcnat out-interface=ether1 action=masquerade | ||
Line 32: | Line 30: | ||
+ | Setup DHCP Server dapat menggunakan | ||
+ | |||
+ | /ip dhcp-server setup | ||
+ | |||
+ | Chat saat konfigurasi DHCP Server | ||
+ | |||
+ | Select interface to run DHCP server on | ||
+ | dhcp server interface: '''bridge1''' - ketik nama bridge interface | ||
+ | |||
+ | Select network for DHCP addresses | ||
+ | dhcp address space: '''192.168.100.0/24''' - sesuai IP bridge1 & [ENTER] | ||
+ | |||
+ | Select gateway for given network | ||
+ | gateway for dhcp network: '''192.168.100.1''' - sesuai IP bridge1 & [ENTER] | ||
+ | |||
+ | Select pool of ip addresses given out by DHCP server | ||
+ | addresses to give out: '''192.168.100.2-192.168.100.254''' - [ENTER] | ||
+ | |||
+ | Select DNS servers | ||
+ | dns servers: '''192.168.1.1''' - [ENTER] - bisa 8.8.8.8 | ||
+ | |||
+ | Select lease time | ||
+ | lease time: 10m - [ENTER] | ||
+ | |||
+ | |||
+ | Aktifkan DHCP Server | ||
+ | |||
+ | /ip dhcp-server enable | ||
+ | /ip dhcp-server print | ||
Revision as of 09:54, 27 March 2020
Topologi di GNS3
Konfigurasi Mikrotik
/ip dhcp-client print /ip dhcp-client add interface=ether1 disable=no /interface bridge add name=bridge1 /interface bridge port add bridge=bridge1 interface=ether2 add bridge=bridge1 interface=ether3 add bridge=bridge1 interface=ether4 add bridge=bridge1 interface=ethe...dst /ip address add interface=bridge1 address=192.168.100.1/24 /ip route add gateway=bridge1 /ip dns set servers=8.8.8.8 /ip dns set allow-remote-request=yes
/ip firewall nat add chain=srcnat out-interface=ether1 action=masquerade /ip firewall nat print
Setup DHCP Server dapat menggunakan
/ip dhcp-server setup
Chat saat konfigurasi DHCP Server
Select interface to run DHCP server on dhcp server interface: bridge1 - ketik nama bridge interface
Select network for DHCP addresses dhcp address space: 192.168.100.0/24 - sesuai IP bridge1 & [ENTER]
Select gateway for given network gateway for dhcp network: 192.168.100.1 - sesuai IP bridge1 & [ENTER]
Select pool of ip addresses given out by DHCP server addresses to give out: 192.168.100.2-192.168.100.254 - [ENTER]
Select DNS servers dns servers: 192.168.1.1 - [ENTER] - bisa 8.8.8.8
Select lease time lease time: 10m - [ENTER]
Aktifkan DHCP Server
/ip dhcp-server enable /ip dhcp-server print