# mar/21/2017 13:02:05 by RouterOS 6.38.5 # /interface bridge add name=bridge4.0 add name=bridge5.0 /interface ethernet set [ find default-name=ether4 ] master-port=ether3 /interface bridge port add bridge=bridge5.0 interface=ether1 add bridge=bridge5.0 interface=ether3 add bridge=bridge4.0 interface=ether2 add bridge=bridge4.0 interface=ether5 /interface bridge settings set use-ip-firewall=yes /ip address add address=10.61.5.8/24 interface=bridge5.0 network=10.61.5.0 add address=10.61.4.8/24 interface=bridge4.0 network=10.61.4.0 /ip dns set allow-remote-requests=yes servers=8.8.8.8 /ip firewall mangle add action=mark-connection chain=prerouting in-interface=bridge5.0 \ new-connection-mark=ISP1_conn passthrough=yes add action=mark-routing chain=prerouting connection-mark=ISP1_conn \ new-routing-mark=to_ISP1 passthrough=yes add action=mark-connection chain=prerouting in-interface=bridge4.0 \ new-connection-mark=ISP2_conn passthrough=yes add action=mark-routing chain=prerouting connection-mark=ISP2_conn \ new-routing-mark=to_ISP2 passthrough=yes /ip firewall nat add action=masquerade chain=srcnat out-interface=bridge4.0 src-address=\ 10.61.5.0/24 add action=masquerade chain=srcnat out-interface=bridge5.0 src-address=\ 10.61.4.0/24 /ip route add distance=1 gateway=10.61.5.1 routing-mark=to_ISP1 add distance=1 gateway=10.61.4.1 routing-mark=to_ISP2 add distance=1 gateway=10.61.5.1,10.61.4.1 /ip route rule add disabled=yes dst-address=10.61.5.0/24 table=main add disabled=yes dst-address=10.61.4.0/24 table=main add disabled=yes src-address=10.61.5.1/32 table=to_ISP1 add disabled=yes src-address=10.61.4.1/32 table=to_ISP2 add disabled=yes routing-mark=to_ISP1 table=to_ISP1 add disabled=yes routing-mark=to_ISP2 table=to_ISP2