<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div>I'd like to know if I declare the host group outside the subnet it would be the same as declaring them directly inside the subnet block. Isc doesn't complain both ways.<br></div><div><br data-mce-bogus="1"></div><div>If the client configuration would be the same, then what is the best way (best practice) to declare them (inside or outside the subnet) ?<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>I think you have already answered saying host statments are global, but please confirm.<br></div><div><br data-mce-bogus="1"></div><div>Thank you<br data-mce-bogus="1"></div><div><br></div><div data-marker="__SIG_PRE__"><div><div><div><span style="color: #573430; font-family: 'courier new',courier,monaco,monospace,sans-serif;"><span style="font-size: 14px;"><b>JEROME BECOT<br></b></span></span></div><div><span style="color: #573430; font-family: 'courier new',courier,monaco,monospace,sans-serif;"><span style="font-size: 14px;"><span style="font-family: 'courier new',courier,monaco,monospace,sans-serif;"><span style="color: #573430;">Ingénieur Système et Réseau<br></span></span></span></span></div><div><span style="color: #573430; font-family: 'courier new',courier,monaco,monospace,sans-serif;"><span style="font-size: 14px;"><span style="font-family: 'courier new',courier,monaco,monospace,sans-serif;"><span style="color: #573430;">DSIRN<br></span></span></span></span></div><div><span style="color: #573430; font-family: 'courier new',courier,monaco,monospace,sans-serif;"><span style="font-size: 14px;"><span style="font-family: 'courier new',courier,monaco,monospace,sans-serif;"><span style="color: #573430;"><span style="font-size: 10.66px;">Bureau n°4.29</span></span></span></span></span></div><div><span style="color: #573430; font-family: 'courier new',courier,monaco,monospace,sans-serif;"><span style="font-size: 14px;"><span style="font-family: 'courier new',courier,monaco,monospace,sans-serif;"><span style="color: #573430;"><span style="font-size: 10.66px;"> </span></span></span></span></span></div><div><span style="color: #0086e6; font-family: 'courier new',courier,monaco,monospace,sans-serif;"><span style="font-size: 9pt;"><span style="font-family: 'courier new',courier,monaco,monospace,sans-serif;"><span style="font-size: 9pt; white-space: pre;">Institut national des langues</span><span style="font-size: x-small; white-space: pre;"> </span><span style="font-size: 9pt; white-space: pre;">et civilisations orientales</span></span></span></span></div><div><span style="color: #000000; font-family: 'courier new',courier,monaco,monospace,sans-serif;"><span style="font-size: 14px;"><span style="font-family: 'courier new',courier,monaco,monospace,sans-serif;"><span style="font-size: 10.66px;"><span style="font-size: x-small; white-space: pre;"><span style="font-size: x-small;"><span style="font-size: 11px;">65 rue des Grands Moulins</span></span></span></span></span></span></span></div><div><span style="color: #000000; font-family: 'courier new',courier,monaco,monospace,sans-serif;"><span style="font-size: 14px;"><span style="font-family: 'courier new',courier,monaco,monospace,sans-serif;"><span style="font-size: 10.66px;"><span style="font-size: x-small; white-space: pre;"><span style="font-size: x-small;"><span style="font-size: 11px;">Paris 75013, France</span></span></span></span></span></span></span></div><div><span style="color: #573430; font-family: 'courier new',courier,monaco,monospace,sans-serif;"><span style="font-size: 14px;"><span style="font-family: 'courier new',courier,monaco,monospace,sans-serif;"><span style="color: #573430;"><span style="font-size: 10.66px;"><br></span></span></span></span></span></div><div><span style="color: #573430; font-family: 'courier new',courier,monaco,monospace,sans-serif;"><span style="font-size: 14px;"><span style="font-family: 'courier new',courier,monaco,monospace,sans-serif;"><span style="color: #573430;"><span style="font-size: 10.66px;">01 81 70 10 78<br></span></span></span></span></span></div><div><span style="font-family: 'courier new',courier,monaco,monospace,sans-serif;"><span style="font-size: 14px;"><span style="font-size: 10.66px;"><span style="font-size: x-small; white-space: pre;"><span style="font-size: x-small;"><span style="font-size: 11px;"><span style="font-family: 'courier new'; font-size: 8.5pt;"><span class="Object">jerome.becot<span class="Object" id="OBJ_PREFIX_DWT1163_ZmEmailObjectHandler">@inalco.fr</span></span><br><span class="Object"><span class="Object" id="OBJ_PREFIX_DWT1164_com_zimbra_url"><span class="Object" id="OBJ_PREFIX_DWT1383_com_zimbra_url"><a target="_blank" href="http://www.inalco.fr">www.inalco.fr</a></span></span></span></span></span></span></span></span></span></span><br></div></div></div></div><div><br></div><hr id="zwchr" data-marker="__DIVIDER__"><div data-marker="__HEADERS__"><b>De: </b>"Bill Shirley" <bill@c3po.polymerindustries.biz><br><b>À: </b>"Users of ISC DHCP" <dhcp-users@lists.isc.org><br><b>Envoyé: </b>Samedi 23 Septembre 2017 06:39:34<br><b>Objet: </b>Re: Host Declaration<br></div><div><br></div><div data-marker="__QUOTED_TEXT__">host statements are global.<br>
<br>
Example:<br>
<span data-mce-style="color: #993300;" style="color: #993300;" color="#993300"><tt>subnet 10.10.10.0 netmask 255.255.255.0 {</tt><tt><br>
</tt><tt> ddns-updates on;</tt><tt><br>
</tt><tt> default-lease-time 3600; # 1 hour<br>
}</tt><tt><br>
</tt><tt>group "storage" {</tt><tt><br>
</tt><tt> ddns-updates off;</tt><tt><br>
</tt><tt> option log-servers 10.10.10.1;</tt><tt><br>
</tt><tt> host storage-1 { hardware ethernet
ff:ca:ff:26:30:4b; fixed-address 10.10.10.4; }</tt><tt><br>
</tt></span><span data-mce-style="color: #993300;" style="color: #993300;" color="#993300"><tt><span data-mce-style="color: #993300;" style="color: #993300;" color="#993300"><tt>
host storage-2 { hardware ethernet
ff:ca:ff:26:30:4b; fixed-address 10.10.10.5; </tt></span></tt></span><span data-mce-style="color: #993300;" style="color: #993300;" color="#993300"><tt><span data-mce-style="color: #993300;" style="color: #993300;" color="#993300"><tt><span data-mce-style="color: #993300;" style="color: #993300;" color="#993300"><tt>default-lease-time 7200; </tt></span>}</tt><tt><br>
</tt></span>}</tt><tt><br>
</tt></span><br>
In the above example, host storage-1 will have 'ddns-updates off'
and 'option log-servers 10.10.10.1'<br>
and a lease time of 3600 when allocated from the 10.10.10.0 subnet.<br>
<br>
Host storage-2 will have 'ddns-updates off' and 'option log-servers
10.10.10.1' and a lease time of 7200;<br>
<br>
What problem are you trying to solve?<br>
<br>
Bill<br>
<br>
<br>
<div class="moz-cite-prefix">On 9/22/2017 9:16 AM, Jérôme BECOT
wrote:<br>
</div>
<blockquote cite="mid:189078532.2352994.1506086215602.JavaMail.zimbra@inalco.fr">
<div id="zimbraEditorContainer" style="font-family: arial,
helvetica, sans-serif; font-size: 12pt; color: #000000" class="9">
<div>Hello everyone,<br>
</div>
<div><br>
</div>
<div>I'm wondering about the difference between declaring hosts
at the global level and in their respective subnets. It looks
like the same to me but I may miss something about it. They
would inherit the subnet parameters the same way, wouldn't it
?<br>
</div>
<div><br>
</div>
<div>subnet 10.10.10.0/24 {<br>
</div>
<div> option X value;<br>
</div>
<div> host zero { .. }<br>
</div>
<div>}<br>
</div>
<div><br>
</div>
<div>group "site-A hosts" {<br>
</div>
<div> host one { 10.10.10.1; }<br>
</div>
<div>}<br>
</div>
<div><br>
</div>
<div>....<br>
</div>
<div><br>
</div>
<div>Also, what happen if I declare a group of subnets and a
separate group of hosts outside, like :<br>
</div>
<div><br>
</div>
<div>group "site-B subnets" {<br>
</div>
<div> option A value1;<br>
</div>
<div> subnet 10.0.0.0/8{ ... }<br>
</div>
<div> subnet 172.16.0.0./16 { ... }<br>
</div>
<div>}<br>
</div>
<div><br>
</div>
<div>group "site-B hosts" {<br>
</div>
<div> host zero { fixed-address: 10.0.0.1; }<br>
</div>
<div>}<br>
</div>
<div><br>
</div>
<div>Is host 0 receiving the option A value as well ?<br>
</div>
<div><br>
</div>
<div>Thanks<br>
</div>
<div><br>
</div>
<div>
<div>
<div>
<div><span style="color: #573430; font-family: 'courier
new',courier,monaco,monospace,sans-serif;"><span style="font-size: 14px;"><b>JEROME BECOT<br>
</b></span></span></div>
<div><span style="color: #573430; font-family: 'courier
new',courier,monaco,monospace,sans-serif;"><span style="font-size: 14px;"><span style="font-family:
'courier
new',courier,monaco,monospace,sans-serif;"><span style="color: #573430;">Ingénieur Système et
Réseau<br>
</span></span></span></span></div>
<div><span style="color: #573430; font-family: 'courier
new',courier,monaco,monospace,sans-serif;"><span style="font-size: 14px;"><span style="font-family:
'courier
new',courier,monaco,monospace,sans-serif;"><span style="color: #573430;">DSIRN<br>
</span></span></span></span></div>
<div><span style="color: #573430; font-family: 'courier
new',courier,monaco,monospace,sans-serif;"><span style="font-size: 14px;"><span style="font-family:
'courier
new',courier,monaco,monospace,sans-serif;"><span style="color: #573430;"><span style="font-size:
10.66px;">Bureau n°4.29</span></span></span></span></span></div>
<div><span style="color: #573430; font-family: 'courier
new',courier,monaco,monospace,sans-serif;"><span style="font-size: 14px;"><span style="font-family:
'courier
new',courier,monaco,monospace,sans-serif;"><span style="color: #573430;"><span style="font-size:
10.66px;"> </span></span></span></span></span></div>
<div><span style="color: #0086e6; font-family: 'courier
new',courier,monaco,monospace,sans-serif;"><span style="font-size: 9pt;"><span style="font-family:
'courier
new',courier,monaco,monospace,sans-serif;"><span style="font-size: 9pt; white-space: pre;">Institut national des langues</span><span style="font-size: x-small; white-space: pre;"> </span><span style="font-size: 9pt; white-space: pre;">et civilisations orientales</span></span></span></span></div>
<div><span style="color: #000000; font-family: 'courier
new',courier,monaco,monospace,sans-serif;"><span style="font-size: 14px;"><span style="font-family:
'courier
new',courier,monaco,monospace,sans-serif;"><span style="font-size: 10.66px;"><span style="font-size: x-small; white-space: pre;"><span style="font-size: x-small;"><span style="font-size: 11px;">65 rue des Grands Moulins</span></span></span></span></span></span></span></div>
<div><span style="color: #000000; font-family: 'courier
new',courier,monaco,monospace,sans-serif;"><span style="font-size: 14px;"><span style="font-family:
'courier
new',courier,monaco,monospace,sans-serif;"><span style="font-size: 10.66px;"><span style="font-size: x-small; white-space: pre;"><span style="font-size: x-small;"><span style="font-size: 11px;">Paris 75013, France</span></span></span></span></span></span></span></div>
<div><span style="color: #573430; font-family: 'courier
new',courier,monaco,monospace,sans-serif;"><span style="font-size: 14px;"><span style="font-family:
'courier
new',courier,monaco,monospace,sans-serif;"><span style="color: #573430;"><span style="font-size:
10.66px;"><br>
</span></span></span></span></span></div>
<div><span style="color: #573430; font-family: 'courier
new',courier,monaco,monospace,sans-serif;"><span style="font-size: 14px;"><span style="font-family:
'courier
new',courier,monaco,monospace,sans-serif;"><span style="color: #573430;"><span style="font-size:
10.66px;">01 81 70 10 78<br>
</span></span></span></span></span></div>
<div><span style="font-family: 'courier
new',courier,monaco,monospace,sans-serif;"><span style="font-size: 14px;"><span style="font-size:
10.66px;"><span style="font-size: x-small; white-space: pre;"><span style="font-size: x-small;"><span style="font-size: 11px;"><span style="font-family: 'courier new'; font-size: 8.5pt;"><span class="Object">jerome.becot<span class="Object" id="OBJ_PREFIX_DWT1163_ZmEmailObjectHandler">@inalco.fr</span></span>
<span class="Object"><span class="Object" id="OBJ_PREFIX_DWT1164_com_zimbra_url"><span class="Object" id="OBJ_PREFIX_DWT1383_com_zimbra_url"><a target="_blank" href="http://www.inalco.fr">www.inalco.fr</a></span></span></span></span></span></span></span></span></span></span><br>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre>_______________________________________________
dhcp-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:dhcp-users@lists.isc.org" target="_blank">dhcp-users@lists.isc.org</a>
<a class="moz-txt-link-freetext" href="https://lists.isc.org/mailman/listinfo/dhcp-users" target="_blank">https://lists.isc.org/mailman/listinfo/dhcp-users</a><br data-mce-bogus="1"></pre>
</blockquote>
<br>
<br>_______________________________________________<br>dhcp-users mailing list<br>dhcp-users@lists.isc.org<br>https://lists.isc.org/mailman/listinfo/dhcp-users<br></div></div></body></html>