PPPoE and DHCP relay

Hi!

I have a network like the illustration:

Need to create a DHCP server with a unique pool of IP address on the router and use DHCP relay on PPPoE servers to give IP to customers.

Is that possible?

This manual page may be useful for you http://wiki.mikrotik.com/wiki/Manual:IP/DHCP_Relay

I can imagine … but as?

I find no way to assign a relay to a PPPoE server.

You need dynamic addresses assigning via pppoe connection or you need that your users have addresses assigned via dhcp besides pppoe?

Thanks for reply.
I need dynamic addresses assigning via pppoe connection.

So you need no dhcp-relay. You need to add address-pool, for example:

/ip address pool add name=pool ranges=192.168.1.1-192.168.1.100

Then change default or add new one profile for ppp. Assuming you decided to change default:

/ppp profile set default local-address=192.168.1.254 remote-address=pool

Then remove from user accounts at /ppp secret local and remote addresses and set to them default profile:

/ppp secret; 
unset [find] local-address;
unset [find] remote-address;
set [find] profile=default;

After this your users will get dynamic addresses from the pool you noted. Just adjust it to your needs.

Thanks for answering AlexN.
Your idea is good, but not what I need.

What i need, is centrally manage dhcp in main router (the one that is on the top of them all), not individual dhcp servers in each router from bottom.

I know it can be done without pppoe, but I need to do with pppoe and dhcp relay (only a centralized DHCP).

Thank you.

In this case using of usermanager at the main router or external RADIUS server can be useful to get your job done.

then can’t do so with dhcp relay?

Any solution that did you find?
I m designing the pppoe with 3 pppoe but wish get ip dinamic for each one