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.
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.