Multiple PPPoE Gateways

Hi,

I have the following scenario using RB2011UAS-RM:


ether-1
ether-2 → 2.0/24
ether-3 → 3.0/24
ether-4 → 4.0/24
ether-5 → 6.0/24
ether-6 → PPPoE1 to ISP1
ether-7 → PPPoE2 to ISP2
ether-8 → PPPoE3 to ISP3
ether-9
ether-10

I want the clients on 3.0/24 and 4.0/24 to gain internet access through PPPoE1, clients on 2.0/24 to gain internet access through PPPoE1 and clients on 2.0/24 to gain internet access through PPPoE3. How can I do that?
Thank you very much in advance!

You can use routing marks in ip/firewall/mangle to have different marks depending on the source IP or input port.
You can even mark routes differently depending on destination, port and other details…
Then add different forward rules in ip/firewall/filter and different default gateways in ip/routes based on these marks.

Just wondering, would it be possible to setup using NAT (src address and out interface) instead of all the mangle/firewall combination?

altering “out interface”[to desired ppoe-client for each sub-net/port] only ?
would work, but suggested above solution - more secure.