CentOS 7 DHCP Machines - Bobleoble/tech-journal GitHub Wiki

CentOS 7 DHCP Machine Configurations

These two machines are simply used to provide IP Addresses to any machines not using static addresses on the network. In this case, there are only two - wks01 and wks02.

Network Configuration

dhcp 01 configuration

  • Hostname: dhcp01-unlucky
  • IP Address: 10.0.5.15
  • Primary DNS Address: 10.0.5.5
  • Alternate DNS Address: 10.0.5.6
  • Domain: unlucky.local

dhcp 02 configuration

  • Hostname: dhcp02-unlucky
  • IP Address: 10.0.5.16
  • Primary DNS Address: 10.0.5.5
  • Alternate DNS Address: 10.0.5.6
  • Domain: unlucky.local

DHCP Configuration

dhcp01 dhcpd.conf file

  • Locate the dhpcd.conf - usually found in /etc/dhcp/dhcpd.conf
  • Replace it with dhcpd.conf

dhcp02 dhcpd.conf file

  • Locate the dhpcd.conf - usually found in /etc/dhcp/dhcpd.conf
  • Replace it with dhcpd.conf
  • Edit the new dhcpd.conf file and replace the first range with 10.0.5.101 and the second with 10.0.5.150.
  • Note that all of these ranges are simply for verifying that both dhcp servers are functional. This configuration is not recommended for a practical setup.