DHCPD Configuration - SomethingGeneric/sparkle.local GitHub Wiki

For both VMs

  1. yum install -y dhcp
  2. nano /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;
	}

}
  1. Important: the below config snippets for each individual machine must go above the snippet above which is used for both machines.
  2. 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 setting SELINUX= to SELINUX=disabled in /etc/selinux/config and rebooting.

For dhcp1-razzle

  1. 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;
}
  1. systemctl enable --now dhcpd

For dhcp2-dazzle

  1. 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;
}
  1. systemctl enable --now dhcpd