Question about logging Option 82

Andre Schubert andre at km3.de
Mon Mar 8 07:19:48 UTC 2010


Hi,

i do it in a similar way. But you may have a problem if the client get a lease from the subnet
10.0.0.0/24 and should then be switch to 192.168.70.16/28.
Another solution could be to patch dhcpd so that either logging statements
gets executed before dhcpd logs DHCPDISCOVER ... no free leases or
that dhcpd logs the needed informations directly within DHCPDISCOVER ... no free leases.

Best Regards,
Andre

On Fri, 5 Mar 2010 21:38:07 +0600
Anton <warm at stack.ru> wrote:

> If so dhcpd should be forced to handle any request just to log useful information. I just tried this example:
> 
> log (<my log definition>)
> 
> shared-network {
> 
>   subnet 192.168.70.16 netmask 255.255.255.240 {
>     <my real subnet definition with all real classes and pools>
>   }
> 
>   subnet 10.0.0.0 netmask 255.255.255.0 {
>     range 10.0.0.1 10.0.0.254;
> #   ^^^^^^^^^^^^^^^^^^^^^^^^^ -- this is "trap" definition for loggin purouse 
> }
> 
> On Fri, 5 Mar 2010 19:03:12 +0600
> Andre Schubert <andre at km3.de> wrote:
> 
> > It seems that the log-statemant is only executed if there are free leases available.
> > If there are no free leases available, then i also only see a DHCPDISCOVER ... no free leases
> > and the log-statement is not executed.
> > 
> > Best Regards,
> > Andre
> 
> 
> -- 
> Anton [WARM-RIPE]
> Stack ltd division head
> tel. 8 (3822) 555-797
> 
> _______________________________________________
> dhcp-users mailing list
> dhcp-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20100308/219e4260/attachment.bin>


More information about the dhcp-users mailing list