Mikrotik PPPoE Server

Hi there,

We currently have a Mikrotik 2011 configured as a PPPoE Server.

I want to route traffic from connected pppoe clients to different default routes on the PPPoE Server. Client A needs to use one Default Route and the 2011 and Client B needs to use a different Default Route.

One route is for internet browsing and the second route is used for voice traffic to our VoIP provider. I tried configuring a route mark for the traffic coming from that pppoe client connection but I think I’m missing something.

Will appreciate it if someone can shed some light on this.

Thanks

You can create separate PPP profiles with different gateways and other settings and then apply them to each PPP user.

I have checked the PPP Profile already and do not see these settings you referring to. Maybe I am missing something, please advise.
PPP Voice.PNG

I do not want to change the gateway on the client CPE.

The traffic coming from the client with a specific pppoe username needs to route to a different route on the Mikrotik PPPoE Server.

Hello.


Please, paste your export from firewall/mangle.


Basically, you need to use mark-routing with src-address (or in-interface, if you use static interface for clients).

/ip firewall mangle add chain=prerouting src-address=Client_IP_A action=mark-routing new-routing-mark=route1
/ip firewall mangle add chain=prerouting src-address=Client_IP_B action=mark-routing new-routing-mark=route2

/ip route add gateway=ISP_IP_1 routing-mark=route1
/ip route add gateway=ISP_IP_2 routing-mark=route2

:wink: