strange behavior of shared network

Milan Kovac kovac65 at gmail.com
Fri Oct 4 11:04:07 UTC 2019


I think I found the problem.

There can not be defined range in subnet which is for static clients.

I will test it more deeply and will give results.

In any case, thanks a lot for ideas.

Milan

Dňa 2. 10. 2019 o 21:50 Simon Hobson napísal(a):
> Milan Kovac <kovac65 at gmail.com> wrote:
>
>> I have a few routed networks each with 2 subnets ( public and private )
> ...
>
>
>> Here is dhcpd.conf
> ...
>> shared-network 001 {
>> default-lease-time 43200;
>> max-lease-time 43200;
>> # divina-private
>> subnet 10.64.0.0 netmask 255.255.240.0 {
>>          option broadcast-address 10.64.15.255;
>>          option subnet-mask 255.255.240.0;
>>          option routers 10.64.0.1;
>>          range 10.64.0.2 10.64.15.254;
>>          }
>>
>> # divina-public
>> subnet 157.157.56.128 netmask 255.255.255.240 {
>>          option broadcast-address 157.157.56.143;
>>          option subnet-mask 255.255.255.240;
>>          option routers 157.157.56.129;
>>          deny unknown-clients;
>>          range 157.157.56.130 157.157.56.142;
>>      host Divinka-Uhliarik {
>>                          hardware ethernet cc:2d:e0:3f:fa:42;
>>                          fixed-address 157.157.56.130;
>>                          }
>>      host Divinka-Obecny-Urad {
>>                          hardware ethernet 00:4f:74:31:b4:03;
>>                          fixed-address 157.157.56.131;
>>                          }
>>                  }
>> }
> You need to fix this to start with.
> Host statements must always be defined in the global scope - they cannot be defined in a lower scope as you have done here. Wherever you define them, they are always global in scope - but they can inherit options from where there are defined. This is almost certainly not what you want.
>
> So I suggest you fix this first and if the problem persists, then we can try and diagnose it.
>
> _______________________________________________
> dhcp-users mailing list
> dhcp-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users


More information about the dhcp-users mailing list