opentechinstitute / commotion-feed

Feed of Commotion components to be pulled in by OpenWRT
GNU Affero General Public License v3.0
5 stars 11 forks source link

add dhcp-relay option to dnsmasq #67

Closed dismantl closed 9 years ago

dismantl commented 9 years ago

To test, first run dnsmasq --help on the node and make sure the dhcp-relay option is present.

Then add the following line to the dnsmasq section of /etc/config/dhcp: option dhcp_relay '0.0.0.0,1.2.3.4' where 1.2.3.4 is the IP address of a reachable server running a DHCP daemon.

Next, set ignore "0" to ignore "1" in the dhcp section of the same config. Restart dnsmasq and ensure that connecting clients get a DHCP lease from the server and not the node.

dismantl commented 9 years ago

Quick note, I'm not sure whether or not setting the ignore option will disable the DHCP relaying or not, so if it doesn't work at first, try resetting the ignore option.

dismantl commented 9 years ago

Another note, it might be worth upstreaming the compile flag patch, since that restores several CLI options that are otherwise unnecessarily stripped by the compiler.