<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body>
<p><br>
</p>
<div class="moz-cite-prefix">On 07-04-2020 11.51, nono monbou wrote:<br>
</div>
<blockquote type="cite"
cite="mid:PR3P194MB095486BAE914DF9E59533260AAC30@PR3P194MB0954.EURP194.PROD.OUTLOOK.COM">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
<div style="font-family: Calibri, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);">
Hello</div>
<div style="font-family: Calibri, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);">
I have a problem on pxe boot on one of my vlan.</div>
<div style="font-family: Calibri, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);">
Dhcp offers the wrong netmask and the wrong router ip.</div>
<div style="font-family: Calibri, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);">
Dhcp offer the netmask and the router ip of the first
declarated subnet in the dhcpd.conf.</div>
<div style="font-family: Calibri, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);">
I join my dhcpd.conf</div>
<div style="font-family: Calibri, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);">
For example <br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);">
A machine of the vlan 10 (subnet 149.55.10.0/24) obtain
148.55.10.180 ip address but 255.255.248 netmask and
149.55.7.254 router ip.</div>
</blockquote>
<p>Host statement are ALWAYS global BUT take some of their
parameters from the place where they are declared.</p>
<p><br>
</p>
<p>It looks like the host you refer to here is one of the following:</p>
<p>admin01<br>
admin02<br>
admin05<br>
d001m01<br>
d279m01<br>
d270m01<br>
d279m02<br>
e003m01<br>
e003m02<br>
</p>
<p>since these are declared in "subnet 149.55.0.0 netmask
255.255.248.0" and this is the only place where the router is
mentioned.</p>
<p><br>
</p>
<p>Your class definitions are seemingly identical for each subnet? I
believe this is a big mistake, AFAIK class statements are global
in nature, so they may pick up the router from any of the places
they are declared.</p>
<p><br>
</p>
<p>Proposal:</p>
<p>Collect all host statements in one place outside the scope of all
subnets. E.g. at the end of the file.</p>
<p>Collect the class statements in the same way, as hosts. Then look
for another way to set the differentiating details in each pool.<br>
</p>
<blockquote type="cite"
cite="mid:PR3P194MB095486BAE914DF9E59533260AAC30@PR3P194MB0954.EURP194.PROD.OUTLOOK.COM">
<div style="font-family: Calibri, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);">
Could you help me ?<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
dhcp-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a>
<a class="moz-txt-link-freetext" href="https://lists.isc.org/mailman/listinfo/dhcp-users">https://lists.isc.org/mailman/listinfo/dhcp-users</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
Best regards
Sten Carlsen
No improvements come from shouting:
"MALE BOVINE MANURE!!!" </pre>
</body>
</html>