Pool selection based on Giaddr of different subnet

Dario Aguilar daguilar at arnet.net.ar
Fri Mar 13 19:18:10 UTC 2009


Hi there, I´m trying to configure a pool selection based on Giaddr but the
problem is that Relay Agent IP (Giaddr) doesn’t belongs to same subnet as
the client pool so I guess I need to define a class that matches this
criteria (maybe of sure that I difined in a wrong way). This is not working
because it´s saying that network segment is unknown. Here is my dhcpd.conf
and syslog output

 

log-facility local5;

allow booting;

allow bootp;

lease-file-name "/var/db/dhcpd_wimax.leases";

ddns-update-style none;

ignore client-updates;

default-lease-time 43200;

max-lease-time 86400;

authoritative;

log ( info, concat( "circuit-id: ", option agent.circuit-id));

log(debug, concat ("giaddr: ", binary-to-ascii(10,8, ".", packet(24,4)))) ;

option domain-name-servers x.x.x.x;

option subnet-mask 255.255.255.0;

 

class "WAC" {

          match if (binary-to-ascii(10,8, ".", packet(24,4)) =
"192.168.0.1");

}

subnet 172.17.2.0 netmask 255.255.255.0

{

        pool

        {

                allow members of "WAC";

                range 172.17.2.2 172.17.2.100;

                next-server 192.168.11.60;

                filename "/pxelinux.0";

                option routers 172.17.2.254;

                option subnet-mask 255.255.255.0;

                option ntp-servers 192.168.22.240;

        }

}

 

Syslog Message: 

 

dhcpd: DHCPDISCOVER from 00:16:35:3e:0d:e5 via 192.168.0.1: unknown network
segment

 

thanks,

 

Dario Aguilar

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20090313/62ab6e1f/attachment.html>


More information about the dhcp-users mailing list