Tool for testing IPv4 and IPv6 DHCP services
Project description
dhcpdoctor
Tool for testing IPv4 and IPv6 DHCP services
Description
dhcpdoctor sends DHCP requests and checks if it gets an offer from DHCP server.
It supports BOOTP+DHCP for IPv4 (-4
) and DHCPv6 for IPv6 (-6
).
It can operate as a DHCP client by sending requests on the local network via
broadcast/multicast or as a DHCP clent and relay in one tool by unicasting
requests to the specified IP address (-s
). When relaying requests you can
specify the relay address to send from (-f
). By default the IP address of
the interface request is sent from is used. When specifying custom relay from
address, keep in mind that the DHCP server will send the response back to the
address you specify here, so it must be an address on the machine you are
running tests from.
You can specify a custom client MAC or DUID (-c
). By default the MAC address
of the interface to send request from is used.
You can specify the interface to send requests from with -i
.
Program output and exit codes are Nagios/Icinga compatible. Response time from DHCP server is measured and returned as performance data.
Requirements
dhcpdoctor needs needs Python 3.4 or later to run.
Since it uses scapy under the hood to craft, dissect, send and receive packets, it needs root permissions to run.
Developing
We use poetry to manage Python dependencies and virtual environments.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for dhcpdoctor-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e9a3fdf48fdee2446dadc99e64b15196d7f7502eb48edff004043bb660a7aa6 |
|
MD5 | c63053dbf061a70b24455191f0133625 |
|
BLAKE2b-256 | 1d2e425c73871526d13fc06c774ba5e164a2a39190f713e3a9f5cf3a4def20e4 |