DNSMasq as DHCP server - Revision history http://wiki.dd-wrt.com/wiki/index.php?title=DNSMasq_as_DHCP_server&action=history Revision history for this page on the wiki en MediaWiki 1.10.1 Fri, 29 Mar 2024 12:46:48 GMT Kernel-panic69: /* Introduction */ (replace broken link, even though 'tis trivial) http://wiki.dd-wrt.com/wiki/index.php?title=DNSMasq_as_DHCP_server&diff=56634&oldid=prev <p><span class="autocomment">Introduction -</span> (replace broken link, even though 'tis trivial)</p> <table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;"> <tr> <td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td> <td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 02:20, 4 June 2023</td> </tr> <tr><td colspan="2" align="left"><strong>Line 10:</strong></td> <td colspan="2" align="left"><strong>Line 10:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">==Introduction==</td><td> </td><td style="background: #eee; font-size: smaller;">==Introduction==</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">DD-WRT supports using [<del style="color: red; font-weight: bold; text-decoration: none;">http</del>://<del style="color: red; font-weight: bold; text-decoration: none;">www.linux</del>.org/<del style="color: red; font-weight: bold; text-decoration: none;">apps/AppId_6060.html </del>DNSMasq] as a ''local DNS server'' (as well as a local DHCP server). DNSMasq can intelligently add DHCP leases to its DNS database, providing local name lookups for any DHCP client, [[Static_DHCP|static]] or dynamic.</td><td>+</td><td style="background: #cfc; font-size: smaller;">DD-WRT supports using [<ins style="color: red; font-weight: bold; text-decoration: none;">https</ins>://<ins style="color: red; font-weight: bold; text-decoration: none;">dnsmasq</ins>.org/ DNSMasq] as a ''local DNS server'' (as well as a local DHCP server). DNSMasq can intelligently add DHCP leases to its DNS database, providing local name lookups for any DHCP client, [[Static_DHCP|static]] or dynamic.</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> </table> Sun, 04 Jun 2023 02:20:04 GMT Kernel-panic69 http://wiki.dd-wrt.com/wiki/index.php/Talk:DNSMasq_as_DHCP_server Kernel-panic69: (add TOC anchor, add deprecation notice, move notes/notice above TOC anchor) http://wiki.dd-wrt.com/wiki/index.php?title=DNSMasq_as_DHCP_server&diff=56611&oldid=prev <p>(add TOC anchor, add deprecation notice, move notes/notice above TOC anchor)</p> <table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;"> <tr> <td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td> <td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 01:25, 3 June 2023</td> </tr> <tr><td colspan="2" align="left"><strong>Line 1:</strong></td> <td colspan="2" align="left"><strong>Line 1:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">{{Languages|DNSMasq as DHCP server}}</td><td> </td><td style="background: #eee; font-size: smaller;">{{Languages|DNSMasq as DHCP server}}</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">Since [https://svn.dd-wrt.com/changeset/39350 changeset 39350], udhcpd has been removed and DNSMasq is the only DHCP server in dd-wrt.</td><td colspan="2">&nbsp;</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">DD-WRT supports using [http://www.linux.org/apps/AppId_6060.html DNSMasq] as a ''local DNS server''. DNSMasq can intelligently add DHCP leases to its DNS database, providing local name lookups for any DHCP client, [[Static_DHCP|static]] or dynamic.</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;">'''NOTICE: While there is plenty of relevant information in this wiki article, &lt;span style=&quot;color:#ff0000&quot;&gt;certain content is now deprecated&lt;/span&gt;.'''</ins></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;">----</ins></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;">'''NOTE:''' In DD-WRT releases [https://download1.dd-wrt.com/dd-wrtv2/downloads/betas/2019/04-10-2019-r39469/ r39469] and newer, '''[https://svn.dd-wrt.com/changeset/39350 ''the busybox udhcpd applet has been removed'']''' and DNSMasq is the only DHCP server in DD-WRT.&lt;br&gt;</ins></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;">'''NOTE:''' Busybox udhcpd applet, the former default DHCP server (daemon), is not to be confused with the udhcpc applet, the DHCP client.&lt;br&gt;</ins></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;">* Most setups require that the router run udhcpc to acquire DHCP leases for the WAN interface.</ins></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;">&lt;br&gt;</ins></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;">__TOC__</ins></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">&#160;</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;">==Introduction==</ins></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">DD-WRT supports using [http://www.linux.org/apps/AppId_6060.html DNSMasq] as a ''local DNS server'' <ins style="color: red; font-weight: bold; text-decoration: none;">(as well as a local DHCP server)</ins>. DNSMasq can intelligently add DHCP leases to its DNS database, providing local name lookups for any DHCP client, [[Static_DHCP|static]] or dynamic.</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">udhcpd, the former DHCP server (daemon), is not to be confused with udhcpc, the DHCP client. Most setups require that the router run udhcpc to acquire DHCP leases for the WAN interface.</td><td colspan="2">&nbsp;</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">There are two ways to enable the DNSMasq dhcp server.</td><td> </td><td style="background: #eee; font-size: smaller;">There are two ways to enable the DNSMasq dhcp server.</td></tr> </table> Sat, 03 Jun 2023 01:25:16 GMT Kernel-panic69 http://wiki.dd-wrt.com/wiki/index.php/Talk:DNSMasq_as_DHCP_server Tmittelstaedt at 14:58, 15 May 2021 http://wiki.dd-wrt.com/wiki/index.php?title=DNSMasq_as_DHCP_server&diff=55838&oldid=prev <p></p> <table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;"> <tr> <td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td> <td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 14:58, 15 May 2021</td> </tr> <tr><td colspan="2" align="left"><strong>Line 187:</strong></td> <td colspan="2" align="left"><strong>Line 187:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">tftp-root=/opt/tftpboot&lt;/pre&gt;</td><td> </td><td style="background: #eee; font-size: smaller;">tftp-root=/opt/tftpboot&lt;/pre&gt;</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">===<del style="color: red; font-weight: bold; text-decoration: none;">Set the </del>clock <del style="color: red; font-weight: bold; text-decoration: none;">for Polycom (and other VoIP) telephone sets</del>===</td><td>+</td><td style="background: #cfc; font-size: smaller;">===<ins style="color: red; font-weight: bold; text-decoration: none;">Provide </ins>clock <ins style="color: red; font-weight: bold; text-decoration: none;">information</ins>===</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">Many VoIP phones have a clock and some will display the current date and time synced from an NTP server on your network. Besides</td><td>+</td><td style="background: #cfc; font-size: smaller;">Many VoIP phones have a clock and some will display the current date and time synced from an NTP server on your network<ins style="color: red; font-weight: bold; text-decoration: none;">. Some wall clocks are wireless and will also sync to an NTP server</ins>. Besides the IP address of the NTP server they will also need an offset from GMT to display the correct time. The offset is the number of seconds from GMT. DO NOT SET pool.ntp.org AS THE NTP SERVER FOR A BUNCH OF PHONES! Instead, set a SINGLE local device as an NTP server slaved to pool.ntp.org (such as a Linux box) then slave all of your phones, printers, and other clients to that.</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">the IP address of the NTP server they will also need an offset from GMT to display the correct time. The offset is the number of</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">seconds from GMT. DO NOT SET pool.ntp.org AS THE NTP SERVER FOR A BUNCH OF PHONES! Instead, set a SINGLE local device as an NTP server slaved to pool.ntp.org (such as a Linux box) then slave all of your phones, printers, and other clients to that.</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">Note that not all phones process the offset correctly. Some code versions of Grandstream VoIP phones treat an offset of 0 as -12 GMT and UTC as a 12hr offset.</td><td>+</td><td style="background: #cfc; font-size: smaller;">Note that not all phones process the offset correctly. Some code versions of Grandstream VoIP phones treat an offset of 0 as -12 GMT and UTC as a 12hr offset. <ins style="color: red; font-weight: bold; text-decoration: none;"> Polycom phones DO process the offset correctly</ins></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">The offset does NOT pass Daylight Savings Time. Instead, the IETF deprecated Option 2 and replaced it with option 100 and 101, in RFC4833. A phone MAY process this INSTEAD of Option 2. Or a phone may pull it's DST or GMT offset from it's configuration and use the DHCP server option for the NTP server.</td><td>+</td><td style="background: #cfc; font-size: smaller;">The offset does NOT pass Daylight Savings Time. Instead, the IETF deprecated Option 2 and replaced it with option 100 and 101, in RFC4833. A phone MAY process this INSTEAD of Option 2. Or a phone may pull it's DST or GMT offset from it's configuration and use the DHCP server option for the NTP server<ins style="color: red; font-weight: bold; text-decoration: none;">. For example Valcom institutional wall clocks use the new method</ins>.</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">For example if your NTP server is 172.16.1.1 and your timezone is US/Pacific (-8 hours offset from GMT) you would use:</td><td> </td><td style="background: #eee; font-size: smaller;">For example if your NTP server is 172.16.1.1 and your timezone is US/Pacific (-8 hours offset from GMT) you would use:</td></tr> </table> Sat, 15 May 2021 14:58:56 GMT Tmittelstaedt http://wiki.dd-wrt.com/wiki/index.php/Talk:DNSMasq_as_DHCP_server Tmittelstaedt at 14:48, 15 May 2021 http://wiki.dd-wrt.com/wiki/index.php?title=DNSMasq_as_DHCP_server&diff=55837&oldid=prev <p></p> <table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;"> <tr> <td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td> <td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 14:48, 15 May 2021</td> </tr> <tr><td colspan="2" align="left"><strong>Line 191:</strong></td> <td colspan="2" align="left"><strong>Line 191:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">the IP address of the NTP server they will also need an offset from GMT to display the correct time. The offset is the number of</td><td> </td><td style="background: #eee; font-size: smaller;">the IP address of the NTP server they will also need an offset from GMT to display the correct time. The offset is the number of</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">seconds from GMT. DO NOT SET pool.ntp.org AS THE NTP SERVER FOR A BUNCH OF PHONES! Instead, set a SINGLE local device as an NTP server slaved to pool.ntp.org (such as a Linux box) then slave all of your phones, printers, and other clients to that.</td><td> </td><td style="background: #eee; font-size: smaller;">seconds from GMT. DO NOT SET pool.ntp.org AS THE NTP SERVER FOR A BUNCH OF PHONES! Instead, set a SINGLE local device as an NTP server slaved to pool.ntp.org (such as a Linux box) then slave all of your phones, printers, and other clients to that.</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">Note that not all phones process the offset correctly. Some code versions of Grandstream VoIP phones treat an offset of 0 as -12 GMT and UTC as a 12hr offset. <del style="color: red; font-weight: bold; text-decoration: none;"> </del>The offset does NOT pass Daylight Savings Time. Instead, the IETF deprecated Option 2 and replaced it with option 100 and 101, in RFC4833. A phone MAY process this INSTEAD of Option 2</td><td>+</td><td style="background: #cfc; font-size: smaller;">&#160;</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">Note that not all phones process the offset correctly. Some code versions of Grandstream VoIP phones treat an offset of 0 as -12 GMT and UTC as a 12hr offset.</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">&#160;</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">The offset does NOT pass Daylight Savings Time. Instead, the IETF deprecated Option 2 and replaced it with option 100 and 101, in RFC4833. A phone MAY process this INSTEAD of Option 2<ins style="color: red; font-weight: bold; text-decoration: none;">. Or a phone may pull it's DST or GMT offset from it's configuration and use the DHCP server option for the NTP server.</ins></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">For example if your NTP server is 172.16.1.1 and your timezone is US/Pacific (-8 hours offset from GMT) you would use:</td><td> </td><td style="background: #eee; font-size: smaller;">For example if your NTP server is 172.16.1.1 and your timezone is US/Pacific (-8 hours offset from GMT) you would use:</td></tr> </table> Sat, 15 May 2021 14:48:53 GMT Tmittelstaedt http://wiki.dd-wrt.com/wiki/index.php/Talk:DNSMasq_as_DHCP_server Tmittelstaedt at 14:46, 15 May 2021 http://wiki.dd-wrt.com/wiki/index.php?title=DNSMasq_as_DHCP_server&diff=55836&oldid=prev <p></p> <table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;"> <tr> <td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td> <td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 14:46, 15 May 2021</td> </tr> <tr><td colspan="2" align="left"><strong>Line 198:</strong></td> <td colspan="2" align="left"><strong>Line 198:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">dhcp-option=42, 172.16.1.1 # NTP Server</td><td> </td><td style="background: #eee; font-size: smaller;">dhcp-option=42, 172.16.1.1 # NTP Server</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">dhcp-option=2, -28800 #Time Offset&lt;/pre&gt;</td><td> </td><td style="background: #eee; font-size: smaller;">dhcp-option=2, -28800 #Time Offset&lt;/pre&gt;</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">If your Timezone was Pacific/Auckland using the new options:</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">&lt;pre&gt;</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"># Option 100 - POSIX TZ Code</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">dhcp-option=100,&quot;NZST-12NZDT,M9.5.0/2,M4.1.0/3&quot;</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"># Option 101 - TCode</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">dhcp-option=101,&quot;Pacific/Auckland&quot;&lt;/pre&gt;</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">===Disable NetBIOS over TCP/IP===</td><td> </td><td style="background: #eee; font-size: smaller;">===Disable NetBIOS over TCP/IP===</td></tr> </table> Sat, 15 May 2021 14:46:05 GMT Tmittelstaedt http://wiki.dd-wrt.com/wiki/index.php/Talk:DNSMasq_as_DHCP_server Tmittelstaedt at 14:39, 15 May 2021 http://wiki.dd-wrt.com/wiki/index.php?title=DNSMasq_as_DHCP_server&diff=55835&oldid=prev <p></p> <table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;"> <tr> <td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td> <td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 14:39, 15 May 2021</td> </tr> <tr><td colspan="2" align="left"><strong>Line 188:</strong></td> <td colspan="2" align="left"><strong>Line 188:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">===Set the clock for Polycom (and other VoIP) telephone sets===</td><td> </td><td style="background: #eee; font-size: smaller;">===Set the clock for Polycom (and other VoIP) telephone sets===</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">Many VoIP phones have a clock and will display the current date and time synced from an NTP server on your network. Besides</td><td>+</td><td style="background: #cfc; font-size: smaller;">Many VoIP phones have a clock and <ins style="color: red; font-weight: bold; text-decoration: none;">some </ins>will display the current date and time synced from an NTP server on your network. Besides</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">the IP address of the NTP server they will also need an offset from GMT to display the correct time. The offset is the number of</td><td> </td><td style="background: #eee; font-size: smaller;">the IP address of the NTP server they will also need an offset from GMT to display the correct time. The offset is the number of</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">seconds from GMT. DO NOT SET pool.ntp.org AS THE NTP FOR A BUNCH OF PHONES! Instead, set a SINGLE local device as an NTP server slaved to pool.ntp.org (such as a Linux box) then slave all of your phones, printers, and other clients to that.</td><td>+</td><td style="background: #cfc; font-size: smaller;">seconds from GMT. DO NOT SET pool.ntp.org AS THE NTP <ins style="color: red; font-weight: bold; text-decoration: none;">SERVER </ins>FOR A BUNCH OF PHONES! Instead, set a SINGLE local device as an NTP server slaved to pool.ntp.org (such as a Linux box) then slave all of your phones, printers, and other clients to that.</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;">Note that not all phones process the offset correctly. Some code versions of Grandstream VoIP phones treat an offset of 0 as -12 GMT and UTC as a 12hr offset. The offset does NOT pass Daylight Savings Time. Instead, the IETF deprecated Option 2 and replaced it with option 100 and 101, in RFC4833. A phone MAY process this INSTEAD of Option 2</ins></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">For example if your NTP server is 172.16.1.1 and your timezone is US/Pacific (-8 hours offset from GMT) you would use:</td><td> </td><td style="background: #eee; font-size: smaller;">For example if your NTP server is 172.16.1.1 and your timezone is US/Pacific (-8 hours offset from GMT) you would use:</td></tr> </table> Sat, 15 May 2021 14:39:41 GMT Tmittelstaedt http://wiki.dd-wrt.com/wiki/index.php/Talk:DNSMasq_as_DHCP_server Tmittelstaedt at 14:24, 15 May 2021 http://wiki.dd-wrt.com/wiki/index.php?title=DNSMasq_as_DHCP_server&diff=55834&oldid=prev <p></p> <table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;"> <tr> <td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td> <td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 14:24, 15 May 2021</td> </tr> <tr><td colspan="2" align="left"><strong>Line 186:</strong></td> <td colspan="2" align="left"><strong>Line 186:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">enable-tftp</td><td> </td><td style="background: #eee; font-size: smaller;">enable-tftp</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">tftp-root=/opt/tftpboot&lt;/pre&gt;</td><td> </td><td style="background: #eee; font-size: smaller;">tftp-root=/opt/tftpboot&lt;/pre&gt;</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">===Set the clock for Polycom (and other VoIP) telephone sets===</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">Many VoIP phones have a clock and will display the current date and time synced from an NTP server on your network. Besides</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">the IP address of the NTP server they will also need an offset from GMT to display the correct time. The offset is the number of</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">seconds from GMT. DO NOT SET pool.ntp.org AS THE NTP FOR A BUNCH OF PHONES! Instead, set a SINGLE local device as an NTP server slaved to pool.ntp.org (such as a Linux box) then slave all of your phones, printers, and other clients to that.</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">For example if your NTP server is 172.16.1.1 and your timezone is US/Pacific (-8 hours offset from GMT) you would use:</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">&lt;pre&gt;</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">dhcp-option=42, 172.16.1.1 # NTP Server</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">dhcp-option=2, -28800 #Time Offset&lt;/pre&gt;</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">===Disable NetBIOS over TCP/IP===</td><td> </td><td style="background: #eee; font-size: smaller;">===Disable NetBIOS over TCP/IP===</td></tr> </table> Sat, 15 May 2021 14:24:24 GMT Tmittelstaedt http://wiki.dd-wrt.com/wiki/index.php/Talk:DNSMasq_as_DHCP_server Wrtf: Link additional DNSmasq options page http://wiki.dd-wrt.com/wiki/index.php?title=DNSMasq_as_DHCP_server&diff=55581&oldid=prev <p>Link additional DNSmasq options page</p> <table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;"> <tr> <td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td> <td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 16:27, 4 May 2020</td> </tr> <tr><td colspan="2" align="left"><strong>Line 254:</strong></td> <td colspan="2" align="left"><strong>Line 254:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">11 or greater - a non zero return code was received from the lease-script process &quot;init&quot; call. The exit code from DNSmasq is the script's exit code with 10 added.</td><td> </td><td style="background: #eee; font-size: smaller;">11 or greater - a non zero return code was received from the lease-script process &quot;init&quot; call. The exit code from DNSmasq is the script's exit code with 10 added.</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">==See also==</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">[[Additional DNSMasq Options]]</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">==External Links==</td><td> </td><td style="background: #eee; font-size: smaller;">==External Links==</td></tr> </table> Mon, 04 May 2020 16:27:20 GMT Wrtf http://wiki.dd-wrt.com/wiki/index.php/Talk:DNSMasq_as_DHCP_server Wrtf: update for DNSMasq being the only dhcp server in recent builds http://wiki.dd-wrt.com/wiki/index.php?title=DNSMasq_as_DHCP_server&diff=55580&oldid=prev <p>update for DNSMasq being the only dhcp server in recent builds</p> <table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;"> <tr> <td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td> <td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 16:25, 4 May 2020</td> </tr> <tr><td colspan="2" align="left"><strong>Line 1:</strong></td> <td colspan="2" align="left"><strong>Line 1:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">{{Languages|DNSMasq as DHCP server}}</td><td> </td><td style="background: #eee; font-size: smaller;">{{Languages|DNSMasq as DHCP server}}</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"><del style="color: red; font-weight: bold; text-decoration: none;">DD-WRT supports using </del>[<del style="color: red; font-weight: bold; text-decoration: none;">http</del>://<del style="color: red; font-weight: bold; text-decoration: none;">www</del>.<del style="color: red; font-weight: bold; text-decoration: none;">linux</del>.<del style="color: red; font-weight: bold; text-decoration: none;">org</del>/<del style="color: red; font-weight: bold; text-decoration: none;">apps</del>/<del style="color: red; font-weight: bold; text-decoration: none;">AppId_6060.html DNSMasq</del>] <del style="color: red; font-weight: bold; text-decoration: none;">as a ''local DNS server'' </del>and <del style="color: red; font-weight: bold; text-decoration: none;">can also support using replacement of </del>the <del style="color: red; font-weight: bold; text-decoration: none;">standard DD</del>-<del style="color: red; font-weight: bold; text-decoration: none;">WRT DHCP service [http://udhcp.busybox.net/ &quot;udhcpd&quot;]. uDHCPd uses more RAM than DNSMasq</del>. </td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;">Since </ins>[<ins style="color: red; font-weight: bold; text-decoration: none;">https</ins>://<ins style="color: red; font-weight: bold; text-decoration: none;">svn</ins>.<ins style="color: red; font-weight: bold; text-decoration: none;">dd-wrt</ins>.<ins style="color: red; font-weight: bold; text-decoration: none;">com</ins>/<ins style="color: red; font-weight: bold; text-decoration: none;">changeset</ins>/<ins style="color: red; font-weight: bold; text-decoration: none;">39350 changeset 39350</ins>]<ins style="color: red; font-weight: bold; text-decoration: none;">, udhcpd has been removed </ins>and <ins style="color: red; font-weight: bold; text-decoration: none;">DNSMasq is </ins>the <ins style="color: red; font-weight: bold; text-decoration: none;">only DHCP server in dd</ins>-<ins style="color: red; font-weight: bold; text-decoration: none;">wrt</ins>.</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"><del style="color: red; font-weight: bold; text-decoration: none;">Using </del>DNSMasq as <del style="color: red; font-weight: bold; text-decoration: none;">the sole DHCP </del>server <del style="color: red; font-weight: bold; text-decoration: none;">can save you 300kB</del>. <del style="color: red; font-weight: bold; text-decoration: none;">With this savings you </del>can <del style="color: red; font-weight: bold; text-decoration: none;">create one more PPTP tunnels with the inserted PPTPD server</del>.</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;">DD-WRT supports using [http://www.linux.org/apps/AppId_6060.html </ins>DNSMasq<ins style="color: red; font-weight: bold; text-decoration: none;">] </ins>as <ins style="color: red; font-weight: bold; text-decoration: none;">a ''local DNS </ins>server<ins style="color: red; font-weight: bold; text-decoration: none;">''</ins>. <ins style="color: red; font-weight: bold; text-decoration: none;">DNSMasq </ins>can <ins style="color: red; font-weight: bold; text-decoration: none;">intelligently add DHCP leases to its DNS database, providing local name lookups for any DHCP client, [[Static_DHCP|static]] or dynamic</ins>.</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"><del style="color: red; font-weight: bold; text-decoration: none;">An added advantage is that DNSMasq can intelligently add </del>DHCP <del style="color: red; font-weight: bold; text-decoration: none;">leases </del>to <del style="color: red; font-weight: bold; text-decoration: none;">its DNS database</del>, <del style="color: red; font-weight: bold; text-decoration: none;">providing local name lookups for any </del>DHCP client<del style="color: red; font-weight: bold; text-decoration: none;">, [[Static_DHCP|static]] or dynamic</del>.</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;">udhcpd, the former </ins>DHCP <ins style="color: red; font-weight: bold; text-decoration: none;">server (daemon), is not </ins>to <ins style="color: red; font-weight: bold; text-decoration: none;">be confused with udhcpc</ins>, <ins style="color: red; font-weight: bold; text-decoration: none;">the </ins>DHCP client<ins style="color: red; font-weight: bold; text-decoration: none;">. Most setups require that the router run udhcpc to acquire DHCP leases for the WAN interface</ins>.</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"><del style="color: red; font-weight: bold; text-decoration: none;">udhcpd, a DHCP server (daemon), is not to be confused with udhcpc, the DHCP client. Most setups require that the router run udhcpc to acquire DHCP leases for the WAN interface.</del></td><td>+</td><td style="background: #cfc; font-size: smaller;">There are two ways to <ins style="color: red; font-weight: bold; text-decoration: none;">enable the </ins>DNSMasq dhcp server.</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">&#160;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">There are two ways to <del style="color: red; font-weight: bold; text-decoration: none;">configure </del>DNSMasq <del style="color: red; font-weight: bold; text-decoration: none;">to become the </del>dhcp server.</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">* Using the Web-Interface (most options are configurable here)</td><td> </td><td style="background: #eee; font-size: smaller;">* Using the Web-Interface (most options are configurable here)</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">* Using DNSMasq parameters (for advanced users who can understand dnsmasq.conf file layout, and know where to find the manual page for it)</td><td> </td><td style="background: #eee; font-size: smaller;">* Using DNSMasq parameters (for advanced users who can understand dnsmasq.conf file layout, and know where to find the manual page for it)</td></tr> <tr><td colspan="2" align="left"><strong>Line 16:</strong></td> <td colspan="2" align="left"><strong>Line 14:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">===Using Web-Admin===</td><td> </td><td style="background: #eee; font-size: smaller;">===Using Web-Admin===</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">This is the easiest way to setup DNSMasq as DHCP Server</td><td> </td><td style="background: #eee; font-size: smaller;">This is the easiest way to setup DNSMasq as DHCP Server</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"></td><td colspan="2">&nbsp;</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">*Go to your Web-Interface and log in</td><td> </td><td style="background: #eee; font-size: smaller;">*Go to your Web-Interface and log in</td></tr> <tr><td colspan="2" align="left"><strong>Line 23:</strong></td> <td colspan="2" align="left"><strong>Line 20:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">***'''DHCP Type''' = DHCP Server</td><td> </td><td style="background: #eee; font-size: smaller;">***'''DHCP Type''' = DHCP Server</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">***'''DHCP Server''' = Enable</td><td> </td><td style="background: #eee; font-size: smaller;">***'''DHCP Server''' = Enable</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">***'''Use DNSMasq for DHCP''' = Checked</td><td>+</td><td style="background: #cfc; font-size: smaller;">***'''Use DNSMasq for DHCP''' = Checked <ins style="color: red; font-weight: bold; text-decoration: none;">(only present if running a build &lt; 39350)</ins></td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">***'''Use DNSMasq for DNS''' = Checked</td><td>+</td><td style="background: #cfc; font-size: smaller;">***'''Use DNSMasq for DNS''' = Checked <ins style="color: red; font-weight: bold; text-decoration: none;">(allows resolving local DHCP client names through DNS, but not strictly required for DHCP only)</ins></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">[[Image:DHCP Using DNSMasq Basic Settings.png]]</td><td> </td><td style="background: #eee; font-size: smaller;">[[Image:DHCP Using DNSMasq Basic Settings.png]]</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> </table> Mon, 04 May 2020 16:25:00 GMT Wrtf http://wiki.dd-wrt.com/wiki/index.php/Talk:DNSMasq_as_DHCP_server Ian5142: Updated as per this thread: https://www.dd-wrt.com/phpBB2/viewtopic.php?t=315126 http://wiki.dd-wrt.com/wiki/index.php?title=DNSMasq_as_DHCP_server&diff=54267&oldid=prev <p>Updated as per this thread: https://www.dd-wrt.com/phpBB2/viewtopic.php?t=315126</p> <table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;"> <tr> <td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td> <td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 14:46, 16 May 2018</td> </tr> <tr><td colspan="2" align="left"><strong>Line 140:</strong></td> <td colspan="2" align="left"><strong>Line 140:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">By default, dd-wrt will hand out via DHCP its own IP as the Gateway. You can specify an alternate one like so:</td><td> </td><td style="background: #eee; font-size: smaller;">By default, dd-wrt will hand out via DHCP its own IP as the Gateway. You can specify an alternate one like so:</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> dhcp-option=<del style="color: red; font-weight: bold; text-decoration: none;">lan</del>,3,w.x.y.z</td><td>+</td><td style="background: #cfc; font-size: smaller;"> dhcp-option=<ins style="color: red; font-weight: bold; text-decoration: none;">br0</ins>,3<ins style="color: red; font-weight: bold; text-decoration: none;">,w.x.y.z </ins></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">&#160;</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;">or </ins></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">&#160;</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;"> dhcp-option=br0,option:router</ins>,w.x.y.z </td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">A related but different solution is to create a DHCP setting that gives a static IP address to a certain MAC, but with a different Gateway address than the rest.</td><td> </td><td style="background: #eee; font-size: smaller;">A related but different solution is to create a DHCP setting that gives a static IP address to a certain MAC, but with a different Gateway address than the rest.</td></tr> </table> Wed, 16 May 2018 14:46:32 GMT Ian5142 http://wiki.dd-wrt.com/wiki/index.php/Talk:DNSMasq_as_DHCP_server