Page:
DHCPD Configuration
Pages
Ansible Configuration
Configure Linux Nodes
Configure Window Nodes
Configuring an AD Sudo Group
DFS01 DFS02 Basic Config
DHCPD Configuration
Docker Configuration
Final
GPO DFS Based Profiles & Home Directories
GPO Remote Desktop
GPO Wallpaper
Home
Mgmt02 sparkle configuration
Milestone 1
Milestone 2
Network Diagrams
Playbook for Linux Users
Playbook for Windows Domain User
RVTM
Redundant ADDS Config
Redundant DFS Setup
System Infrastructure and Assignments
System Infrastructure
Util Configuration
W1 Milestone 1
W2 Milestone 1
Who did what
dhcp1 razzle configuration
dhcp2 dazzle configuration
No results
6
DHCPD Configuration
Matt C edited this page 2024-04-17 15:59:18 -04:00
Table of Contents
For both VMs
yum install -y dhcpnano /etc/dhcp/dhcpd.conf
# this is the base config for both machines
subnet 172.16.1.0 netmask 255.255.255.0 {
option routers 172.16.1.2;
option domain-name "sparkle.local";
option domain-name-servers 172.16.1.12, 172.16.1.13;
option subnet-mask 255.255.255.0;
option broadcast-address 172.16.1.255;
default-lease-time 600;
max-lease-time 7200;
pool {
failover peer "failover-dhcp";
range 172.16.1.100 172.16.1.254;
}
}
- Important: the below config snippets for each individual machine must go above the snippet above which is used for both machines.
- If you encounter nonsensical seeming errors where DHCPD claims it can't read
/etc/dhcp/dhcpd.conf, and the permissions are sane, then you might need to disable SELinux by changing the settingSELINUX=toSELINUX=disabledin/etc/selinux/configand rebooting.
For dhcp1-razzle
nano /etc/dhcp/dhcpd.conf
failover peer "failover-dhcp" {
primary;
address 172.16.1.10;
port 847;
peer address 172.16.1.11;
peer port 647;
max-response-delay 180;
mclt 1800;
split 128;
load balance max seconds 3;
}
systemctl enable --now dhcpd
For dhcp2-dazzle
nano /etc/dhcp/dhcpd.conf
failover peer "failover-dhcp" {
secondary;
address 172.16.1.11;
peer address 172.16.1.10;
max-response-delay 60;
max-unacked-updates 10;
load balance max seconds 3;
}
systemctl enable --now dhcpd