logging relay agent IP address

Luka dhcp at ml.evriala.net
Wed Oct 6 14:04:59 UTC 2010


On Wed, 2010-10-06 at 09:34 -0400, Adam Moffett wrote:
> > 
> > To this I want to also add the IP address of the relay agent we got
> > the initial request from.  I would want something similar to an
> > "option agent.relay-ip".  Is there any such thing?  Is there any
> > other way to log that? 

You can log relay IP with packet:

binary-to-ascii(10,8,".",packet(24,4))

will log IP relay (but only on DHCPDISCOVER).
You can read more about packet in dhcp-eval(5).




More information about the dhcp-users mailing list