-
-
Save brentrjones/6b76834e47c9629a45ea1710a386556a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dhcpd.conf: | |
allow booting; | |
allow bootp; | |
option domain-name "somedomain"; | |
option domain-name-servers 10.6.0.10, 10.6.0.11, 10.6.0.16, 10.6.0.17; | |
option ntp-servers 10.6.0.16, 10.6.0.17; | |
# Lease time - 7 days (604800 seconds) | |
max-lease-time 604800; | |
default-lease-time 604800; | |
get-lease-hostname; | |
filename "el6/pxelinux.0"; | |
log-facility local1; | |
# The next-server line is required even though we point to ourselves. | |
# Resolves some issues relating to pxeboot across subnets. | |
next-server 10.6.48.23; | |
omapi-port 7911; | |
key omapi_key { | |
algorithm HMAC-MD5; | |
secret "*"; | |
} | |
omapi-key omapi_key; | |
#!------------------------------------------------------------------!# | |
# Include additional files - append new includes when you start a new | |
# pool or application group | |
#!------------------------------------------------------------------!# | |
include "/etc/dhcp/conf.d/linux.leases"; | |
include "/etc/dhcp/conf.d/solr.leases"; | |
include "/etc/dhcp/conf.d/dev.leases"; | |
include "/etc/dhcp/conf.d/qa.leases"; | |
include "/etc/dhcp/conf.d/journaling.leases"; | |
include "/etc/dhcp/conf.d/idrac.leases"; | |
include "/etc/dhcp/conf.d/pdu.leases"; | |
#!------------------------------------------------------------------!# | |
# Master Lease section | |
# Specify scopes, pools, and pool options below | |
#!------------------------------------------------------------------!# | |
# vlan-name: prod_somenet_01 | |
# vlan-id: 1000 | |
# Description: Some-VLAN-Network | |
subnet 10.6.16.0 netmask 255.255.255.0 { | |
authoritative; | |
option routers 10.6.16.1; | |
pool { | |
range 10.6.16.101 10.6.16.253; | |
ignore unknown-clients; | |
max-lease-time 86400; | |
} | |
} | |
config.d/linux.conf: | |
# Generic Linux host leases | |
group { | |
use-host-decl-names on; | |
option domain-name "somedomain.com"; | |
host somehost01.somedomain.com { hardware ethernet 00:50:56:b6:32:34; fixed-address somehost01.somedomain.com; } | |
host somehost02.somedomain.com { hardware ethernet 00:50:56:b6:6d:4e; fixed-address somehost02.somedomain.com; } | |
host somehost03.somedomain.com { hardware ethernet 00:50:56:b6:6b:e8; fixed-address somehost03.somedomain.com; } | |
host somehost04.somedomain.com { hardware ethernet 00:50:56:b6:7d:b7; fixed-address somehost04.somedomain.com; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment