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

Ryan McCain Ryan.McCain at dss.state.la.us
Fri Dec 28 17:30:26 UTC 2007


>>> On Fri, Dec 28, 2007 at 10:32 AM, in message
<B2ED9364017FF54FB9392221F9A49845025DEA35 at nwpsrv08.edj.ad.edwardjones.com>,
"Stulic,Damjan" <damjan.stulic at edwardjones.com> wrote: 
> You could test the validity of your config file with
> /usr/sbin/dhcpd -q -t -cf <config file>
> 
> Damjan Stulic
> IS Security Identity Management
> Edward Jones
> 

That command is very useful.  Although for me I had to omit the -q for it to work.

After trial and error I got the config file to pass using this syntax:

class "DialUp" {
    match if (substring(suffix(dhcp-client-identifier,7),0,5)="Async")
     or
     (substring(suffix(dhcp-client-identifier,6),0,5)="Async") ;
       log (info, " Matched Dialup Rule");
}

-SNIP-

subnet 10.116.6.0 netmask 255.255.255.0 {
     pool {
         allow members of "DialUp";
         range 10.116.6.1 10.116.6.8;
         option routers 10.116.6.1;
         }
}

-SNIP-

#DSS - Cisco VPN
subnet 10.116.6.0 netmask 255.255.255.0 {
  range 10.116.6.9 10.116.6.179 ;
  option routers 10.116.6.254;
}

-SNIP-

......The next test will be to see if it actually works.


Thanks,
Ryan




More information about the dhcp-users mailing list