pertama instal dulu mikrotik Router OSnya
[admin@jetcom-test] > ip address add address=202.47.77.247 netmask=255.255.255.240 interface=ether1
[admin@jetcom-test] > ip address print
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK BROADCAST INTERFACE
0 202.47.77.247/28 202.47.77.240 202.47.77.255 ether1
1 192.168.0.1/24 192.168.0.0 192.168.0.255 ether2
untuk IP public "202.47.77.247" di tempatkan di ethernet 1
untuk Ip Private "192.168.0.1" di tempatkan di ethernet 2
__________________________________________
[admin@jetcom-test] > ip dns set primary-dns=202.47.78.8/9
[admin@jetcom-test] > ip dns print
primary-dns: 202.47.78.8
secondary-dns: 202.47.78.9
allow-remote-requests: no
cache-size: 2048KiB
cache-max-ttl: 1w
cache-used: 86KiB
untuk DNS prymary dan secondarynya sesuai dengan koneksi
internetnya
============================================================
[admin@jetcom-test] > ip firewall nat add action=masquerade out-interface=ether1
[admin@jetcom-test] > ip firewall nat print
Flags: X - disabled, I - invalid, D - dynamic
0 chain=srcnat out-interface=ether1 action=masquerade
untuk NAT nya outputnya di larikan ke interface ether1/ip
public yang kita punya
=============================================================
[admin@jetcom-test] > ip route add gateway=202.47.77.246
[admin@jetcom-test] > ip route print Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf
# DST-ADDRESS PREF-SRC G GATEWAY DISTANCE INTERFACE
0 ADC 192.168.0.0/24 192.168.0.1 ether2
1 ADC 202.47.77.240/28 202.47.77.247 ether1
2 A S 0.0.0.0/0 r 202.47.77.241 ether1
=============================================================
untuk DHCP nya menggunakan Ethernet2 yaitu IP Privatenya
192.168.0.2-192.168.0.254
/ip pool add name=dhcp-pool ranges=192.168.0.2-192.168.0.100
/ip dhcp-server network add address=192.168.0.0/24 gateway=192.168.0.1
menentukan Interface output DHCP
/ip dhcp-server add interface=ether2 address-pool=dhcp-pool enable 0
user manager menyusul.....
"http://opiq.jardiknas.net/blog/wp-content/plugins/downloads-manager/
upload/Hotspot%20dengan%20Mikrotik.pdf"
konfigurasi Mikrotik sebagai internet gateway
Labels:
Mikrotik