2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-23 10:27:36 +00:00
kea/doc/sphinx/arm/hooks-bootp.rst

92 lines
2.6 KiB
ReStructuredText
Raw Normal View History

.. ischooklib:: libdhcp_bootp.so
.. _hooks-bootp:
``libdhcp_bootp.so``: Support for BOOTP Clients
===============================================
This hook 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
2021-11-05 21:25:06 +00:00
a ``dhcp-message-type`` option, and put into the "BOOTP" client class.
Members of this class get infinite lifetime leases but the class can
2021-11-05 21:25:06 +00:00
also be used to guard a pool of addresses.
2021-11-05 21:25:06 +00:00
The DHCP-specific options, such as ``dhcp-message-type``, are removed from
the server's responses; responses shorter than the BOOTP minimum
size of 300 octets are padded to this size.
2020-01-24 10:25:41 +01:00
.. note::
:ischooklib:`libdhcp_bootp.so` is part of the open source code and is
available to every Kea user.
.. note::
This library can only be loaded by the :iscman:`kea-dhcp4` process,
as there is no BOOTP protocol for IPv6.
This library is loaded similarly to other hook libraries, and
2021-11-05 21:25:06 +00:00
it takes no parameters.
::
"Dhcp4": {
"hooks-libraries": [
{ "library": "/usr/local/lib/libdhcp_bootp.so" },
...
]
}
.. note::
A host reservation for a BOOTP client should use the hardware address
2021-11-05 21:25:06 +00:00
as the identifier (the ``client-id`` option is a DHCP-specific option).
.. _hooks-bootp-config:
2021-11-05 21:25:06 +00:00
Incoming BOOTP packets are added to the BOOTP class, allowing administrators
to segregate BOOTP clients into separate pools. For example:
::
"Dhcp4": {
"client-classes": [
{
// The DHCP class is the complement of the BOOTP class
"name": "DHCP",
"test": "not member('BOOTP')"
}
],
"subnet4": [
{
"subnet": "192.0.2.0/24",
"pools": [
{
// BOOTP clients will be handled here
"pool": "192.0.2.200 - 192.0.2.254",
"client-classes": [ "BOOTP" ]
},
{
// Regular DHCP clients will be handled here
"pool": "192.0.2.1 - 192.0.2.199",
"client-classes": [ "DHCP" ]
}],
...
},
...
],
...
}
.. _hooks-bootp-limitations:
2021-11-05 21:25:06 +00:00
BOOTP Hooks Limitations
~~~~~~~~~~~~~~~~~~~~~~~
2020-03-20 13:29:27 +01:00
Currently the BOOTP library has the following limitation:
2021-11-05 21:25:06 +00:00
- Basic BOOTP, as defined in `RFC 951
<https://tools.ietf.org/html/rfc951>`__, is not supported. Kea only
supports BOOTP with vendor-information extensions.