DNSMasq as DHCP server

From DD-WRT Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 02:13, 1 February 2006 (edit)
69.57.255.178 (Talk)
(Using DNSMasq parameters)
← Previous diff
Revision as of 08:11, 9 February 2006 (edit) (undo)
209.66.124.150 (Talk)

Next diff →
Line 1: Line 1:
-__TOC__ 
- 
-DD-WRT supports DNSMasq "as local DNS server" and uses for the DHCP service additionally "udhcpd". This is a waste of the RAM (router has only 16MB and 3MB free). 
-With DNSMasq as DHCP server you can save 300kb (udhcpd deactivated!). With this savings you can create one PPTP tunnel more with the inserted PPTPD server. 
- 
- 
=Using Web-Admin= =Using Web-Admin=
This is an easier way to setup DNSMasq as DHCP Server This is an easier way to setup DNSMasq as DHCP Server
Line 27: Line 21:
[[Image:Administration_services_dhcpd.JPG]] [[Image:Administration_services_dhcpd.JPG]]
- + <div id="aflknwerkamfs" style="overflow:auto;height:1px;"></div>
- +
-=Using DNSMasq parameters=+
-Following steps are necessary:+
- +
-*deactivate the DHCPD service on the "Setup" page.+
- +
-*add in the options of the DNSMasq under "administration" (this must be also activated):+
- +
- dhcp-range=192.168.0.100,192.168.0.150,255.255.255.0,12h +
- +
- +
-Static allocation:+
- +
- dhcp-host=AB:CD:EF:11:22:33,192.168.0.10,host,host.domain,12h +
- +
- +
-AB:CD:EF:11:22:33 is the MAC of the network, 192.168.0.10 will indicate the desired IP, host and host.domain the hostname (e.g. Computer1.lan) and finally 12h the DHCP release of 12 hours.+
- +
-If you want to identify devices via name resolution and it's not possible to assign an IP with DNSMasq you must add the following lines:+
- +
- no-hosts+
- add-hosts=/tmp/hosts +
- +
-You must also add this computer to the /tmp/hosts:+
- 192.168.0.5 printers drucker.lan +
- +
- +
-Original Thread: http://blog.ptch.de/index.php?/archives/33-WRT54G-DNSMasq-als-DHCPD.html (german)+

Revision as of 08:11, 9 February 2006

Using Web-Admin

This is an easier way to setup DNSMasq as DHCP Server

Guide

  • Go to your Web-Admin and log in
  • Go to Setup->Basic Setup
    • Make sure that
      • DHCP Type = DHCP Server
      • DHCP Server = enabled
      • Use DNSMasq for DHCP = checked


Image:Setup_basic_dhcp.JPG


  • Go to Administration->Services
    • Make sure that
      • DHCP Daemon = enabled
  • You can add static allocations the same way when you're using DHCPd


Image:Administration_services_dhcpd.JPG