Send dhcp-users mailing list submissions to
        dhcp-users@lists.isc.org

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.isc.org/mailman/listinfo/dhcp-users
or, via email, send a message with subject or body 'help' to
        dhcp-users-requ...@lists.isc.org

You can reach the person managing the list at
        dhcp-users-ow...@lists.isc.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of dhcp-users digest..."


Today's Topics:

   1. Re: dhcpd.conf logical hierachy (Bob Harold)
   2. Re: dhcpd.conf logical hierachy (Narcis Garcia)
   3. Log host identifier (Narcis Garcia)
   4. Re: Log host identifier (Bill Shirley)
   5. Re: dhcpd.conf logical hierachy (Bill Shirley)


----------------------------------------------------------------------

Message: 1
Date: Wed, 18 Oct 2017 15:33:27 -0400
From: Bob Harold <rharo...@umich.edu>
To: Users of ISC DHCP <dhcp-users@lists.isc.org>
Subject: Re: dhcpd.conf logical hierachy
Message-ID:
        <CA+nkc8DAhC-Ja6LPX-zLPZucLj8=e++vfv1goxsbv1v-fqm...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

On Wed, Oct 18, 2017 at 3:19 PM, Narcis Garcia <informat...@actiu.net>
wrote:

> Any way I define the static pool, error messages occur.
>

Maybe there a confusion in the words "static pool"
"pool" and "range" are used to define dynamic ranges.
"fixed-address" defines a static assignment.


> This is the only configuration I've reached without errors when a known
> host connects, but I might not be defining subnet/interface where static
> cases are attached to:
>
> subnet 172.16.0.0 netmask 255.255.0.0 {
>         option subnet-mask 255.255.0.0;
>         option routers 172.16.20.100;
>         option broadcast-address 172.16.255.255;
>         option domain-name-servers 172.16.21.61;
>         pool {
>                 # IP range to be assigned dynamically
>                 range 172.16.20.150 172.16.20.189;
>                 allow unknown-clients;
>         }
> }
> group MyReservations {
>

These four lines are redundant and should be removed:

>         option subnet-mask 255.255.0.0;
>         option routers 172.16.20.100;
>         option broadcast-address 172.16.255.255;
>         option domain-name-servers 172.16.21.61;
>
Delete the four lines above.


>         host printer_1 {
>                 hardware ethernet 00:11:22:33:44:55;
>                 fixed-address 172.16.20.201;
>         }
> }
>
>
That looks good.  If you need a larger range, just remeber that the dynamic
range and static fixed-addresses should no overlap.  So ranges like:
    range 172.16.20.190 172.16.20.200;
    range 172.16.20.202 172.16.20.255;

As others have said.

-- 
Bob Harold
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<https://lists.isc.org/pipermail/dhcp-users/attachments/20171018/1dfa6322/attachment-0001.html>

------------------------------

Message: 2
Date: Thu, 19 Oct 2017 08:52:46 +0200
From: Narcis Garcia <informat...@actiu.net>
To: dhcp-users@lists.isc.org
Subject: Re: dhcpd.conf logical hierachy
Message-ID: <7fea7558-b6b8-692f-c8eb-66504be52...@actiu.net>
Content-Type: text/plain; charset=utf-8

How do I explicitly link the group MyReservations to that subnet and its
options?
What if some day I want to setup other subnets and other fixed hosts?


El 18/10/17 a les 21:33, Bob Harold ha escrit:
> 
> On Wed, Oct 18, 2017 at 3:19 PM, Narcis Garcia <informat...@actiu.net
> <mailto:informat...@actiu.net>> wrote:
> 
>     Any way I define the static pool, error messages occur.
> 
> 
> Maybe there a confusion in the words "static pool"
> "pool" and "range" are used to define dynamic ranges.
> "fixed-address" defines a static assignment.
> ?
> 
>     This is the only configuration I've reached without errors when a known
>     host connects, but I might not be defining subnet/interface where static
>     cases are attached to:
> 
>     subnet 172.16.0.0 netmask 255.255.0.0 {
>     ? ? ? ? option subnet-mask 255.255.0.0;
>     ? ? ? ? option routers 172.16.20.100;
>     ? ? ? ? option broadcast-address 172.16.255.255;
>     ? ? ? ? option domain-name-servers 172.16.21.61;
>     ? ? ? ? pool {
>     ? ? ? ? ? ? ? ? # IP range to be assigned dynamically
>     ? ? ? ? ? ? ? ? range 172.16.20.150 172.16.20.189;
>     ? ? ? ? ? ? ? ? allow unknown-clients;
>     ? ? ? ? }
>     }
>     group MyReservations {
> 
> 
> These four lines are redundant and should be removed:?
> 
>     ? ? ? ? option subnet-mask 255.255.0.0;
>     ? ? ? ? option routers 172.16.20.100;
>     ? ? ? ? option broadcast-address 172.16.255.255;
>     ? ? ? ? option domain-name-servers 172.16.21.61;
> 
> Delete the four lines above.
> ?
> 
>     ? ? ? ? host printer_1 {
>     ? ? ? ? ? ? ? ? hardware ethernet 00:11:22:33:44:55;
>     ? ? ? ? ? ? ? ? fixed-address 172.16.20.201;
>     ? ? ? ? }
>     }
> 
> 
> That looks good.? If you need a larger range, just remeber that the
> dynamic range and static fixed-addresses should no overlap.? So ranges like:
> ? ? range 172.16.20.190 172.16.20.200;
> ? ? range 172.16.20.202 172.16.20.255;
> 
> As others have said.
> 
> --?
> Bob Harold
> 
> 
> 
> _______________________________________________
> dhcp-users mailing list
> dhcp-users@lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users
> 


