<div class="gmail_quote">
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote"><span style="FONT-FAMILY: courier new,monospace">subnet x.y.10.10 netmask 255.255.255.0 {</span><br style="FONT-FAMILY: courier new,monospace">
<span style="FONT-FAMILY: courier new,monospace">option subnet-mask 255.255.255.0;</span><br style="FONT-FAMILY: courier new,monospace"><span style="FONT-FAMILY: courier new,monospace">option routers x.y.10.1;</span><br style="FONT-FAMILY: courier new,monospace">
<span style="FONT-FAMILY: courier new,monospace">max-lease-time 600;</span><br style="FONT-FAMILY: courier new,monospace"><span style="FONT-FAMILY: courier new,monospace">default-lease-time 600;</span><br style="FONT-FAMILY: courier new,monospace">
<span style="FONT-FAMILY: courier new,monospace">}</span><br style="FONT-FAMILY: courier new,monospace"><span style="FONT-FAMILY: courier new,monospace"></span><br style="FONT-FAMILY: courier new,monospace"><span style="FONT-FAMILY: courier new,monospace">subnet x.y.20.0 netmask 255.255.255.0 {</span><br style="FONT-FAMILY: courier new,monospace">
<span style="FONT-FAMILY: courier new,monospace">option subnet-mask 255.255.255.0;</span><br style="FONT-FAMILY: courier new,monospace"><span style="FONT-FAMILY: courier new,monospace">option routers x.y.20.1;</span><br style="FONT-FAMILY: courier new,monospace">
<span style="FONT-FAMILY: courier new,monospace">max-lease-time 600;</span><br style="FONT-FAMILY: courier new,monospace"><span style="FONT-FAMILY: courier new,monospace">default-lease-time 600;</span><br style="FONT-FAMILY: courier new,monospace">
<span style="FONT-FAMILY: courier new,monospace">}</span><br style="FONT-FAMILY: courier new,monospace"><span style="FONT-FAMILY: courier new,monospace"></span><br style="FONT-FAMILY: courier new,monospace"><span style="FONT-FAMILY: courier new,monospace">host myhost1 { hardware ethernet 00:1C:23:EE:C1:8E; fixed-address x.y.10.10, x.y.20.10;}</span><br>
<br><br>How can I ensure that requests from subnet 10 get the x.y.10.10 address, and requests from subnet 20 get the x.y.20.10 address?<br><br>Thanks<br><font color="#888888"><font color="#888888">Paul</font> </font><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>
<div><br>If you want to assign it a fixed address in each subnet then you need to specify the host within the subnet not outside it. If you don't care what IP address it gets take out the fixed-address and just have </div>
<div> </div>
<div><span style="FONT-FAMILY: courier new,monospace">host myhost1 { hardware ethernet 00:1C:23:EE:C1:8E;}</span></div>
<div><span style="FONT-FAMILY: courier new,monospace"></span> </div>
<div><span style="FONT-FAMILY: courier new,monospace">The server should then assign it an ip address based on which subnet it is in. </span></div>
<div><span style="FONT-FAMILY: courier new,monospace"></span> </div>
<div><span style="FONT-FAMILY: courier new,monospace">It would also help to see the rest of your configuration since I do not see you specifying a range for the ip addresses you want to Lease out or a pool statement.</span></div>