[Kea-users] subnet and DHCP options for MySQL backend
Klaus Steden
klausfiend at gmail.com
Mon Feb 26 22:53:02 UTC 2018
- Previous message (by thread): [Kea-users] subnet and DHCP options for MySQL backend
- Next message (by thread): [Kea-users] Hi, I have this Kea static configuration: ``` { "Dhcp4": { "valid-lifetime": 4000, "renew-timer": 1000, "rebind-timer": 2000, "interfaces-config": { "interfaces": [ "enp0s8" ] }, "lease-database": { "type": "memfile", "name": "/var/kea/dhcp4.leases" }, "valid-lifetime": 4000, "subnet4": [ { "subnet": "192.168.0.0/24", "pools": [ { "pool": "192.168.0.10 - 192.168.0.20" } ], "reservations": [ { "hw-address": "08:00:27:8e:15:8a", "ip-address": "192.168.0.11" }, { "hw-address": "08:00:27:8e:15:8b", "ip-address": "192.168.0.12" } ] } ], "next-server": "192.168.0.254", "boot-file-name": "pxelinux.0" }, "Logging": { "loggers": [ { "name": "kea-dhcp4", "output_options": [ { "output": "stdout" } ], "severity": "INFO" } ] } } ``` It works perfectly. I would like to do the same thing with PostgreSQL backend. I have initialized my PostgreSQL database with: [dhcpdb_create.pgsql ](https://github.com/isc-projects/kea/blob/master/src/share/database/scripts/pgsql/dhcpdb_create.pgsql) I have this kea
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Yeah, it's lease/reservation info only. We generate our scopes
programmatically and add/remove them using configuration management.
cheers,
Klaus
On Mon, Feb 26, 2018 at 8:38 AM, xbgmsharp <xbgmsharp at gmail.com> wrote:
> Thanks for the feedback, by using a backend i was expecting to have all
> the config in the backend, like isc-dhcp with the LDAP backend.
>
> I have pretty standard configuration, name servers, time server, netbios
> server, lease time, etc...
>
> Regards
>
>
> On 2018-02-26 13:01, Francis Dupont wrote:
>
>> A lease database backend is for the whole server. If you have
>> specific subnet / options setting they go into the configuration
>> inside subnet entries independently of backends.
>>
>> Regards
>>
>> Francis Dupont <fdupont at isc.org>
>>
>> PS: BTW there must be at least one subnet because incoming packets are
>> localized (aka subnet selection) with success to get useful services
>> (cf. subnet[46]_select last statement in the developer guide, i.e.
>> https://jenkins.isc.org/job/Kea_doc/doxygen/de/df3/dhcpv4Hooks.html
>> copied here in the case you have no access to it:
>> If any callout sets the status to SKIP, the server will not select any
>> subnet. Packet processing will continue, but will be severely limited. )
>>
> _______________________________________________
> Kea-users mailing list
> Kea-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/kea-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20180226/723165b4/attachment.htm>
- Previous message (by thread): [Kea-users] subnet and DHCP options for MySQL backend
- Next message (by thread): [Kea-users] Hi, I have this Kea static configuration: ``` { "Dhcp4": { "valid-lifetime": 4000, "renew-timer": 1000, "rebind-timer": 2000, "interfaces-config": { "interfaces": [ "enp0s8" ] }, "lease-database": { "type": "memfile", "name": "/var/kea/dhcp4.leases" }, "valid-lifetime": 4000, "subnet4": [ { "subnet": "192.168.0.0/24", "pools": [ { "pool": "192.168.0.10 - 192.168.0.20" } ], "reservations": [ { "hw-address": "08:00:27:8e:15:8a", "ip-address": "192.168.0.11" }, { "hw-address": "08:00:27:8e:15:8b", "ip-address": "192.168.0.12" } ] } ], "next-server": "192.168.0.254", "boot-file-name": "pxelinux.0" }, "Logging": { "loggers": [ { "name": "kea-dhcp4", "output_options": [ { "output": "stdout" } ], "severity": "INFO" } ] } } ``` It works perfectly. I would like to do the same thing with PostgreSQL backend. I have initialized my PostgreSQL database with: [dhcpdb_create.pgsql ](https://github.com/isc-projects/kea/blob/master/src/share/database/scripts/pgsql/dhcpdb_create.pgsql) I have this kea
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Kea-users
mailing list