------------------------------

Message: 3
Date: Thu, 19 Oct 2017 09:00:39 +0200
From: Narcis Garcia <informat...@actiu.net>
To: dhcp-users@lists.isc.org
Subject: Log host identifier
Message-ID: <46e6c16a-695b-8cb7-ccaf-468a85db5...@actiu.net>
Content-Type: text/plain; charset=utf-8

isc-dhcp-server is currently logging in my system:
DHCPDISCOVER from 11:22:33:44:55:66 via eth0
DHCPOFFER on 172.16.20.201 to 11:22:33:44:55:66 via eth0
DHCPREQUEST for 172.16.20.201 from 11:22:33:44:55:66 via eth0
DHCPACK on 172.16.20.201 to 11:22:33:44:55:66 via eth0

How can I make the service logs some name about that known client? (such
as "printer_1")

Thanks.


------------------------------

Message: 4
Date: Thu, 19 Oct 2017 03:12:15 -0400
From: Bill Shirley <b...@c3po.polymerindustries.biz>
To: dhcp-users@lists.isc.org
Subject: Re: Log host identifier
Message-ID:
        <0764c6be-8eba-5b04-3cf8-7667557d2...@c3po.polymerindustries.biz>
Content-Type: text/plain; charset="utf-8"; Format="flowed"

Add logging to your dhcpd.conf.? Here is what I use:
on commit {
 ??? if static {
 ??? ??? set is-static = " --> STATIC";

 ??? ??? option dhcp-renewal-time??? = encode-int(43200 / 2, 32);??? # 43200 = 
12 hours
 ??? ??? option dhcp-rebinding-time??? = encode-int(43200 * 7 / 8, 32);
 ??? ??? ddns-ttl??? ??? ??? = encode-int((43200 / 2) + 1, 32);
 ??? } else {
 ??? ??? set is-static = "";

 ??? ??? option dhcp-renewal-time??? = encode-int(lease-time / 2, 32);
 ??? ??? option dhcp-rebinding-time??? = encode-int(lease-time * 7 / 8, 32);
 ??? ??? ddns-ttl??? ??? ??? = encode-int((lease-time / 2) + 1, 32);
 ??? }

 ??? log (?? info,
 ??? ??? concat (
 ??? ??? ??? "Host:", pick-first-value(option fqdn.hostname, option host-name, 
"(none)"), "=>", pick-first-value(config-option 
server.ddns-hostname, "(none)")

 ??? ??? ??? ,"? VendorId:", pick-first-value(option vendor-class-identifier, 
"(none)")

 ??? ??? ??? ,"? Lease:", 
pick-first-value(binary-to-ascii(10,32,"",encode-int(lease-time,32)), "(none)")
 ??? ??? ??? ,"? Renewal:", pick-first-value(binary-to-ascii(10, 32, "", 
config-option dhcp-renewal-time), "(none)")
 ??? ??? ??? ,"? Rebind:", pick-first-value(binary-to-ascii(10, 32, "", 
config-option dhcp-rebinding-time), "(none)")

 ??? ??? ??? ,"? TTL:", pick-first-value(binary-to-ascii(10, 32, "", 
config-option server.ddns-ttl), "(none)")

 ??? ??? ??? ,"? GIaddr:", pick-first-value(binary-to-ascii(10, 8, ".", 
packet(24,4)), "(none)")
 ??? ??? ??? , is-static
 ??? ??? )
 ??? );
}

