Add route/execute script when prefix is delegated?

Oskar Berggren oskar.berggren at gmail.com
Fri Mar 30 15:49:26 UTC 2012


Den 30 mars 2012 13:00 skrev Fons de Jongh <fdjongh at novell.com>:
> Hi Oskar,
>
> For advertisement/propagation of routes, RIP, RIP version 2 or OSPF can be
> used.
>
> Is that perhaps what you are looking for?
>

I don't think so, because something must still generate the "first"
route which can later be distributed by a routing protocol.

My scenario:
A CPE uses DHCP-PD to request a prefix. Typically the request comes
from the link-local address belonging to the WAN-interface of the CPE.
The DHCP server grants a delegated prefix. The ISP router closest to
the customer must now add a route record for that prefix, directing
the traffic to the CPE's link-local address (the address which the
PD-request came from).

In our scenario the dhcp server runs in the ISP router closest to the
customer, so such a route can be added using a simple script. But
something must trigger that script when the delegation is made,
similar to the "on commit" event in  the IPv4-mode of ISC dhcpd. I
have not been able to locate any such existing trigger for the IPv4
case.

Does anyone know of such a mechanism?
If I want to add it to ISC DHCPd, what place in the code would be a
good spot to add such a hook?
The hook would need access to at least the delegated prefix, and the
IP-adress from which the request came.

/Oskar


More information about the dhcp-hackers mailing list