I’m new to PPPoE and Mikrotik so please apologies for a such basic question. I would like to know if it’s possible to assign a subnet to a PPPoE-client instead of an unique address “\32”.
If I assign a /24 network to a PPPoE client. Mikrotik router generates two routes:
One connected /32 route: 192.168.1.1/32
One static route: 192.168.1.0 → 192.168.1.1
This is correct to support a network assignment??
I’m a bit confusing because are overlapping routes.
The PPPoE client needs some special support to be able to receive a network instead of one IP Address??
That is a correct network assignment.
First the remote ppp interface needs its own IP address and route, that’s the /32 route.
Over that one, you route a subnet having that IP as a gateway (and it can be even another subnet as nickshore stated).
The idea is that the more restrictive an address range is (say bigger netmask…) the higher priority it has in the routing process. So the /32 will take precedence over /24 and there is in fact no functional overlapping.
e.g. you could have 192.168.1.0/24 routed via gw1 and 192.168.1.0/30 via gw2 and 192.168.1.1/32 via gw3.
In this case, host 192.168.1.1 will be reacheable via gw3, all traffic for 192.168.1.0, 2 and 3 will go to gw2 and 192.168.1.4..255 will go over gw1.