Raspberry Pi as DHCP Server

In order to run my Raspberry Pi as a PXE server I had to switch the DHCP server from my router to the Raspberry.

For this duty we are using isc-dhcp-server

Quite simple stuff, so lets start and get it.

At first we need a static IP on our raspberry pi:


comment out iface eth0 inet dhcp

add the following lines and adjust the gateway to your routers IP. Address and network can also be changed f.e. to address and network In this howto I will use my personal settings which are in a network


save the configuration and restart the connection


now we are going to installĀ our dhcp server


and start the config:


my network is running on the subnet Adjust the IP if you want to use f.e.


almost done, lets start the DHCP-server:


Now deactivate the DHCP server on your router.

After that you can test it. On a windows client open cmd and type ipconfig /release and afterwards ipconfig /renew. You should now have a new IP from your subnet.