How does DHCPD determine what IP address to assign and...

Glenn Satchell Glenn.Satchell at uniq.com.au
Sat Dec 22 12:52:34 UTC 2007


>Date: Fri, 21 Dec 2007 14:46:51 -0600
>From: "Ryan McCain" <Ryan.McCain at dss.state.la.us>
>To: <dhcp-users at isc.org>
>Subject: Re: How does DHCPD determine what IP address to assign and...
>
> I found a few posts in the archives but am a bit confused.  I don't
> know what the 0 and 9 are for and used the example I found as a
> template.

A couple more man pages to read: dhcp-eval and dhcp-options. The first
one explains how expressions are evaluated, and the different functions
and operators that are available, including substring. 

> class "DialUp" {
>     match if substring(option vendor-class-identifier, 0, 9) = "ASYNC";
>         log (info, " Matched Dialup Rule");
>         range 10.120.5.100 10.120.5.108
> }

In that case the 0 is the starting position and the 9 is the length of
the substring.

regards,
-glenn


More information about the dhcp-users mailing list