Glenn.Satchell at uniq.com.au
Fri Jun 22 15:55:04 UTC 2007
>From: Morten Andersen <morten at vianett.no>
>To: "dhcp-users at isc.org" <dhcp-users at isc.org>
>Date: Fri, 22 Jun 2007 17:19:55 +0200
>I am trying to create two address pools with a different gateway. I have found
that client classing is exactly what I need but I can`t figure out what option I
should use as a filter.
>Here are the two example requests:
>dhcpd: DHCPREQUEST for 10.0.51.240 from 00:0b:cd:04:d3:2f (NAT) via 10.0.51.253
>dhcpd: DHCPREQUEST for 10.0.51.240 from 00:0b:cd:04:d3:2f (NAT) via 10.0.51.254
>I want to filter on the relaying address. One gateway for requests via
10.0.51.253 and another for requests via 10.0.51.254. Is this possible?
Failing any specific option you could always extract that piece of
information from the packet directly. The function packet() is
described in the dhcp-options man page.
packet (offset, length)
The packet operator returns the specified portion of the
packet being considered, or null in contexts where no
packet is being considered. Offset and length are
applied to the contents packet as in the substring opera-
More information about the dhcp-users