- Automatically distributing IP address to users from local area network or ISP
- A centralized management for all computers within local area network
So let's see how to make it out !!
A popular DHCP server for Raspberry Pi is ISC's dhcpd. You can install the package in a normal way using apt-get (Before it, make sure to update the local package cache using apt-get update)
The DHCP server requires a static IP address and by default, the Pi will have a DHCP one. Edit /etc/network/interfaces
And modify the records that pertain to eth0 using the network parameters for your network
Edit /etc/dhcp/dhcpd.conf
The configuration file to suit your requirements. All of the main configuration items are commented out and this is why the startup failed previously.
Edit /etc/default/isc-dhcp-server and uncomment the following records, inserts your network interface name as appreciate and changing the file path if you have chosen to put the file somewhere.
Finally, restart the DHCP daemon process using service command (Make sure to plugin the RJ45 before restart DHCP daemon)
Reference :
沒有留言:
張貼留言