Gak banyak basa-basi ya gan, langsung saja ane kasih contoh, disini agan-agan bisa sesuaikan dengan IP Address masing-masing yang agan-agan pakai, disini saya misalkan
- ether1=192.192.192.2/24 (menuju internet/isp/modem) silahkan sesuaikan sendiri
- ether2-5=local network/menuju ke jaringan LAN atau client
- gateway menuju internet/isp/modem disini saya misalkan 192.192.192.1/24
disini yang saya tulis settingnya lewat terminal gan, saya disini pake mikrotik RB 750
ip address add address=192.192.192.2 netmask=255.255.255.0 interface=ether1
ip address add address=192.168.2.1 netmask=255.255.255.0 interface=ether2
ip address add address=192.168.3.1 netmask=255.255.255.0 interface=ether3
ip address add address=192.168.4.1 netmask=255.255.255.0 interface=ether4
ip address add address=192.168.5.1 netmask=255.255.255.0 interface=ether5
#IP TABLE
ip route add gateway=192.192.192.1 (sesuaikan gateway agan)
#DNS(disini saya kasih dns google, sesuaikan jika agan menggunakan isp)
ip dns set servers=8.8.8.8,8.8.4.4 allow-remote-requests=no
#NAT
ip firewall nat add action=masquerade out-interface=ether1 chain=srcnat
#DHCP
ip pool add name=dhcp-ether2 ranges=192.168.2.10-192.168.2.254
ip dhcp-server network add address=192.168.2.0/24 gateway=192.168.2.1
ip dhcp-server add interface=ether2 address-pool=dhcp-ether2
ip pool add name=dhcp-ether3 ranges=192.168.3.10-192.168.3.254
ip dhcp-server network add address=192.168.3.0/24 gateway=192.168.3.1
ip dhcp-server add interface=ether3 address-pool=dhcp-ether3
ip pool add name=dhcp-ether4 ranges=192.168.4.10-192.168.4.254
ip dhcp-server network add address=192.168.4.0/24 gateway=192.168.4.1
ip dhcp-server add interface=ether4 address-pool=dhcp-ether4
ip pool add name=dhcp-ether5 ranges=192.168.5.10-192.168.5.254
ip dhcp-server network add address=192.168.5.0/24 gateway=192.168.5.1
ip dhcp-server add interface=ether5 address-pool=dhcp-ether5
ip dhcp-server enable 0
maaf penjelasanya acak adul, newbie juga, tapi ane praktekin dah bisa jalan lancar kok, mari kita belajar lagi bersama-sama, silahkan dikomen.
0 comments:
Post a Comment