Skip to content

Instantly share code, notes, and snippets.

@jsravn

jsravn/dhcpd.conf

Created Jun 12, 2018
Embed
What would you like to do?
# The ddns-updates-style parameter controls whether or not the server will
# attempt to do a DNS update when a lease is confirmed. We default to the
# behavior of the version 2 packages ('none', since DHCP v2 didn't
# have support for DDNS.)
ddns-update-style none;
# option definitions common to all supported networks...
option domain-name "home";
option domain-search "home";
# 8 day leases - we don't need short leases
default-lease-time 691200;
max-lease-time 691200;
# If this DHCP server is the official DHCP server for the local
# network, the authoritative directive should be uncommented.
authoritative;
# 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;
# LAN
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.100 192.168.1.254;
option routers 192.168.1.1;
option domain-name-servers 192.168.1.1;
}
# Static IPs
host mypc {
hardware ethernet 00:11:22:33:44:55;
fixed-address 192.168.1.3;
}
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.