SYS255 DHCP - eitan-j/tech-journal GitHub Wiki
SSH with PuTTY
- Login to ad01-eitan
- Open powershell
curl https://the.earth.li/~sgtatham/putty/latest/w64/putty-64bit-0.77-installer.msi -O putty.msi
- Servers should generally not have web browsers
.\putty.msi
- Next x2 -> Install -> Yes -> Finish
- Open PuTTY
- In host name enter
dhcp01-eitan
-> Open -> Accept
- Login
DHCP server
yum install dhcp
nano /etc/dhcp/dhcpd.conf
- 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 "eitan.local";
option domain-name-servers 10.0.5.5;
range 10.0.5.100 10.0.5.150;
}
systemctl enable --now dhcpd
systemctl status dhcpd
to check
firewall-cmd --add-service=dhcp --permanent
firewall-cmd --reload
firewall-cmd --list-all
to check
exit
DHCP client
- Switch to wks01-eitan
- Get to IPv4 Properties
- Select "Obtain ... automatically" x2 -> OK