how to config class

Julie Xu xll40 at hotmail.com
Thu Nov 21 06:20:35 UTC 2013


hi



I need most subnets PXE server ip address as 10.1.1.10, and only subnet 10.2.2.0/24 need PXE server address as 10.2.2.10


How can I write the class statement using two classes. I have tried netboot from my laptop on ip 10.2.2.100, but, I still get server-identifier 10.1.1.10. 


could anyone advice what I did wrong?


below is my configure:


class "vlan418RIS" {
    #  This is only for subnet 10.2.2.0/24 subnet 

    # this dhcp server is on different subnet, the address 10.2.2.1 is relay agent - router
    match if ( binary-to-ascii(10,8, ".", packet(24,4)) = "10.2.2.1" and
             substring( option vendor-class-identifier, 0, 9 ) = "PXEClient" );
    option vendor-class-identifier "PXEClient";
    server-identifier 10.2.2.10;
  }


class "MicrosoftRIS" {
    #  This is default, all my subnets using this class, except 10.2.2.0/24  
    match if substring( option vendor-class-identifier, 0, 9 ) = "PXEClient";
    option vendor-class-identifier "PXEClient";
    server-identifier 10.1.1.10;
  }



    subnet 10.2.2.0 netmask 255.255.255.0 {
        option routers 10.2.2.1;
        option broadcast-address 10.2.2.255;
    }



Any comments will be appreciated


Thanks in advance


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


More information about the dhcp-users mailing list