I've added two new fields into radippool table that i am using for DHCP dynamic pools.

  `gateway` varchar(15) NOT NULL DEFAULT '',
  `netmask` varchar(15) NOT NULL DEFAULT '',

in ippool-dhcp.conf i've added new fields:

allocate-find = "SELECT framedipaddress,gateway,netmask FROM ${ippool_table} ....

I am not able to figure out how to address new fields inside policy.conf. Is it even possible?

I need to have two new fields, currently i have:

update reply {
    DHCP-Your-IP-Address = "%{reply:Framed-IP-Address}"
}

I am trying to get two new fields:

DHCP-Subnet-Mask
DHCP-Gateway-IP-Address

I can use perl module to add those two fields but that means that i need two more database queries.
Any other way?


-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to