Unknown client alerts and clients not getting IP addresses

Simon Hobson dhcp1 at thehobsons.co.uk
Tue Aug 23 14:10:42 UTC 2016


"Fleming, Tony" <t.fleming at tcu.edu> wrote:

> class "Wired" {
>         match hardware;
> }
> class "Wireless" {
>         match hardware;
> }
>  
> shared-network "STUWIRELESS-XXX" {
>         authoritative;
>         subnet 10.31.0.0 netmask 255.255.240.0 {
>                 pool {
>                         allow members of "Wireless";
>                         default-lease-time 3600; #1 hour
>                         max-lease-time 3600;
>                         option ntp-servers X.X.X.X, X.X.X.Y;
>                         option domain-name-servers X.X.X.X, X.X.X.Y;
>                         one-lease-per-client true;
>                         option routers 10.31.0.1;
>                         deny unknown-clients;
>                         range 10.31.0.20 10.31.15.254;
>                 }
>         }
> }
>  
> subclass "Wireless" 44:85:00:2F:81:86;
> host XXXX.STUDENT.XXX.XXX {
> hardware ethernet 44:85:00:2F:81:86;
> }

First, as Niall points out, for your subclass declarations, you need to include the hardware type, so that should be :
subclass "Wireless" 1:44:85:00:2F:81:86;

This is shown in the man page examples for subclass.

Secondly, do you need both the subclass and host declarations ?
I'm not sure whether it includes known|unknown-clients, but general advice is to never mix allow and deny in a pool as the way the mix works isn't intuitive (and I can never remember how it goes !). Certainly, the "allow members of ..." will imply "deny anything not in ..."
If you don't need the host declarations, then it would save a considerable amount of maintenance.



More information about the dhcp-users mailing list