Community discussions

MikroTik App
 
kewitt
just joined
Topic Author
Posts: 1
Joined: Wed May 27, 2015 10:32 pm

1 ISP 2 IP 2 Networks

Wed May 27, 2015 10:49 pm

ISP hands out 2 public IP address.

RouterOS 6.28
CRS125-24

What I need to do is.

ISP > switch > 2 Gateways > 2 Lans

ethernet 1 Connected to ISP
virtual nic1 Gateway1
virtual nic2 Gateway2
Ethernet2-19 192.168.88.1/24 Gateway 1
Ethernet20-24 192.168.89.1/24 Gateway 2

No routed traffic between the 2 networks.
 
mocando
just joined
Posts: 13
Joined: Thu Jun 26, 2014 1:11 am

Re: 1 ISP 2 IP 2 Networks

Fri May 29, 2015 5:07 pm

Hi Kewitt,

You have to create 2 mangle rules to mark traffic

/ip firewall mangle
add action=mark-routing chain=prerouting new-routing-mark=To_Gateway_1 \
passthrough=no src-address=192.168.88.0/24
add action=mark-routing chain=prerouting new-routing-mark=To_Gateway_2 \
passthrough=no src-address=192.168.89.0/24

and create routes for marked traffic

/ip route
add distance=1 gateway=vlan1 routing-mark=To_Gateway_1
add distance=1 gateway=vlan2 routing-mark=To_Gateway_2

To restrict access between LAN´s create a firewall rule.