DHCP1 & DHCP2 Configuration - Henryisgreat/GROUP14Final GitHub Wiki
Overview
DHCP1 uses a Centos 7 linux vm in order to set up a dhcp server.
Script for Network Setup DHCP1
#!/bin/bash
yum install dhcp
vi /etc/dhcp/dhcpd.conf
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 "GROUP14.local"
option domain-name-servers 10.0.5.5
range 10.0.5.100 10.0.5.125
}
systemctl start dhcpd
systemctl status dhcpd
systemctl enable dhcpd
firewall-cmd --add-service=dhcp --permanent
firewall-cmd --reload
firewall-cmd --list-all
DHCP On W1 & W2
- change the IPv$ network to Obtain an IP address and DNS server automatically
- check to make sure DHCP connection worked
- cmd
- ipconfig/all
- should have the preferred IP and the IP of the DHCP vm
- can also check logs on dhcp1