[Kea-users] [Kea] subnet or shared network selected for multiple relays

Marcin Siodelski marcin at isc.org
Mon Nov 27 10:01:32 UTC 2017


Yup, that's what I'd do.

Marcin

On 27.11.2017 09:52, Chaigneau, Nicolas wrote:
>
> Thanks Marcin.
>
>
> So I guess a hook would be the next best way to do that.
>
> Something configured like:
>
> "Dhcp4": {
>     :
>     "hooks-libraries": [
>         {
>             "library": "/opt/local/multi-relay-subnets.so",
>             "parameters": {
>                 "relay-subnets": [
>                     {
>                         "subnet": "192.0.2.0/26",
>                         "relays": [ "192.1.1.1", "192.2.2.2" ]
>                     },
>                     {
>                         "subnet": "...",
>                         "relays": [ ... ]
>                     }
>                 ]
>             }
>         }
>     ]
> }
>
> A hook "subnet4_select" which would:
> - loop over the hook parameter "relay-subnets" to find a suitable entry for the received giaddr,
> - and then loop over Kea "subnet4collection" to retrieve the subnet we want,
> - and set that in the callout argument "subnet4".
>
> I've seen something similar discussed on the mailing list:
>
> https://www.mail-archive.com/kea-users@lists.isc.org/msg00214.html
>
>
>
> Regards,
> Nicolas.
>
>
> >
> > Unfortunately, it isn't possible for the shared networks too. The shared
> > network pretty much derives parameters from the subnet. Or, maybe I
> > should say a subnet derives from the shared network.
> >
> > Marcin Siodelski
> > ISC
> >
> > On 24.11.2017 18:46, Chaigneau, Nicolas wrote:
> >> Hello,
> >>
> >>  
> >>
> >>  
> >>
> >> I would like to configure a subnet shared by multiple relays, i.e. that
> >> would be chosen for several "giaddr" values.
> >>
> >> If I'm not mistaken, this was not possible with the basic "subnet4"
> >> configuration prior to 1.3.0 (as parameter "relay" does not support a
> >> list of relays).
> >>
> >>  
> >>
> >> Can I achieve that with a shared network in 1.3.0 ?
> >>
> >>  
> >>
> >> I've read Kea admin guide but I'm not sure this is possible just with
> >> configuration.
> >>
> >> I have the impression that "relay" still can only be one element, either
> >> for the "shared-networks" or for each of its "subnet4" components.
> >>
> >>  
> >>
> >>  
> >>
> >>  
> >>
> >> Regards,
> >>
> >> Nicolas.
> >>
> This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
>




More information about the Kea-users mailing list