Skip to content

Instantly share code, notes, and snippets.

@jsravn
Created June 12, 2018 13:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jsravn/aa1344ac73e96a59d0ea67b2e6496aa7 to your computer and use it in GitHub Desktop.
Save jsravn/aa1344ac73e96a59d0ea67b2e6496aa7 to your computer and use it in GitHub Desktop.
# 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