(ask) 2 WAN for 2 network non fail over

first, let me explain my network.

Mikrotik :

  • Ether1 : 192.168.1.1 (wan1)
  • Ether2 : 192.168.2.1 (wan2)
  • Ether3 : 192.168.0.1 (lan1)
  • Ether3 : 192.168.10.1 (lan2)
  • pppoe1 118.x.x.x
  • pppoe2 125.x.x.x


    mangle for connection from ether3 and ether4 already mask

quest:
what static route must i add ? if i want connection from lan1 always use ISP1 ?

thanks before,
sorry, i’m not good in english :smiley:

Make a mangle rule that uses the src IP network to produce a routing mark for your WAN of need.
Then perform policy routing for this routing mark. (Don’t forget the route rules.)
Your PPoE interfaces are on the WAN interfaces then your mentioned IP’s are not needed, the PPoE server will assign an IP to that interface.
On the PPoE interface disable the “add default route” and make one yourself for the routing mark you just made. (A automatic default route can be added but make sure that both PPoE interface give a different ´distance´ so one becomes the backup of the other. For backup of the policy routes you have to create these manually.)
Also, make sure traffic leaving router through one PPoE interface gets the IP address of that PPoE interface. So set a src-nat rule for traffic leaving that interface. Use the WAN interface as identifier for traffic that needs to be src-nat for that interface. This way future WAN failover setup becomes easy.

like this ?

 0   chain=prerouting action=mark-routing new-routing-mark=server 
     passthrough=no src-address=192.168.0.0/24
 1   chain=prerouting action=mark-routing new-routing-mark=bebas 
     passthrough=no src-address=192.168.10.0/24

this is my route

0 A S  0.0.0.0/0                          speedy2        1       (routing mark=server)
 1 A S  0.0.0.0/0                          speedy1      1       (routing mark=bebas)
 2 ADS  0.0.0.0/0                          125.x.x.1      1       
 3  DS  0.0.0.0/0                          118.x.x.1       1       
 4 ADC  118.x.x.1/32    118.x.x.6    speedy2        0       
 5 ADC  125.x.x.1/32   125.x.x.68  speedy1      0       
 6 ADC  192.168.1.0/24     192.168.1.1   wan1         0       
 7 ADC  192.168.2.0/24     192.168.2.1     wan2       0       
 8 ADC  192.168.10.0/24    192.168.10.1    lan2         0    
9 ADC 192.168.0.0/24  192.168.0.1 lan1   0



Your PPoE interfaces are on the WAN interfaces then your mentioned IP’s are not needed, the PPoE server will assign an IP to that interface.

not needed ? so, give an advice, how many interface i should use

On the PPoE interface disable the “add default route” and make one yourself for the routing mark you just made. (A automatic default route can be added but make sure that both PPoE interface give a different ´distance´ so one becomes the backup of the other. For backup of the policy routes you have to create these manually.)

i don’t want to fail over.
i want to connect the network to their wan only.

Also, make sure traffic leaving router through one PPoE interface gets the IP address of that PPoE interface. So set a src-nat rule for traffic leaving that interface. Use the WAN interface as identifier for traffic that needs to be src-nat for that interface. This way future WAN failover setup becomes easy.

i’m not understand.
give more information, thanks


so far, with that conditions, every network going right with connection i choose.
but, from client network A cannot access network B.

thanks in advance