dhcp configuration for MAC address

hi

I need a dhcp congfigured to give some of my clients IP regarding their MAC addresses and rest should get any IP from same pool. I am not sure what to add dhcpd.conf to provide such a pool or group or class. I tried with this but seems not good enough.

<<<<dhcpd.conf>>>>

ddns-update-style none;
ignore client-updates;

subnet 0.0.0.0 netmask 0.0.0.0 {

        option routers                  10.0.1.254;
        option subnet-mask              255.255.255.0;

        option mobile-ip-home-agent 10.0.3.254;
        
        option domain-name              "abc.net.tr";
        option domain-name-servers      195.175.39.39;
        
        
       class "aaaa" {
        match option dhcp-client-identifier;
        lease limit 2;
       }
       subclass "aaaa" 1:00:12:cf:89:61:76; # Dell wireless
       subclass "aaaa" 1:00:19:cb:73:e0:06; # Dell wireless


       subnet 10.0.1.0 netmask 255.255.255.0 {
        option subnet-mask 255.255.255.0;
        option broadcast-address 10.0.1.255;
        option routers 10.0.1.254;
        
        pool {
                allow members of "aaaa";
                range 10.0.1.10 10.0.1.20;
        }
        pool {
               
                option domain-name-servers      195.175.39.39;
                range 10.0.1.21 10.0.1.100;
                allow unknown-clients;
        }


        range dynamic-bootp 10.0.1.10 10.0.1.100;
        default-lease-time 21600;
        max-lease-time 43200;
      }
} 

Waiting for any suggestions...
thanks

Unfortunately, I currently don't have a working DHCP server to play with. However, I think you are close, but I don't think you can mix "class" and "subclass" identifiers.

Perhaps another expert will chip in here.

I managed to do it finally. Here is the working conf. for such an issue...

<<dhcpd.conf>>

ddns-update-style none;
ignore client-updates;


subnet 0.0.0.0 netmask 0.0.0.0 {
               


        option mobile-ip-home-agent 10.0.3.254;
                
        option domain-name              "abc.net.tr";
        option domain-name-servers      195.175.39.39;
                
                
class "erkan" {
        match option dhcp-client-identifier;
        lease limit 2;
       }
subclass "aaaa" 1:00:12:cf:89:61:76; 
subclass "aaaa" 1:00:19:cb:73:e0:06;
        
        pool {
    
    option subnet-mask 255.255.255.0;
        option broadcast-address 10.0.1.255;
        option routers 10.0.1.254;

        allow members of "aaaa";
        
    default-lease-time 21600;
        max-lease-time 43200;
                range 10.0.1.10 10.0.1.100;

    
        }

    pool {

        option routers                  10.0.4.254;
    option broadcast-address        10.0.4.255;
        option subnet-mask              255.255.255.0;

    range dynamic-bootp 10.0.4.10 10.0.4.100;

        default-lease-time 21600;
        max-lease-time 43200;


    }