Ruby based DHCP server and client, purely for learning
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
README.md
dhcpc.rb
dhcpd.rb
shared.rb

README.md

What Why?

This is just a way for me to learn the DHCP protocol abit better :)
The server hands out ips fine, and replies to discover requests.
At the moment the ip pool is hardcoded to (192.168.1.10+) and the router is hardcoded to 192.168.1.1 although both are easily changed.

Requirements

Ruby --v=1.9

To use you need:

  • packetfu (gem install packetfu)
  • bindata (gem install bindata)

To install you need ruby 1.9.x
then launch with ./dhcp[dc].rb

You may need to prefix the above with
sudo -E

Released under the MIT license.

Website