-
-
Save llxp/ae88011d47f6b5d26b2ecd13c85b43b8 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
# | |
# DHCP Server Configuration file. | |
# see /usr/share/doc/dhcp-server/dhcpd.conf.example | |
# see dhcpd.conf(5) man page | |
# | |
# Set DNS name and DNS server's IP address or hostname | |
option domain-name "domain-name.example.com"; | |
option domain-name-servers 172.22.24.21, 172.22.24.22; | |
omapi-port 7911; | |
omapi-key omapi_key; | |
key omapi_key { | |
algorithm hmac-md5; | |
secret ...; | |
} | |
boot-unknown-clients off; | |
ignore client-updates; | |
ddns-update-style none; | |
ddns-updates off; | |
# Declare DHCP Server | |
not authoritative; | |
# The default DHCP lease time | |
default-lease-time 43200; | |
# Set the maximum lease time | |
max-lease-time 86400; | |
allow booting; | |
allow bootp; | |
option fqdn.no-client-update on; # set the "O" and "S" flag bits | |
option fqdn.rcode2 255; | |
option pxegrub code 150 = text ; | |
include "/etc/dhcp/dhcpd.hosts"; | |
failover peer "failover-peet" { | |
primary; | |
address 172.22.24.100; | |
port 647; | |
peer address 172.22.24.101; | |
peer port 847; | |
max-response-delay 60; | |
max-unacked-updates 10; | |
mclt 3600; | |
# Nur Failover | |
split 255; | |
# Failover und Loadbalancing | |
#split 128; | |
load balance max seconds 3; | |
} | |
include "/media/dhcpconfig/dhcpd_replicated.conf"; |
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
# subnet definition | |
subnet 172.22.24.0 netmask 255.255.255.0 { | |
pool { | |
# Range of IP addresses to allocate | |
range 172.22.24.240 172.22.24.250; | |
failover peer "failover-peer"; | |
} | |
# Provide broadcast address | |
option broadcast-address 172.22.24.255; | |
# Set default gateway | |
option routers 172.22.24.1; | |
option dhcp-server-identifier 172.22.24.100; | |
} | |
host dhcp03-ens224 { | |
hardware ethernet 00:00:00:00:00:00; | |
fixed-address 172.22.24.100; | |
} | |
host dhcp04-ens224 { | |
hardware ethernet 00:00:00:00:00:00; | |
fixed-address 172.22.24.101; | |
} | |
log-facility local7; | |
# required for UEFI HTTP boot | |
if substring(option vendor-class-identifier, 0, 10) = "HTTPClient" { | |
option vendor-class-identifier "HTTPClient"; | |
} | |
# promote vendor in dhcpd.leases | |
set vendor-string = option vendor-class-identifier; | |
# next server and filename options | |
next-server 172.22.24.89; # point to the foreman server to use the built-in tftp server to boot using pxe | |
option architecture code 93 = unsigned integer 16 ; | |
if option architecture = 00:06 { | |
filename "grub2/bootia32.efi"; | |
} elsif option architecture = 00:07 { | |
filename "grub2/bootx64.efi"; | |
} elsif option architecture = 00:09 { | |
filename "grub2/bootx64.efi"; | |
} else { | |
filename "pxelinux.0"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment