DHCP SERVER, DNS & NAT di Mikrotik

| 13 comments
















Preface

Tulisan ini dibuat sekedar sharing pengetahuan aj dari saya yg juga masih belajar, rachmat juga uda kangen beud mo nulis2 :D

-Ruter: Mikrotik v.2.9.6

-Workstation: Windows Xp (PC0,PC1)

-Server: Redhat (PC2)

-Modem: Huawei

Given IP

Public 202.73.99.0/24

Local 192.168.0.0/24


Konfigurasi Pada Mikrotik

[DHCP SERVER]

1. aktifkan interface yg diperlukan

[therachmat@rxnux3r]>interface ena ether1

[therachmat@rxnux3r]>interface set ether1 name=local

[therachmat@rxnux3r]>interface ena ether2

[therachmat@rxnux3r]>interface set ether2 name=public

2. setting ip Mikrotik-SW-1< [therachmat@rxnux3r]>ip add address=192.168.0.1/24 int=local

3. buat pool

[therachmat@rxnux3r]>ip pool add name=dhcp-pool-1 ranges=192.168.0.2-192.168.0.11

4. buat network address, dns-server, gateway

[therachmat@rxnux3r]>ip dhcp-server network add address=192.168.0.0/24 gateway=192.168.0.1

5. daftarkan pool ke dhcp-server

[therachmat@rxnux3r]>ip dhcp-server add address-pool=dhcp-pool-1 int=local

6. cek konfigurasi

[therachmat@rxnux3r]>ip pool print

[therachmat@rxnux3r]>ip dhcp-server print


[DNS & gateway ]

1. Set Primary DNS

[therachmat@rxnux3r]>ip dns set primary-dns=8.8.8.8

2. Set Secondary DNS

[therachmat@rxnux3r]>ip dns set secondary-dns=8.8.4.4

3. Set Gateway

[therachmat@rxnux3r]>ip route add gateway=202.73.99.8


[NAT]

1. Setting ip Mikrotik-modem-internet

[therachmat@rxnux3r]>ip add address=202.73.99.1/24 int=public

2. Buat nat

[therachmat@rxnux3r]>ip firewall nat add action=masquerade out-interface=public chain=srcnat

3. Cek Konfigurasi

[therachmat@rxnux3r]>ip firewall nat print

[Backup-Konfigurasi]

[therachmat@rxnux3r]>system backup save name=rxconf

Konfigurasi pada Workstation

1. TCP/IP Properties set auto

2. ipconfig /release , ipconfig /renew, ipconfig /all

3. cek koneksi, ping ke mikrotik, remote via SSH


























Konfigurasi pada Server

-Dalam Kondisi ini server hanya sebagai data storage saja :)


catatan tambahan:
-u/ bandwith management sobat bisa menggunakan queue tree


Insya Alloh saya akan terus menulis.

(sabar aja ya... nanti saya nulis lagi tp tergantung mood saya mo nulis apaan...wkwkwk :D )

rachmat spesial thanks to:

1. God Alloh SWT

2. Suryo at PGN, thanks udah dipinjemin hddnya, hore2.. skrg Mikrotikna ga pke virtual mesin lg :)

3. Rizqi at Metrodata, ditunggu projectna, hehe :D

4. Sobat Moenas, thanks awardna, maav belum dposting

5. Temend2 yg baca artikel rachmat ^_^

Sekian tulisan ini dibuat, semoga bermanfaat ya!


Read More Here