DHCP Setup - TannerWeinacker/Tech-Journal GitHub Wiki

Setup

  • run "sudo yum install dhcp"
  • When asked if this is okay select y

Configuration

  • Get into root
  • "vi /etc/dhcp/dhcpd.conf"
  • In here add the following:

subnet 10.0.5.0 netmask 255.255.255.0 {

  • option routers 10.0.5.2;
  • option subnet-mask 255.255.255.0;
  • option domain-name "tanner.local";
  • option domain-name-servers 10.0.5.5;
  • range 10.0.5.100 10.0.5.150;
  • }
  • to quit use ZZ

Start DHCP

  • systemctl start dhcpd
  • systemctl enable dhcpd

Editing the firewall

  • firewall-cmd --add-service=dhcp --permanent
  • firewall-cmd --reload
  • firewall-cmd --list-all