{"id":7,"date":"2011-03-26T02:15:06","date_gmt":"2011-03-26T01:15:06","guid":{"rendered":"http:\/\/www.dhcp.net\/?page_id=7"},"modified":"2014-08-25T14:32:05","modified_gmt":"2014-08-25T13:32:05","slug":"isc-dhcp-server","status":"publish","type":"page","link":"https:\/\/www.dhcp.net\/?page_id=7","title":{"rendered":"DHCPv4 HOWTO (ISC-DHCP)"},"content":{"rendered":"<p>The <a href=\"http:\/\/www.isc.org\/\">Internet Software Consortium&#8217;s<\/a> <a href=\"http:\/\/www.isc.org\/software\/dhcp\/\">DHCP daemon software<\/a> is perhaps the most well-known implementation available. Free as in beer, it comes standard or can be installed on most Linux distributions.<\/p>\n<p>The <a href=\"http:\/\/www.isc.org\/software\/dhcp\/\">dhclient<\/a> is the client suite of the <a href=\"http:\/\/www.isc.org\/\">Internet Software Consortiums&#8217;s<\/a> <a href=\"http:\/\/www.isc.org\/software\/dhcp\/\">DHCP server<\/a> software. It is normally installed alongside its server counterpart, <a href=\"http:\/\/www.isc.org\/software\/dhcp\/\">dhcpd<\/a>.<\/p>\n<p>Configuration is in readable text:<\/p>\n<p><code># Configuration file for \/sbin\/dhclient, which is included in Debian's<br \/>\n# dhcp3-client package.<br \/>\noption rfc3442-classless-static-routes code 121 = array of unsigned integer 8;<br \/>\nsend host-name \"\";<br \/>\n#send dhcp-client-identifier 1:0:a0:24:ab:fb:9c;<br \/>\n#send dhcp-lease-time 3600;<br \/>\n#supersede domain-name \"fugue.com home.vix.com\";<br \/>\n#prepend domain-name-servers 127.0.0.1;<br \/>\nrequest subnet-mask, broadcast-address, time-offset, routers,<br \/>\ndomain-name, domain-name-servers, domain-search, host-name,<br \/>\nnetbios-name-servers, netbios-scope, interface-mtu,<br \/>\nrfc3442-classless-static-routes, ntp-servers;<br \/>\n#require subnet-mask, domain-name-servers;<br \/>\n#timeout 60;<br \/>\n#retry 60;<br \/>\n#reboot 10;<br \/>\n#select-timeout 5;<br \/>\n#initial-interval 2;<br \/>\n#script \"\/etc\/dhcp3\/dhclient-script\";<br \/>\n#media \"-link0 -link1 -link2\", \"link0 link1\";<br \/>\n#reject 192.33.137.209;<br \/>\n#alias {<br \/>\n# interface \"eth0\";<br \/>\n# fixed-address 192.5.5.213;<br \/>\n# option subnet-mask 255.255.255.255;<br \/>\n#}<\/code><\/p>\n<p>DHCP Server configuration is done in a nested fashion, by declaring subnets, settings and hosts in that subnet, for example:<\/p>\n<p><code>ddns-update-style none; \/\/ Do not update Dynamic DNS entries<br \/>\nauthoritative; \/\/ Declares this DHCP server to be the primary one on this network<br \/>\nping-check true; \/\/ Check if an IP is in use before giving it out<br \/>\nsubnet 192.168.0.0 netmask 255.255.255.0 { \/\/ What subnet are we using?<br \/>\ndeny unknown-clients; \/\/ Do not allow unknown machines on the network<br \/>\nrange 192.168.0.100 192.168.0.150; \/\/ Serve addresses from this range<br \/>\noption domain-name-servers 4.4.4.4, 8.8.8.8; \/\/ The DNS-servers<br \/>\noption ntp-servers time.nasa.gov; \/\/ Specifies the NTP-server in use<br \/>\noption domain-name \"dhcp.net\";<br \/>\noption routers 192.168.0.254;<br \/>\noption broadcast-address 192.168.0.255;<br \/>\nnext-server 192.168.0.200; \/\/ Used for TFTP\/PXE\/netbooting<br \/>\nfilename \"pxelinux.0\"; \/\/ File loaded from the TFTP server<br \/>\ndefault-lease-time 86400; \/\/ By default, give out addresses for 24 hours<br \/>\nmax-lease-time 86400; \/\/ Do not allow clients use addresses for more than 24 hours<br \/>\nhost staticserver { \/\/ Give the machine this hostname<br \/>\nhardware ethernet 00:1f:d3:6e:3a:7c; \/\/ This MAC address...<br \/>\nfixed-address 192.168.0.180; \/\/ ...is offered this IP<br \/>\n}<br \/>\n}<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Internet Software Consortium&#8217;s DHCP daemon software is perhaps the most well-known implementation available. Free as in beer, it comes standard or can be installed on most Linux distributions. The dhclient is the client suite of the Internet Software Consortiums&#8217;s &hellip; <a href=\"https:\/\/www.dhcp.net\/?page_id=7\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":2,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-7","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.dhcp.net\/index.php?rest_route=\/wp\/v2\/pages\/7","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dhcp.net\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.dhcp.net\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.dhcp.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dhcp.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7"}],"version-history":[{"count":6,"href":"https:\/\/www.dhcp.net\/index.php?rest_route=\/wp\/v2\/pages\/7\/revisions"}],"predecessor-version":[{"id":147,"href":"https:\/\/www.dhcp.net\/index.php?rest_route=\/wp\/v2\/pages\/7\/revisions\/147"}],"wp:attachment":[{"href":"https:\/\/www.dhcp.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}