<div dir="ltr">Hi,<div><br></div><div>My dhcod.conf file :</div><div><br></div><div><div><i><b><br></b></i></div><div><i><b># DHCP Server Configuration file.</b></i></div><div><i><b>#   see /usr/share/doc/dhcp*/dhcpd.conf.sample  </b></i></div><div><i><b>#</b></i></div><div><i><b>ddns-update-style interim;</b></i></div><div><i><b>ignore client-updates;</b></i></div><div><i><b>subnet X.X.X.0 netmask 255.255.255.0 {</b></i></div><div><i><b><span class="" style="white-space:pre"> </span>option routers                  X.X.X.1;</b></i></div><div><i><b><span class="" style="white-space:pre">    </span>option subnet-mask              255.255.255.0;</b></i></div><div><i><b><span class="" style="white-space:pre">        </span>option nis-domain               "jcd.priv";</b></i></div><div><i><b><span class="" style="white-space:pre"> </span>option domain-name              "<a href="http://fr.jcdecaux.org">fr.jcdecaux.org</a>";</b></i></div><div><i><b><span class="" style="white-space:pre">       </span>option domain-name-servers      X.X.X.11, X.X.X.10, 10.231.2.3, 10.232.2.3;</b></i></div><div><i><b><span class="" style="white-space:pre">       </span>range <span class="" style="white-space:pre">                            </span>X.X.X.100 X.X.X.200;</b></i></div><div><span class="" style="white-space:pre"><i><b> </b></i></span></div><div><i><b><span class="" style="white-space:pre">     </span>default-lease-time 21600;</b></i></div><div><i><b><span class="" style="white-space:pre">    </span>max-lease-time 43200;</b></i></div><div><i><b>}<span class="" style="white-space:pre">       </span></b></i></div><div><i><b><br></b></i></div><div><i><b># create as hosts as players</b></i></div><div><i><b><br></b></i></div><div><i><b>host CN-SHT-LX001 { hardware ethernet 00:01:80:81:d2:e1;                fixed-address X.X.X.15; }</b></i></div><div><i><b>host CN-SHT-LX002 { hardware ethernet 00:01:80:81:d2:ad;                fixed-address X.X.X.16; }</b></i></div><div><i><b>host CN-SHT-LX003 { hardware ethernet 00:01:80:81:d2:da;                fixed-address X.X.X.17; }</b></i></div><div><i><b>host CN-SHT-LX004 { hardware ethernet 00:01:80:81:d2:36;                fixed-address X.X.X.18; }</b></i></div><div><i><b>host CN-SHT-LX005 { hardware ethernet 00:01:80:81:d2:de;                fixed-address X.X.X.19; }</b></i></div><div><i><b>host CN-SHT-LX006 { hardware ethernet 00:01:80:81:d2:d5;                fixed-address X.X.X.20; }</b></i></div><div><i><b>host CN-SHT-LX007 { hardware ethernet 00:01:80:81:d2:d0;                fixed-address X.X.X.21; }</b></i></div><div><i><b>host CN-SHT-LX008 { hardware ethernet 00:01:80:81:d2:5b;                fixed-address X.X.X.22; }</b></i></div><div><i><b>host CN-SHT-LX009 { hardware ethernet 00:01:80:81:d2:00;                fixed-address X.X.X.23; }</b></i></div><div><i><b>host CN-SHT-LX010 { hardware ethernet 00:01:80:81:d2:cc;                fixed-address X.X.X.24; }</b></i></div><div><i><b>host CN-SHT-LX011 { hardware ethernet 00:01:80:82:4d:66;                fixed-address X.X.X.25; }</b></i></div><div><i><b>host CN-SHT-LX012 { hardware ethernet 00:01:80:81:89:05;                fixed-address X.X.X.26; }</b></i></div><div><i><b>host CN-SHT-LX013 { hardware ethernet 00:01:80:81:d2:57;                fixed-address X.X.X.27; }</b></i></div><div><i><b>host CN-SHT-LX014 { hardware ethernet 00:01:80:81:d2:bc;                fixed-address X.X.X.28; }</b></i></div><div><i><b>host CN-SHT-LX015 { hardware ethernet 00:01:80:81:d2:a6;                fixed-address X.X.X.29; }</b></i></div><div><i><b>host CN-SHT-LX016 { hardware ethernet 00:01:80:81:d2:2e;                fixed-address X.X.X.30; }</b></i></div><div><i><b>host CN-SHT-LX017 { hardware ethernet 00:01:80:81:d2:ac;                fixed-address X.X.X.31; }</b></i></div><div><i><b>host CN-SHT-LX018 { hardware ethernet 00:01:80:81:d2:5e;                fixed-address X.X.X.32; }</b></i></div><div><i><b>host CN-SHT-LX019 { hardware ethernet 00:01:80:81:d1:fb;                fixed-address X.X.X.33; }</b></i></div><div><i><b>host CN-SHT-LX020 { hardware ethernet 00:01:80:81:d2:e2;                fixed-address X.X.X.34; }</b></i></div><div><i><b>host CN-SHT-LX021 { hardware ethernet 00:01:80:81:d2:d9;                fixed-address X.X.X.35; }</b></i></div><div><i><b>host CN-SHT-LX022 { hardware ethernet 00:01:80:81:4c:de;                fixed-address X.X.X.36; }</b></i></div><div><i><b>host CN-SHT-LX023 { hardware ethernet 00:01:80:81:d2:d4;                fixed-address X.X.X.37; }</b></i></div><div><i><b>host CN-SHT-LX024 { hardware ethernet 00:01:80:81:d2:52;                fixed-address X.X.X.38; }</b></i></div><div><i><b>host CN-SHT-LX025 { hardware ethernet 00:01:80:81:d2:b7;                fixed-address X.X.X.39; }</b></i></div><div><i><b>host CN-SHT-LX026 { hardware ethernet 00:01:80:81:d2:a7;                fixed-address X.X.X.40; }</b></i></div><div><i><b>host CN-SHT-LX027 { hardware ethernet 00:01:80:81:ac:47;                fixed-address X.X.X.41; }</b></i></div><div><i><b>host CN-SHT-LX028 { hardware ethernet 00:01:80:81:d2:58;                fixed-address X.X.X.42; }</b></i></div><div><i><b>host CN-SHT-LX029 { hardware ethernet 00:01:80:81:d2:53;                fixed-address X.X.X.43; }</b></i></div><div><i><b>host CN-SHA-LX030 { hardware ethernet 00:01:80:81:d2:ba;                fixed-address X.X.X.44; }</b></i></div><div><i><b>host CN-SHA-LX031 { hardware ethernet 00:01:80:81:d2:5a;                fixed-address X.X.X.45; }</b></i></div><div><i><b>host CN-SHA-LX032 { hardware ethernet 00:01:80:81:d2:35;                fixed-address X.X.X.46; }</b></i></div><div><i><b>host CN-SHA-LX033 { hardware ethernet 00:01:80:81:d2:db;                fixed-address X.X.X.47; }</b></i></div><div><i><b>host CN-SHA-LX034 { hardware ethernet 00:01:80:81:d2:87;                fixed-address X.X.X.48; }</b></i></div><div><i><b>host CN-SHA-LX035 { hardware ethernet 00:01:80:81:d2:0b;                fixed-address X.X.X.49; }</b></i></div><div><i><b>host CN-SHA-LX036 { hardware ethernet 00:01:80:81:d2:77;                fixed-address X.X.X.50; }</b></i></div><div><i><b>host CN-SHA-LX037 { hardware ethernet 00:01:80:81:d2:03;                fixed-address X.X.X.51; }</b></i></div><div><i><b>host CN-SHA-LX038 { hardware ethernet 00:01:80:82:4d:13;                fixed-address X.X.X.52; }</b></i></div><div><i><b>host CN-SHA-LX039 { hardware ethernet 00:01:80:82:4d:17;                fixed-address X.X.X.53; }</b></i></div><div><i><b>host CN-SHA-LX040 { hardware ethernet 00:01:80:82:4d:76;                fixed-address X.X.X.54; }</b></i></div><div><i><b>host CN-SHA-LX041 { hardware ethernet 00:01:80:82:4d:50;                fixed-address X.X.X.55; }</b></i></div><div><i><b>host CN-SHA-LX042 { hardware ethernet 00:01:80:82:4d:65;                fixed-address X.X.X.56; }</b></i></div><div><i><b>host CN-SHA-LX043 { hardware ethernet 00:01:80:82:4d:a8;                fixed-address X.X.X.57; }</b></i></div></div><div><br></div><div><br></div><div>Thanks.</div><div><br></div><div>Regards,</div><div>Eugène NG</div></div><div class="gmail_extra"><br><div class="gmail_quote">2014-09-23 11:34 GMT+02:00 Sten Carlsen <span dir="ltr"><<a href="mailto:stenc@s-carlsen.dk" target="_blank">stenc@s-carlsen.dk</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have this setup working, I only have to restart the server to get it<br>
to use the new configuration, I have never had any of those problems you<br>
describe.<br>
<br>
I agree it must be a configuration mistake.<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
On 23/09/14 10:13, Niall O'Reilly wrote:<br>
> At Tue, 23 Sep 2014 09:25:04 +0200,<br>
> Eugène Ngontang wrote:<br>
>><br>
>> In fact in my dhcp server configuration I have a dynamic range and<br>
>> fixed addresses.<br>
>><br>
>> When I add a new fixed host with MAC address and the associates IP<br>
>> address, and start the client, it picks an ip address from the dynamic<br>
>> range instead of the ip address I have fixed.<br>
>><br>
>> To fixe that, I have to comment the dynamic range in the server<br>
>> configuration file, suppress the lease file in the client side and<br>
>> restart dhclient or reboot the client.<br>
>><br>
>> Why it works like this? I thought the static leases wins dynamics one.<br>
>><br>
>> How to avoid my news clients picking addresses from the dynamic range<br>
>> addresses?<br>
><br>
>   This is most likely due to a configuration error.<br>
><br>
>   If you post your dhcpd.conf file, I or someone else on the list<br>
>   may be able to find what's wrong and explain.<br>
><br>
>   Best regards,<br>
>   Niall O'Reilly<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>
><br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
Best regards<br>
<br>
Sten Carlsen<br>
<br>
No improvements come from shouting:<br>
<br>
       "MALE BOVINE MANURE!!!"<br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<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>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><font color="#3366ff"><a href="mailto:ngonta_e@epitech.net" target="_blank">ngonta_e@epitech.net</a></font><div><font color="#3366ff"><a href="mailto:sympavali@gmail.com" target="_blank">sympavali@gmail.com</a></font></div><div>------------------------------------------------------------</div><div><i><b>Aux hommes il faut un chef, et au</b></i><i><b> chef il faut des hommes!<br>L'habit ne fait pas le moine, mais lorsqu'on te voit on te juge!<br></b></i></div>
</div>