How to assign pppoe clients from two different pppoe servers (with different profiles and on two different physical interfaces) to two different routing tables?
Firewall/Mangle with routing mark action doesn’t seem to affect Routing/Rules with routing mark. Perhaps I’m doing something wrong way, please give me an example that works for you.
The routing and two pppoe servers should not be connected.
pppoe server 1 will have one set of IP pool/ interface and gateway
pppoe server 2 will have have different IP pool /interface and gateway
The routing marking can be off the IP, gateway or interface them being PPPOE servers is irrelevant.
For example lets assume
pppoe server 1 interface ether 1 gateway 10.0.0.1 clients 10.0.0.2-126
pppoe server 2 interface ether 2 gateway 10.0.0.129 clients 10.0.0.130-254
You can mark those easily for routing 3 ways
1.) ip pools 10.0.0.0/25 vs 10.0.0.128/25
2.) gateway in/out 10.0.0.1 vs 10.0.0.129
3.) interface ether 1 vs ether2