<div>Andy.. I believe that is because you haven't told it what range to use for addresses as you have the pool section commented out where the range is being specified. </div>
<div> </div>
<div>
<div>You need to specify your range of IP's. In the case you had a different range for each Subnet you would configure as below, I believe. </div></div>
<div> </div>
<div>subnet 172.16.0.0 netmask 255.255.0.0 {<br> option routers 172.16.1.14;<br> option subnet-mask 255.255.0.0;<br> option domain-name-servers 192.168.31.1;</div>
<div> <strong><em>range 172.16.1.60 172.16.1.150;<br><br></em></strong># pool {<br># range 172.16.1.60 172.16.1.150;<br># }<br> default-lease-time 21600;<br>
max-lease-time 43200;<br> }<br> subnet 192.168.32.0 netmask 255.255.255.0 {<br> option routers 192.168.32.2;<br> option subnet-mask 255.255.255.0;</div>
<div> <em> <strong>range 192.168.32.X 192.168.32.X;</strong><br></em> }<br><br><br><br></div>
<div class="gmail_quote">On Wed, Aug 27, 2014 at 1:51 PM, Andy Howell <span dir="ltr"><<a href="mailto:andy@gamubaru.com" target="_blank">andy@gamubaru.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">I'm trying to set a static ip. I have a config:<br><br>dns-update-style interim;<br>ignore client-updates;<br>
option domain-name-servers 192.168.31.1;<br>authoritative;<br><br>host myhost {<br> hardware ethernet 00:08:89:f4:35:80;<br> fixed-address 172.168.1.60;<br>}<br><br>shared-network GBNet {<br><br> subnet 172.16.0.0 netmask 255.255.0.0 {<br>
option routers 172.16.1.14;<br> option subnet-mask 255.255.0.0;<br> option domain-name-servers 192.168.31.1;<br># pool {<br># range 172.16.1.60 172.16.1.150;<br>
# }<br> default-lease-time 21600;<br> max-lease-time 43200;<br> }<br> subnet 192.168.32.0 netmask 255.255.255.0 {<br> option routers 192.168.32.2;<br>
option subnet-mask 255.255.255.0;<br> }<br>}<br><br>In the log I see:<br><br>DHCPDISCOVER from 00:08:89:f4:35:80 via eth1: network GBNet: no free leases<br><br>If I uncomment the pool setting for the 172.16.0.0 net, then it assigns a dynamic address.<br>
<br>To make sure I got the MAC address, I cut and pasted it from the log. No luck.<br><br>I'm running: dhcp-3.0.5-33.el5_9 on a CentOS 5 box.<br><br>Any ideas?<br><br><br>Thanks,<br><br> Andy<br>_______________________________________________<br>
dhcp-users mailing list<br><a href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a><br><a href="https://lists.isc.org/mailman/listinfo/dhcp-users" target="_blank">https://lists.isc.org/mailman/listinfo/dhcp-users</a><br>
</blockquote></div><br>