Setting Mikrotik RB-750 Model Static Route
Modem A 192.168.1.1
Modem B 192.168.2.1
Group 1 192.168.0.2 - 192.168.0.8 Menggunakan Modem A
Group 2 192.168.0.9 - 192.168.0.18 Menggunakan Modem B
pertama buat address list untuk masing" group
Code:
/ ip firewall address-list
add list=Modem A address=192.168.0.2 disabled=no comment="PC 1-6"
add list=Modem A address=192.168.0.3 disabled=no
add list=Modem A address=192.168.0.4 disabled=no
add list=Modem A address=192.168.0.5 disabled=no
add list=Modem A address=192.168.0.6 disabled=no
add list=Modem B address=192.168.0.7 disabled=no
add list=Modem B address=192.168.0.8 disabled=no comment="PC 7-18"
add list=Modem B address=192.168.0.9 disabled=no
Dst
kalo udah Arahkan masing" Rule di atas untuk masuk gatewaynya
Code:
/ip firewall mangle
add action=mark-routing chain=prerouting new-routing-mark="WAN 1" src-address-list=Modem A passtrough=no
add action=mark-routing chain=prerouting new-routing-mark="WAN 2" src-address-list=Modem B passtrough=no
terus untuk routingnya
Code:
/ip route
add dst-address=0.0.0.0/0 gateway=ppoe-out1 scope=255 target-scope=10 routing-mark="WAN 1" comment="Koneksi WAN1" disabled=no
add dst-address=0.0.0.0/0 gateway=ppoe-out2 scope=255 target-scope=10 routing-mark="WAN 2" comment="Koneksi WAN2" disabled=no
Teruss.. Selesai Dech
0 comments:
Post a Comment