Bill


On 10/19/2017 3:00 AM, Narcis Garcia wrote:
> isc-dhcp-server is currently logging in my system:
> DHCPDISCOVER from 11:22:33:44:55:66 via eth0
> DHCPOFFER on 172.16.20.201 to 11:22:33:44:55:66 via eth0
> DHCPREQUEST for 172.16.20.201 from 11:22:33:44:55:66 via eth0
> DHCPACK on 172.16.20.201 to 11:22:33:44:55:66 via eth0
>
> How can I make the service logs some name about that known client? (such
> as "printer_1")
>
> Thanks.
> _______________________________________________
> dhcp-users mailing list
> dhcp-users@lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<https://lists.isc.org/pipermail/dhcp-users/attachments/20171019/210f4e49/attachment-0001.html>

------------------------------

Message: 5
Date: Thu, 19 Oct 2017 03:19:23 -0400
From: Bill Shirley <b...@c3po.polymerindustries.biz>
To: dhcp-users@lists.isc.org
Subject: Re: dhcpd.conf logical hierachy
Message-ID:
        <af9acb99-6e7c-4d6c-18a6-f4e42b2c4...@c3po.polymerindustries.biz>
Content-Type: text/plain; charset=utf-8; format=flowed

Why do you think you need to link the group to the subnet?? The fixed-address
of printer-1 ties it to the subnet.

For your 2nd question, add the subnets and hosts to dhcpd.conf. What problem
are you thinking about?

Bill

On 10/19/2017 2:52 AM, Narcis Garcia wrote:
> How do I explicitly link the group MyReservations to that subnet and its
> options?
> What if some day I want to setup other subnets and other fixed hosts?
>
>
> El 18/10/17 a les 21:33, Bob Harold ha escrit:
>> On Wed, Oct 18, 2017 at 3:19 PM, Narcis Garcia <informat...@actiu.net
>> <mailto:informat...@actiu.net>> wrote:
>>
>>      Any way I define the static pool, error messages occur.
>>
>>
>> Maybe there a confusion in the words "static pool"
>> "pool" and "range" are used to define dynamic ranges.
>> "fixed-address" defines a static assignment.
>>   
>>
>>      This is the only configuration I've reached without errors when a known
>>      host connects, but I might not be defining subnet/interface where static
>>      cases are attached to:
>>
>>      subnet 172.16.0.0 netmask 255.255.0.0 {
>>      ? ? ? ? option subnet-mask 255.255.0.0;
>>      ? ? ? ? option routers 172.16.20.100;
>>      ? ? ? ? option broadcast-address 172.16.255.255;
>>      ? ? ? ? option domain-name-servers 172.16.21.61;
>>      ? ? ? ? pool {
>>      ? ? ? ? ? ? ? ? # IP range to be assigned dynamically
>>      ? ? ? ? ? ? ? ? range 172.16.20.150 172.16.20.189;
>>      ? ? ? ? ? ? ? ? allow unknown-clients;
>>      ? ? ? ? }
>>      }
>>      group MyReservations {
>>
>>
>> These four lines are redundant and should be removed:
>>
>>      ? ? ? ? option subnet-mask 255.255.0.0;
>>      ? ? ? ? option routers 172.16.20.100;
>>      ? ? ? ? option broadcast-address 172.16.255.255;
>>      ? ? ? ? option domain-name-servers 172.16.21.61;
>>
>> Delete the four lines above.
>>   
>>
>>      ? ? ? ? host printer_1 {
>>      ? ? ? ? ? ? ? ? hardware ethernet 00:11:22:33:44:55;
>>      ? ? ? ? ? ? ? ? fixed-address 172.16.20.201;
>>      ? ? ? ? }
>>      }
>>
>>
>> That looks good.? If you need a larger range, just remeber that the
>> dynamic range and static fixed-addresses should no overlap.? So ranges like:
>>  ? ? range 172.16.20.190 172.16.20.200;
>>  ? ? range 172.16.20.202 172.16.20.255;
>>
>> As others have said.
>>
>> -- 
>> Bob Harold
>>
>>
>>
>> _______________________________________________
>> dhcp-users mailing list
>> dhcp-users@lists.isc.org
>> https://lists.isc.org/mailman/listinfo/dhcp-users
>>
> _______________________________________________
> dhcp-users mailing list
> dhcp-users@lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users



------------------------------

Subject: Digest Footer

_______________________________________________
dhcp-users mailing list
dhcp-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/dhcp-users

------------------------------

End of dhcp-users Digest, Vol 108, Issue 10
*******************************************

Reply via email to