how to do client seperation using Vendor ID in ISC DHCP??????

Jason Gerfen jason.gerfen at gmail.com
Mon Dec 26 14:52:19 UTC 2011


You will want to define a class matching the vendor id similar to this...

class "Intel"
{
    match if substring (option vendor-class-identifier, 0, 5) = "intel";
}


The in your subnet declarations use the allow deny options like this...

subnet 80.0.0.0 netmask 255.0.0.0 {
 allow Intel;
}

On Mon, Dec 26, 2011 at 7:33 AM, <ameen.shajahan at wipro.com> wrote:

>  Hi all,****
>
> ** **
>
> Let us assume that there would be 2 servers running , so 2 clients
>   should connect to the server.****
>
> I am using ISC dhcp-4.2.3 code.****
>
> ** **
>
> ** **
>
> ** **
>
> ****Linux server --------------->switch                        PC1****
>
> ********
>                             ****
>
> running two process****
>
> ****i:e
> dhcpd
> PC2****
>
> ** **
>
> ** **
>
> PC1 as client 1****
>
> PC2 as client 2****
>
> ** **
>
> ** **
>
> in switch , two ports are used to connect PC1 and PC2****
>
> these two ports I have configured as vlans 1 and 2.  (access port)****
>
> ** **
>
> Vlan 1 for PC1 connection.****
>
> Vlan 2 for PC2 connection****
>
> ** **
>
> ** **
>
> Initially we would have configured in server side about which subnet it
> should listen.****
>
> ** **
>
> For example :****
>
> ** **
>
> Ifconfig etho add 10.1.1.1****
>
> Ifconfig eth1 add 20.1.1.1****
>
> ** **
>
> ** **
>
> But I got one information from dhcp users , there are methods available
> and I mentioned below.****
>
> ** **
>
> *1) Declare host statements for clients required in one subnet, then use
> allow/deny known-hosts to allow them in one and deny them in the other.*
>
> * *
>
> *2) Use classes and subclasses to assign clients in much the same way
> (typically by list of MAC addresses.*
>
> * *
>
> *3) Use classes matches on some arbitrary expression (could be vendor ID
> etc) to separate clients.*
>
> * *
>
> * *
>
> * *
>
> * *
>
> *But I need information about method 3 due to my requirements. How to do
> that type of client separation.  Please let me know.*
>
> ** **
>
> ** **
>
>                 ****
>
> For example in dhcpd.conf contains 10subnets****
>
> ** **
>
>                 #vi dhcpd.conf****
>
> ** **
>
>    subnet 10.0.0.0 netmask 255.0.0.0 {****
>
>      ...****
>
>    }****
>
>    subnet 20.0.0.0 netmask 255.0.0.0 {****
>
>      ...****
>
>    }****
>
> ** **
>
>    subnet 30.0.0.0 netmask 255.0.0.0 {****
>
>      ...****
>
>    }****
>
>    subnet 40.0.0.0 netmask 255.0.0.0 {****
>
>      ...****
>
>    }****
>
>    subnet 50.0.0.0 netmask 255.0.0.0 {****
>
>      ...****
>
>    }****
>
>    subnet 60.0.0.0 netmask 255.0.0.0 {****
>
>      ...****
>
>    } ****
>
>    subnet 70.0.0.0 netmask 255.0.0.0 {****
>
>      ...****
>
>    }****
>
>    subnet 80.0.0.0 netmask 255.0.0.0 {****
>
>      ...****
>
>    }****
>
> ** **
>
> ** **
>
> ** **
>
> Regards,****
>
> Ameen S****
>
> ** **
>
> ** **
>
> ** **
>
> ** **
>
> * Please do not print this email unless it is absolutely necessary. *****
>
> The information contained in this electronic message and any attachments
> to this message are intended for the exclusive use of the addressee(s) and
> may contain proprietary, confidential or privileged information. If you are
> not the intended recipient, you should not disseminate, distribute or copy
> this e-mail. Please notify the sender immediately and destroy all copies of
> this message and any attachments.
>
> WARNING: Computer viruses can be transmitted via email. The recipient
> should check this email and any attachments for the presence of viruses.
> The company accepts no liability for any damage caused by any virus
> transmitted by this email.
>
> www.wipro.com
>
> _______________________________________________
> dhcp-users mailing list
> dhcp-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users
>



-- 
Jas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20111226/997dd885/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image006.png
Type: image/png
Size: 241 bytes
Desc: not available
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20111226/997dd885/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.png
Type: image/png
Size: 271 bytes
Desc: not available
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20111226/997dd885/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image005.png
Type: image/png
Size: 226 bytes
Desc: not available
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20111226/997dd885/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.png
Type: image/png
Size: 229 bytes
Desc: not available
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20111226/997dd885/attachment-0003.png>


More information about the dhcp-users mailing list