DHCP /32 routes

Hi Everyone,

Here is the setup: several routers connected together by OSPF - each with its own subnet for a DHCP pool, where customers connect.

We’re currently using software that controls customer IP addresses with DHCP+Radius. Normally it is not an issue, as the IPs are assigned out of the pool and the subnets are routed via OSPF.

However, when the customer is blocked for non-payment, the software gives the customer an IP out of a single /20 pool - not specific to the router in question, which breaks the routing. This is unfortunately not behaviour that I can change (a holdover from how the software was built on PPPoE).

I am looking for a way to have the DHCP server distribute /32 IP addresses if they come from the /20 pool, and have the router install a /32 route for the IP in question. Is this possible at all? I get the first part done, but I can’t get the route installed in the routing table automatically so that I can distribute via DHCP.

Any help would be appreciated!

You can use DHCP script for managing routes added/removed on assign/deassign IP addresses.

Thanks! I was hoping to avoid the need to use a script (I was hoping I was missing a setting) but I’ll use a script.