Question regarding client classes

Tor Houghton torh+dhcp-users at bogus.net
Tue May 26 07:46:20 UTC 2009


On Mon, May 25, 2009 at 10:36:57AM -0400, Reissom Beshir wrote:
> There was a thread on the subject back in December 2008.
>   https://lists.isc.org/pipermail/dhcp-users/2008-December/subject.html
> 
> Here is an explanation for the problem you described.
> 
> https://lists.isc.org/pipermail/dhcp-users/2008-December/007565.html
> and
> https://lists.isc.org/pipermail/dhcp-users/2008-December/007568.html
> 
> There is an alternative, however it may not work in your case because of shared networks.
> 
>   https://lists.isc.org/pipermail/dhcp-users/2008-December/007574.html
>   https://lists.isc.org/pipermail/dhcp-users/2008-December/007576.html
> 
> 
> Regards,
> Reissom Beshir
> Mitel Networks
> 
> 

Hello,

I received a reply from the Jeffrey Hutzelman on the dhcp-hackers list who
basically told me not to create multiple classes, but instead put the subnet
specific options within the subnet portion of the shared-network statement.

It results in a rather longer configuration file, but it did the trick.

Thanks again,

Tor

For the archives:

class "Phones" {
 match if substring (option vendor-class-identifier, 0, 3) = "SOFT";
}


shared-network "subnet1" {
 subnet 10.0.0.0 netmask 255.255.255.0 {
 option subnet-mask 255.255.255.0;
 option routers 10.0.0.254;
 option soft-option "ip1=10.0.0.1;ip2=10.0.0.2;";
 default-lease-time 28800;
 max-lease-time 86400;
   pool {
      range 10.0.0.64 10.0.0.128;
      allow members of "Phones";
   }
 }
}

shared-network "subnet2" {
 subnet 10.1.0.0 netmask 255.255.255.0 {
 option subnet-mask 255.255.255.0;
 option routers 10.0.0.254;
 option soft-option "ip1=10.1.0.1;ip2=10.1.0.2;";
 default-lease-time 28800;
 max-lease-time 86400;
   pool {
      range 10.1.0.64 10.1.0.128;
      allow members of "Phones";
   }
 }
}

shared-network "subnet3" {
 subnet 10.2.0.0 netmask 255.255.255.0 {
 option subnet-mask 255.255.255.0;
 option routers 10.2.0.254;
 option soft-option "ip1=10.2.0.1;ip2=10.2.0.2;";
 default-lease-time 28800;
 max-lease-time 86400;
   pool {
      range 10.2.0.64 10.2.0.128;
      allow members of "Phones";
   }
 }
}




More information about the dhcp-users mailing list