Match based on Ralay Agent IP

Pawel Warowny warp at master.pl
Fri May 7 10:00:59 UTC 2010


Hi

Is there any possibility to match dhcp discover packets based on Relay
Agent IP in dhcpd.conf file?

I need something like this:

class "relayagent-1" {
    match if <some relay agent ip matching> = "10.0.1.1";
}
class "relayagent-2" {
    match if <some relay agent ip matching> = "10.0.2.1";
}

subnet 192.168.100.0 netmask 255.255.255.0 {
    pool {
        range 192.168.100.2 192.168.100.254;
        allow members of "relayagent-1";
    }
}

subnet 192.168.200.0 netmask 255.255.255.0 {
    pool {
        range 192.168.200.2 192.168.200.254;
        allow members of "relayagent-2";
    }
}

I can't figure it out from dhcp-eval man page.

Thanks in advance.

Pawel



More information about the dhcp-users mailing list