Topologi
Menggunakan 3 etrernet card
ether1 ==> wireless
ether2 ==> speedy
ethet3 ==> Lan
mikrotik command:
/ip address add address 202.152.74.1/32 interface ether1
/ip address add address 192.168.1.2/32 interface ether2
/ip address add address 192.168.10.1/24 interface ether3
Membagi Ip menjadi 2 Group
add chain=prerouting action=mark-connection src-address 192.168.10.0/25 new-routing-mark= Group-A
add chain=prerouting action=mark-connection src-address 192.168.10.128/25 new-routing-mark=Group-B
Default gw masing-masing Group
Group-A=192.168.10.0/25 default gw 192.168.1.1
Group-B=192.168.10.128/25 default gw 202.152.74.128
mikrotik command:
/ip route add gateway=192.168.1.1 routing-mark=Group-A
/ip route add gateway=202.152.74.128 routing-mark=Group-B
Nat ip local
192.168.10.0/24 ==>masquerade
mikrotik command:
/ip firewall nat add chain=srcnat src-address 192.168.10.0/24 action=masquerade
Tidak ada komentar:
Posting Komentar