Sign inSign up

pkbox/simple-dhcp

By pkbox

Updated almost 5 years ago

Image
0

1.8K

pkbox/simple-dhcp repository overview

simple-dhcp

This is a simple DHCP server.

Getting Started

Prerequisities

In order to run this container you'll need docker installed.

Usage
Volumes
  • /etc/dhcp/dhcpd.conf - DHCP configuration file
  • /var/lib/dhcp/dhcpd.leases - DHCP leases file
How to deploy
docker run -d --network host -v DHCP_CONF_FILE:/etc/dhcp/dhcpd.conf pkbox/simple-dhcp:latest

It is mandatory to run this container in "host" mode if you want it to discover devices on your network.

Example of DHCP configuration file

ddns-update-style none;
default-lease-time 600;
max-lease-time 7200;
authorative;
log-facility local7;
 
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.100 192.168.1.150;
option subnet-mask 255.255.255.0;
option domain-name-servers 8.8.8.8;
option routers 192.168.1.1;
get-lease-hostnames true;
use-host-decl-names true;
default-lease-time 600;
max-lease-time 7200;
}

Tag summary

Content type

Image

Digest

Size

4.9 MB

Last updated

almost 5 years ago

docker pull pkbox/simple-dhcp