2019-11-21 11:06:01 +01:00
|
|
|
.. _hooks-bootp:
|
2019-11-21 13:11:54 +08:00
|
|
|
|
|
|
|
BOOTP support
|
|
|
|
=============
|
|
|
|
|
|
|
|
.. note::
|
|
|
|
|
2019-11-21 14:12:35 +08:00
|
|
|
This is library is still in experimental phase. Use with care!
|
2019-11-21 13:11:54 +08:00
|
|
|
|
|
|
|
|
|
|
|
This hooks library adds support for BOOTP with vendor information extensions
|
|
|
|
(`RFC 1497 <https://tools.ietf.org/html/rfc1497>`__). Received BOOTP
|
|
|
|
requests are recognized, translated into DHCPREQUEST packets by adding
|
|
|
|
a dhcp-message-type option and put into the "BOOTP" client class.
|
|
|
|
Members of this class get infinite lifetime leases but the class can
|
|
|
|
be used too for instance to guard a pool of addresses.
|
|
|
|
|
|
|
|
The library is available since Kea 1.7.2 and can be loaded in a
|
|
|
|
similar way as other hook libraries by the ``kea-dhcp4`` process.
|
|
|
|
It takes no parameter.
|
|
|
|
|
|
|
|
::
|
|
|
|
|
|
|
|
"Dhcp4": {
|
|
|
|
"hook_libraries": [
|
|
|
|
{ "library": "/usr/local/lib/libdhcp_bootp.so" },
|
|
|
|
...
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.. note::
|
|
|
|
|
|
|
|
This library is only meant to be loaded by the ``kea-dhcp4`` process
|
|
|
|
as there is no BOOTP protocol for IPv6.
|
|
|
|
|
2019-11-25 18:15:26 +01:00
|
|
|
.. note::
|
|
|
|
|
|
|
|
A host reservation for a BOOTP client should use the hardware address
|
|
|
|
as the identifier (the client-id option is a DHCP specific option).
|
2019-11-21 13:42:10 +08:00
|
|
|
|
|
|
|
.. _hooks-bootp-config:
|
|
|
|
|
2019-11-21 10:59:59 +01:00
|
|
|
Incoming BOOTP packets are added to the BOOTP class. This can be used
|
|
|
|
to segregate BOOTP clients to separate pool. For example you can do
|
|
|
|
the following:
|
2019-11-21 13:42:10 +08:00
|
|
|
|
|
|
|
::
|
|
|
|
|
|
|
|
"Dhcp4": {
|
2019-11-21 11:25:05 +01:00
|
|
|
"client-classes": [
|
|
|
|
{
|
|
|
|
// The DHCP class is the complement of the BOOTP class
|
|
|
|
"name": "DHCP",
|
|
|
|
"test": "not member('BOOTP')"
|
|
|
|
}
|
|
|
|
],
|
2019-11-21 13:42:10 +08:00
|
|
|
"subnet4": [
|
|
|
|
{
|
|
|
|
"subnet": "192.0.2.0/24",
|
|
|
|
"pools": [
|
|
|
|
{
|
|
|
|
// BOOTP clients will be handled here
|
|
|
|
"pool": "192.0.2.200 - 192.0.2.254",
|
2019-11-21 11:25:05 +01:00
|
|
|
"client-class": "BOOTP"
|
2019-11-21 13:42:10 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
// Regular DHCP clients will be handled here
|
2019-11-21 11:25:05 +01:00
|
|
|
"pool": "192.0.2.1 - 192.0.2.199",
|
|
|
|
"client-class": "DHCP"
|
2019-11-21 13:42:10 +08:00
|
|
|
}],
|
|
|
|
...
|
|
|
|
},
|
|
|
|
...
|
|
|
|
],
|
|
|
|
...
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.. _hooks-bootp-limitations:
|
2019-11-21 13:11:54 +08:00
|
|
|
|
|
|
|
BOOTP Hooks Limitations
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
Currently the BOOTP library has the following limitations:
|
|
|
|
|
2019-11-21 10:59:59 +01:00
|
|
|
- BOOTP protocol assumes all lease assignments are permanent. Kea does
|
|
|
|
not support infinite leases yet. You may configure arbitrarily long
|
|
|
|
leases (e.g. a year), but after the lease lifetime elapses, Kea will
|
|
|
|
recycle the lease and may assign it to some other device. This
|
|
|
|
limitation will be removed in the near future.
|
2019-11-21 13:11:54 +08:00
|
|
|
|
2019-11-21 10:59:59 +01:00
|
|
|
- A basic BOOTP as defined in `RFC 951
|
|
|
|
<https://tools.ietf.org/html/rfc951>`__ is not supported. Kea only
|
|
|
|
supports the BOOTP with vendor information extensions. Depending on
|
2019-11-21 13:11:54 +08:00
|
|
|
the demand, this may or may not be implemented in the future.
|