Configuring a Raspberry Pi to act as a DHCP server
Now, we will perform a hands-on implementation of the preceding concept by setting up a Raspberry Pi from our cluster to act as the DHCP server. The Raspberry Pi selected for the purpose should be properly marked for identification because there can be only one DHCP server in a network. More than one can cause a lot of problems! If we have more than one DHCP server in a single network, the client nodes will get confused as to which server to send the IP allocation request to. We first need to install a program called
dnsmasq, and we can do that with the following commands:
sudo apt-get update sudo apt-get install dnsmasq
Once this is installed, we can go ahead and disconnect the Internet from ...