Skip to content

Instantly share code, notes, and snippets.

@pldmgg
Created March 8, 2018 16:28
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 pldmgg/2e912cf8c6a29937f07d9c640c068f73 to your computer and use it in GitHub Desktop.
Save pldmgg/2e912cf8c6a29937f07d9c640c068f73 to your computer and use it in GitHub Desktop.
Centos7 dhcpd.conf
# dhcpd.conf
# option definitions common to all supported networks...
option domain-name "random.lab";
option domain-name-servers 8.8.8.8;
option option-128 code 128 = string;
option option-129 code 129 = text;
default-lease-time 600;
max-lease-time 7200;
allow booting;
allow bootp;
set vendorclass = option vendor-class-identifier;
# Use this to enble / disable dynamic dns updates globally.
#ddns-update-style none;
# 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;
# A slightly different configuration for an internal subnet.
subnet 10.10.1.0 netmask 255.255.255.0 {
range 10.10.1.3 10.10.1.254;
option domain-name-servers 8.8.8.8;
option domain-name "random.lab";
option routers 10.10.1.1;
option broadcast-address 10.10.1.255;
default-lease-time 600;
max-lease-time 7200;
next-server 10.10.1.2;
}
# Fixed IP addresses can also be specified for hosts. These addresses
# should not also be listed as being available for dynamic assignment.
# host fantasia {
# hardware ethernet 08:00:07:26:c0:a5;
# fixed-address fantasia.fugue.com;
# }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment