![]() ![]() ![]() ![]() We’ll get the latest package information, with apt-get update, then install the package. We’re going to install ISC DHCP Server on to our Pi. Setting UpĪs with most things, getting our DHCP server up and running involves installing a package. By setting up our own DHCP server, we can change this and use our domain name servers (DNS). For example, the Sky router I have doesn’t allow changing the name servers (an internet address book, basically) that we perform domain names look ups on, when connecting to the internet. Many routers do the job, but don’t give much room for us to do anything other than the basics with it. Last, but not least, administrating this ourselves gives us far more flexibility and power. Also that you want to tinker with Linux to get a broader understanding of the technologies involved. If you’re reading this article I’m assuming you want to learn more about how the inner workings of things work. If The Router Does This, Why Do We Need To Make The Pi Do This?īecause we can. If you’re new to this, you’ll never even realised it existed, or could be done on a separate device to your router. But, as we noted when setting up Rasbian, a static IP address is useful when you want to easily be able to find the machine, and route particular traffic to it.Īt a home level, your ISP provided outer is most likely also a DHCP server. Most people do not care too much about what IP address their machine has or whether it changes to something else. This could be the same or different as the one it had before. After the lease has expired, the machine requests the DHCP server assigns another IP address to the computer. Under normal circumstances machines are automatically provided an IP address, this is known as a lease. This prevents clashing, where 2 machines could have the same IP address, enabling everything to talk to each seamlessly. Quite simply, it is a service that keeps track of which computers (more specifically: MAC addresses) have been assigned what IP address on a network. ![]() Here we are going to set the Pi to act as a DHCP server. It’s time to get it performing some tasks. That’s all well and good, but there’s no point if it’s doing absolutely nothing. In the first tutorial, we set up the Pi with Rasbian, stuck it on the network, with a static IP and enabled SSH for remote log in. ![]()
0 Comments
Leave a Reply. |