Jadi Kasusnya gini boz…..
disini digambarkan ada 2 ISP dan 2 network client,ada client_PC ‘n hotspot.Jalur client_pc harus lewat ISP A sedangkan hotspot harus lewat speedy.
Diasumsikan router 1 telah dikonfigurasi secara tepat jadi disini kita hanya akan membahas konfigurasi pada router 2 & diasumsikan dns server 192.168.56.14 & 192.168.54.14
Keterangan Interface :
Ether1 => Router 1
Ether2 => Speedy
Ether3 => Client PC
Ether4 => Hotspot
Pemberian IP :
/ip address add address=10.1.1.2/30 interface=ether1
/ip address add address=172.16.1.2/30 interface=ether2
/ip address add address=192.168.10.1/24 interface=ether3
/ip address add address=192.168.20.1/24 interface=ether4
Setting ip dns :
/ip dns set primary-dns=192.168.56.14 secondary-dns=192.168.54.14 allow-remote-requests=yes cache-size=10240
Pemberian NAT untuk network client :
/ip firewall nat add chain=srcnat src-address=192.168.1.0/24 action=masquerade
/ip firewall nat add chain=srcnat src-address=192.168.2.0/24 action=masquerade
Memberikan pembagian group network :
/ip firewall mangle add chain=prerouting src-address=192.168.10.0/24 action=mark-routing new-routing-mark=client_pc passthrough=no
/ip firewall mangle add chain=prerouting src-address=192.168.20.0/24 action=mark-routing new-routing-mark=hotspot passthrough=no
Default gateway masing-masing network :
/ip route add gateway=10.1.1.1 routing-mark=client_pc
/ip route add gateway=172.16.1.1 routing-mark=hotspot
/ip route add gateway=10.1.1.1,172.16.1.1 check-gateway=ping
Pengujian :
#Client PC
C:\ >tracert google.com
Tracing route to google.com [72.14.207.99]
over a maximum of 30 hops:
1 <1>
2 <1>10.1.2.1
3 <1>
…………………………………………
#Client Hotspot
C:\ >tracert google.com
Tracing route to google.com [72.14.207.99]
over a maximum of 30 hops:
1 <1>
2 <1>172.16.1.1
3 <1>