{"id":11,"date":"2014-09-28T14:24:51","date_gmt":"2014-09-28T14:24:51","guid":{"rendered":"http:\/\/marshallpdavis.com\/?page_id=11"},"modified":"2019-09-22T03:10:20","modified_gmt":"2019-09-22T03:10:20","slug":"dhcp-server","status":"publish","type":"page","link":"https:\/\/marshallpdavis.com\/?page_id=11","title":{"rendered":"DHCP Server on raspberry pi"},"content":{"rendered":"<p>Because AT&amp;T devices require specific settings, we have to list everything out for them by MAC address. If you have service already installed, take a few minutes and gather all of the MAC addresses from all of the AT&amp;T devices in your house. Here I have a couple of devices with assigned IP addresses, the AT&amp;T devices, and the rest of the devices on the network will get an IP in the range of 192.168.1.100 to 192.168.1.150. I do have the R-Pi ethernet and wifi listed, as well as the AT&amp;T gateway&#8217;s two MACs (even though it won&#8217;t take it, it still sends a DHCP request), as dhcpd was complaining about it in the logs.<\/p>\n<p><code><br \/>\n\/etc\/dhcp\/dhcpd.conf:<\/code><\/p>\n<p><code>default-lease-time 600;<br \/>\nmax-lease-time 7200;<\/p>\n<p>ddns-update-style none;<\/p>\n<p>authoritative;<\/p>\n<p>subnet 192.168.1.0 netmask 255.255.255.0 {<br \/>\nrange 192.168.1.100 192.168.1.150;<br \/>\noption domain-name \"mpd.local\";<br \/>\noption domain-name-servers 192.168.1.1;<br \/>\noption routers 192.168.1.254;<br \/>\n}<\/p>\n<p>host not-att1-assignedIP {<br \/>\nhardware ethernet 00:00:00:00:00:01;<br \/>\nfixed-address 192.168.1.70;<br \/>\n}<\/p>\n<p>host not-att2-assignedIP {<br \/>\nhardware ethernet 00:00:00:00:00:02;<br \/>\nfixed-address 192.168.1.71;<br \/>\n}<\/p>\n<p>host pihole-eth1 {<br \/>\nhardware ethernet 00:00:00:00:00:03;<br \/>\nfixed-address 192.168.1.1;<br \/>\n}<\/p>\n<p>host pihole-wifi {<br \/>\nhardware ethernet 00:00:00:00:00:04;<br \/>\nfixed-address 192.168.1.2;<br \/>\n}<\/p>\n<p>host att-gw-1 {<br \/>\nhardware ethernet 00:00:00:00:00:05;<br \/>\nfixed-address 192.168.1.200;<br \/>\noption domain-name \"attlocal.net\";<br \/>\noption domain-name-servers 192.168.1.254;<br \/>\noption routers 192.168.1.254;<br \/>\n}<\/p>\n<p>host att-gw-2 {<br \/>\nhardware ethernet 00:00:00:00:00:06;<br \/>\nfixed-address 192.168.1.201;<br \/>\noption domain-name \"attlocal.net\";<br \/>\noption domain-name-servers 192.168.1.254;<br \/>\noption routers 192.168.1.254;<br \/>\n}<\/p>\n<p>host att-tv-dev-1 {<br \/>\nhardware ethernet 00:00:00:00:00:07;<br \/>\nfixed-address 192.168.1.202;<br \/>\noption domain-name \"attlocal.net\";<br \/>\noption domain-name-servers 192.168.1.254;<br \/>\noption routers 192.168.1.254;<br \/>\n}<\/p>\n<p>host att-tv-dev-1-wifi {<br \/>\nhardware ethernet 00:00:00:00:00:08;<br \/>\nfixed-address 192.168.1.203;<br \/>\noption domain-name \"attlocal.net\";<br \/>\noption domain-name-servers 192.168.1.254;<br \/>\noption routers 192.168.1.254;<br \/>\n}<\/p>\n<p><\/code><code>host att-wap {<br \/>\nhardware ethernet 00:00:00:00:00:09;<br \/>\nfixed-address 192.168.1.205;<br \/>\noption domain-name \"attlocal.net\";<br \/>\noption domain-name-servers 192.168.1.254;<br \/>\noption routers 192.168.1.254;<br \/>\n}<br \/>\n<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Because AT&amp;T devices require specific settings, we have to list everything out for them by MAC address. If you have service already installed, take a few minutes and gather all of the MAC addresses from all of the AT&amp;T devices in your house. Here I have a couple of devices with assigned IP addresses, the &hellip; <a href=\"https:\/\/marshallpdavis.com\/?page_id=11\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">DHCP Server on raspberry pi<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":179,"menu_order":0,"comment_status":"open","ping_status":"open","template":"","meta":{"footnotes":""},"class_list":["post-11","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/marshallpdavis.com\/index.php?rest_route=\/wp\/v2\/pages\/11","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/marshallpdavis.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/marshallpdavis.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/marshallpdavis.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/marshallpdavis.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=11"}],"version-history":[{"count":8,"href":"https:\/\/marshallpdavis.com\/index.php?rest_route=\/wp\/v2\/pages\/11\/revisions"}],"predecessor-version":[{"id":182,"href":"https:\/\/marshallpdavis.com\/index.php?rest_route=\/wp\/v2\/pages\/11\/revisions\/182"}],"up":[{"embeddable":true,"href":"https:\/\/marshallpdavis.com\/index.php?rest_route=\/wp\/v2\/pages\/179"}],"wp:attachment":[{"href":"https:\/\/marshallpdavis.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}