Our home router is terrible at remembering configured static IPs, I'd like to use my RasPi instead. Is there anything particular I need to consider when setting it up?
Asked
Active
Viewed 4,870 times
1 Answers
8
On your Raspberry Pi, all you would need to do is install the dhcp package.
Arch:
sudo pacman -S dhcp
Debian:
apt-get install isc-dhcp-server
You then edit the configuration file at /etc/conf.d/dhcp which tells the dhcp server which interface on which to listen with this line:
DHCP4_ARGS="... eth0"
You then start the server daemon with:
sudo /etc/rc.d/dhcp4 start
Now any clients that broadcast for an IP connected to eth0 will be managed by the dhcp server.
Jivings
- 22,656
- 11
- 94
- 140