Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.firewall > #107

Re: dhcp addresses from pool only to specific devices

From Leonardo Boselli <leo@dicea.unifi.it>
Newsgroups linux.debian.maint.firewall
Subject Re: dhcp addresses from pool only to specific devices
Date 2021-03-19 14:30 +0100
Message-ID <BUnmp-2S7-1@gated-at.bofh.it> (permalink)
References <BUaSe-3uI-3@gated-at.bofh.it> <BUnmq-2S7-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


It was more or less my idea, but was not sure about the syntax but in 
documentatin was not completely clear 
and also, how much can be the list long ?
(Yes, I have the mac addresses in a database)
thank you for the clarification.

On Fri, 19 Mar 2021, Dan Ritter wrote:
> If you want special treatment for some clients, you need to be
> able to identify them. Either they can all supply a parameter in
> their DHCP request -- if you control their configuration, this
> is reasonable -- or you need to maintain a list of MAC
> addresses.
>
> //  Here is the list of MAC addresses, assigning a class:
>
> subclass "allocation-class-1" 1:8:0:2b:4c:39:ad;
> subclass "allocation-class-1" 1:8:0:2b:a9:cc:e3;
> subclass "allocation-class-1" 1:0:0:c4:aa:29:44;
> ...
> ...
> ...
> subclass "allocation-class-1" 1:0:0:c2:aa:23:4a;
>
> // and here is how they are treated differently:
>
> subnet 10.0.0.0 netmask 255.255.255.0 {
>  pool {
>    allow members of "allocation-class-1";
>    deny unknown-clients;
>    range 10.0.0.11 10.0.0.50;
>  }
>  pool {
>    allow unknown-clients;
>    range 10.0.0.51 10.0.0.100;
>  }
>
> }
>
> Or they can go to different subnets instead of pools of
> the same one.
>
> I recommend putting the class definitions  in one or more
> include files, with comments about human-identifiable info.
> If you have a database system that tracks things like this,
> it's a good idea to have it produce these include files
> for you every hour or day or whatever matches your needs.
>
> -dsr-
>

--
Leonardo Boselli
Università di Firenze
tel:+39 0552758808  +39 3488605348

Back to linux.debian.maint.firewall | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

dhcp addresses from pool only to specific devices Leonardo Boselli <leo@dicea.unifi.it> - 2021-03-19 01:10 +0100
  Re: dhcp addresses from pool only to specific devices Leonardo Boselli <leo@dicea.unifi.it> - 2021-03-19 14:30 +0100
    Re: dhcp addresses from pool only to specific devices Dan Ritter <dsr@randomstring.org> - 2021-03-19 15:30 +0100
  Re: dhcp addresses from pool only to specific devices Dan Ritter <dsr@randomstring.org> - 2021-03-19 14:40 +0100

csiph-web