Skip to content

Instantly share code, notes, and snippets.

@muka muka/dhcpd.conf
Last active Dec 2, 2017

What would you like to do?
Setup a dhcpd server using docker
ddns-update-style none;
option domain-name "thpi";
option domain-name-servers,;
default-lease-time 86400;
max-lease-time 604800;
# Use this to send dhcp log messages to a different log file (you also
# have to hack syslog.conf to complete the redirection).
log-facility local7;
subnet netmask {
## dhcp start and end IP range ##
option subnet-mask; ## subnet
option broadcast-address; ## broadcast
option routers; ## router IP
host pc1 {
hardware ethernet 60:a4:4c:3d:76:fa;
host lap1 {
hardware ethernet 6c:71:d9:1e:f3:4f;
host thnote {
hardware ethernet d0:22:be:d3:be:e1;
mkdir /tmp/data
wget -O /tmp/data/dhcp.conf
sudo ifconfig $ETH up
sudo ip route add via
sudo docker run -it --rm --net=host -v "/tmp/data":/data networkboot/dhcpd $ETH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.