Eval statement by relay

Blake Hudson blake at ispn.net
Tue May 27 20:59:42 UTC 2008


Can relay agent IP address (giaddr) be used to match against in an 
evaluation statement? I've reviewed man dhcp-eval, but I don't see any 
mention of giaddr, but it seems logical it could be extracted somehow.


I want to log option82 data from one relay (cisco, binary) different 
from another relay (calix, plain text).

Example:

if option dhcp-message-type = 3 and exists agent.circuit-id
{
    if giaddr = x.x.x.x
    {
        log ( ...);
    }
    if giaddr = y.y.y.y
    {
        log(...);
    }
}


--Blake


More information about the dhcp-users mailing list