{"id":121,"date":"2007-08-31T10:21:42","date_gmt":"2007-08-31T18:21:42","guid":{"rendered":"http:\/\/jim-zimmerman.com\/blog\/?p=121"},"modified":"2011-12-19T08:22:48","modified_gmt":"2011-12-19T15:22:48","slug":"dhcp-version-305-configuration-example","status":"publish","type":"post","link":"https:\/\/jim-zimmerman.com\/?p=121","title":{"rendered":"Dhcp version 3.05 configuration example"},"content":{"rendered":"<p>Here is what I think is a pretty good example of some different things I was able to do with MAC addresses and assignments with a configuration for dhcp version 3.05.  This is the version I tested and implemented this config with:<\/p>\n<p>authoritative;<br \/>\nddns-update-style none;<\/p>\n<p>option domain-name &#8220;domain.name&#8221;;<br \/>\noption domain-name-servers xxx.xxx.xxx.xxx;<br \/>\noption subnet-mask 255.xxx.xxx.xxx;<br \/>\noption routers xxx.xxx.xxx.xxx;<br \/>\noption netbios-name-servers xxx.xxx.xxx.xxx;<br \/>\noption netbios-node-type 8;<br \/>\ndeny bootp;<br \/>\ndefault-lease-time 864000;      # 10 days<br \/>\nserver-name &#8220;dhcp.server.name&#8221;;<\/p>\n<p># To assign a particular range to certain NICs<br \/>\ngroup {<br \/>\n        subnet xxx.xxx.xxx.xxx netmask 255.xxx.xxx.xxx {<br \/>\n                class &#8220;TERMINALS&#8221; {<br \/>\n                        match substring (hardware,1,3);<br \/>\n                }<br \/>\n                subclass &#8220;TERMINALS&#8221; 00:80:64;<br \/>\n                pool {<br \/>\n                        allow members of &#8220;TERMINALS&#8221;;<br \/>\n                        range xxx.xxx.xxx.1 xxx.xxx.xxx.254;<br \/>\n                }<br \/>\n                pool {<br \/>\n                        range xxx.xxx.yyy.1 xxx.xxx.yyy.254;<br \/>\n                }<\/p>\n<p>                # To statically assign the an address to a particular MAC address<br \/>\n                host hostname1 {<br \/>\n                        hardware ethernet XX:XX:XX:XX:XX:XX;<br \/>\n                        fixed-address xxx.xxx.zzz.1;<br \/>\n                }<br \/>\n                host hostname2 {<br \/>\n                #       hardware ethernet YY:YY:YY:YY:YY:YY;<br \/>\n                        fixed-address xxx.xxx.zzz.2;<br \/>\n                }<br \/>\n        }<br \/>\n}<\/p>\n<p># To offer addresses to remote subnets.<br \/>\ngroup {<br \/>\n        # This is a generic example that will provide only one address.<br \/>\n        # The range can be changed to provide more addresses.<br \/>\n        subnet zzz.zzz.zzz.0 netmask 255.xxx.xxx.xxx {<br \/>\n                range zzz.zzz.zzz.200 zzz.zzz.zzz.200;<br \/>\n        }<\/p>\n<p>        # This example will only assign one address to a particular MAC address.<br \/>\n        # This is the only NIC that will get an address.  All others will not be<br \/>\n        # offered an address on this subnet.<br \/>\n        subnet aaa.aaa.aaa.0 netmask 255.xxx.xxx.xxx {<br \/>\n                class &#8220;PC&#8221; {<br \/>\n                        match substring (hardware,1,6);<br \/>\n                }<br \/>\n                subclass &#8220;PC&#8221; ZZ:ZZ:ZZ:ZZ:ZZ:ZZ;<br \/>\n                pool {<br \/>\n                        allow members of &#8220;PC&#8221;;<br \/>\n                        range aaa.aaa.aaa.203 aaa.aaa.aaa.203;<br \/>\n                }<br \/>\n        }<\/p>\n<p>        # This example will open up a range of addresses, and offer the same address<br \/>\n        # each time to the NIC with MAC address described as hostname3<br \/>\n        subnet bbb.bbb.bbb.0 netmask 255.xxx.xxx.xxx {<br \/>\n                range bbb.bbb.bbb.200 bbb.bbb.bbb.210;<br \/>\n                group {<br \/>\n                        host hostname3 {<br \/>\n                        hardware ethernet AA:AA:AA:AA:AA:AA;<br \/>\n                        fixed-address bbb.bbb.bbb.222;<br \/>\n                        }<br \/>\n                }<\/p>\n<p>        }<br \/>\n}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here is what I think is a pretty good example of some different things I was able to do with MAC addresses and assignments with a configuration for dhcp version 3.05. This is the version I tested and implemented this config with: authoritative; ddns-update-style none; option domain-name &#8220;domain.name&#8221;; option domain-name-servers xxx.xxx.xxx.xxx; option subnet-mask 255.xxx.xxx.xxx; option [&#038;hellip<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-121","post","type-post","status-publish","format-standard","hentry","category-documentation"],"share_on_mastodon":{"url":"","error":""},"_links":{"self":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/121","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=121"}],"version-history":[{"count":3,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/121\/revisions"}],"predecessor-version":[{"id":641,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/121\/revisions\/641"}],"wp:attachment":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=121"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=121"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=121"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}