Joachim Breitner's Homepage
Spontanious DHCP-Server: Done.
Sitting around at the GPN6 conference in Karlsruhe at the moment, I thought it’s time to write the instant DHCP server I blogged about. So I took the code from udhcpd and, instead of parsing an config file, figure out the settings myself. So I can run simpledhcpd eth0
now, and will get a DHCP server that waits for DHCP request and answers them with an IP from eth0’s subnet, the correct netmask, my own IP as the gateway and the first entry of /etc/resolv.conf
as the nameserver − that’s all it needs to quickly connect any other computer to mine and, if routing is enabled, provide it with internet connectivity.
I have uploaded the simpledhcpd binary as well as debian binary (.deb) and source packages. It is all very hackish, bad code and comments are welcome.
Comments
And you can teach Linux machines too ;)
Have something to say? You can post a comment by sending an e-Mail to me at <mail@joachim-breitner.de>, and I will include it here.