{"id":532,"date":"2011-10-20T03:15:07","date_gmt":"2011-10-20T03:15:07","guid":{"rendered":"http:\/\/poojanwagh.opalstacked.com\/techblog\/?p=532"},"modified":"2011-10-20T03:15:07","modified_gmt":"2011-10-20T03:15:07","slug":"dhcp-trouble-in-dd-wrt-due-to-broken-dnsmasq","status":"publish","type":"post","link":"https:\/\/tech.poojanblog.com\/blog\/unix-linux\/dhcp-trouble-in-dd-wrt-due-to-broken-dnsmasq\/","title":{"rendered":"DHCP trouble in DD-WRT due to broken dnsmasq"},"content":{"rendered":"<p>I&#8217;ve been debugging why my printer won&#8217;t receive an IP from my dd-wrt router. (This is a beta version of Buffalo&#8217;s branded dd-wrt firmware: DD-WRT v24SP2-EU-US (05\/25\/11) std &#8211; build 17135.) I actually &#8220;upgraded&#8221; to the beta version while debugging this problem. Originally, I had the release version of Buffalo&#8217;s DD-WRT.<\/p>\n<p>Anyway, to summarize, it seems like using dnsmasq as the DHCP server breaks things. When I set it back, all my clients get DHCP licenses. I learned this the hard way. First, my printer wasn&#8217;t getting an IP. So, I finally gave it a static IP. Then, an Android phone wasn&#8217;t getting an IP. At that point, I started dhcpdump and started snooping. Basically, it&#8217;d get an &#8220;address not available&#8221; error. I finally traced it down to the setting for dnsmasq on the dd-wrt page. Once I chose the regualar DHCP server (udhcpd) rather than dnsmasq, everything worked well:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/poojanwagh.opalstacked.com\/techblog\/wp-content\/uploads\/2011\/10\/dd-wrt-dnsmasq-as-DHCP-turned-off.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-533\" src=\"https:\/\/i0.wp.com\/poojanwagh.opalstacked.com\/techblog\/wp-content\/uploads\/2011\/10\/dd-wrt-dnsmasq-as-DHCP-turned-off-276x300.png?resize=276%2C300\" alt=\"Turn off &quot;Use dnsmasq as DHCP&quot;\" width=\"276\" height=\"300\" srcset=\"https:\/\/i0.wp.com\/tech.poojanblog.com\/blog\/wp-content\/uploads\/2011\/10\/dd-wrt-dnsmasq-as-DHCP-turned-off.png?resize=276%2C300&amp;ssl=1 276w, https:\/\/i0.wp.com\/tech.poojanblog.com\/blog\/wp-content\/uploads\/2011\/10\/dd-wrt-dnsmasq-as-DHCP-turned-off.png?w=585&amp;ssl=1 585w\" sizes=\"auto, (max-width: 276px) 100vw, 276px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<div class='wp_likes' id='wp_likes_post-532'><a class='like' href=\"javascript:wp_likes.like(532);\" title='' ><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/tech.poojanblog.com\/blog\/wp-content\/plugins\/wp-likes\/images\/like.png\" alt='' border='0'\/><\/a><span class='text'>Be the first to like.<\/span><\/p>\n<div class='like' ><a href=\"javascript:wp_likes.like(532);\">Like<\/a><\/div>\n<div class='unlike' ><a href=\"javascript:wp_likes.unlike(532);\">Unlike<\/a><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve been debugging why my printer won&#8217;t receive an IP from my dd-wrt router. (This is a beta version of Buffalo&#8217;s branded dd-wrt firmware: DD-WRT v24SP2-EU-US (05\/25\/11) std &#8211; build 17135.) I actually &#8220;upgraded&#8221; to the beta version while debugging this problem. Originally, I had the release version of Buffalo&#8217;s DD-WRT. Anyway, to summarize, it [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[10],"tags":[139,158,157,159],"class_list":["post-532","post","type-post","status-publish","format-standard","hentry","category-unix-linux","tag-dd-wrt","tag-dhcp","tag-dnsmasq","tag-ip"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/posts\/532","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/comments?post=532"}],"version-history":[{"count":2,"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/posts\/532\/revisions"}],"predecessor-version":[{"id":535,"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/posts\/532\/revisions\/535"}],"wp:attachment":[{"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/media?parent=532"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/categories?post=532"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/tags?post=532"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}