Class / Subclass Assignment for known / unknown hosts

Sten Carlsen stenc at s-carlsen.dk
Sun Feb 10 20:11:44 UTC 2013


On 10/02/13 20:49, Daniel Hoffmann wrote:
> Greetings,
>
> I have several subnets and multiple gateways relaying dhcp request.
> I'ld like to assign dynamic leases, depending they are member of a
> class or not. If Not, devices shall get an offer from a private subnet.
> But I do not know how to seperate known from unknown hosts in a class
> declartion.
>
> class "giaddr_1_known" { match if
> (binary-to-ascii(10,8,".",packet(24,4)) = "<giaadr_1>") }
>
> subclass "giaddr_1_known" 1:aa:bb.cc:dd:ee:ff;
>
>
> ## unknown hosts from giaddr_1 should get leases from here
> subnet x.x.x.0 netmask 255.255.255.0 {
>     pool {
>         range 1.1.1.2 1.1.1.254;
>         allow members of "giaddr_1_unknown";
>     }
> }
>
What if you deny all classes so only the unknown(=not member of any
class) may get an address from there? That of course requires that all
known hosts are a member of some class.
>
> ## hosts with subclass declaration should get leases from here
> subnet yyy.0 netmask 255.255.255.0 {
>     pool {
>         range 194.20.12.2 194.20.12.254;
>         allow members of "giaddr_1_known;
>     }
> }
>
> Perhaps one of you could help me.
>
> Best regards,
> Daniel
>
>
> _______________________________________________
> dhcp-users mailing list
> dhcp-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users

-- 
Best regards

Sten Carlsen

No improvements come from shouting:
       "MALE BOVINE MANURE!!!"

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20130210/f0e3bf53/attachment.html>


More information about the dhcp-users mailing list