Best to add all /30’s individually rather than a /24 for all. You could do the /24 for all but it is the ‘lazy way’.
The area range prevents advertising to the OSPF Backbone the individual customer IPs. Even if you are doing masquerade, your customers will have individual private IP addresses, you need to summarize this pool with an area range, then the other routers will get the area range instead of individual routes for each PPPoE customer.
More detail below:
Sets default interface type to passive, so that you do not send hello packets to customers, important for security! The only interfaces that should not be passive are interfaces where you want to form neighbor relationships with other routers.
add authentication=md5 authentication-key=somesecretkey interface=someptpinterface network-type=broadcast
add authentication=md5 authentication-key=somesecretkey interface=someotherptpinterface network-type=broadcast
This ‘overrides’ the passive default for these two PtP interfaces connecting to your router, so that you can form neighbor with other routers over ptp interfaces, plus also adds security, so that a hacker cannot unplug your router and plug in their own and get an OSPF neighbor relationship forming, if they do not have the ospf auth key
/routing ospf network
add area=backbone comment=“Loopback IP” network=someloopbackip
add area=backbone comment=“Point to Point connection to Router X” network=someptpsubnet/30
add area=backbone comment=“Point to Point connection to Router Y” network=someptpsubnet/30
Those advertise the loopbacks and ptp subnets
On your core PPPoE router, the same thing, but also, do this for advertising your PPPoE customer subnet:
/routing ospf area add area-id=0.0.0.1 name=pppoe-area type=stub
That creates a second OSPF area for your PPPoE customers only
/routing ospf network add area=pppoe-area network=somepppoecustomersubnet/23
That advertises the PPPoE customer IPs, which would normally create a route for every PPPoE customer, EXCEPT then you add the following below:
/routing ospf area range add area=pppoe-area range=somepppoecustomersubnet/23 cost=default advertise=yes
That does the magic - the PPPoE area is summarized to the backbone as a single route rather than one per customer IP. You still get hundreds of OSPF routes but only on your core router itself, the other routers just get the area range.