用dhcp-client-identifier控制dhcp分配地址

dns-update-style none;
subnet 192.168.1.0 netmask 255.255.255.0 {
    option routers                192.168.1.102;
    option subnet-mask            255.255.255.0;
    option nis-domain             "domain.org";
    option domain-name            "domain.org";
    option domain-name-servers    192.168.1.102;
    option time-offset            -18000;
    default-lease-time            21600;
    max-lease-time                43200;
    class "vms" {
        # XenSource, Inc. and VMware, Inc. network cards
        match if (substring (pick-first-value (option dhcp-client-identifier, hardware), 0, 4) = 1:00:16:3E)
            or (substring (pick-first-value (option dhcp-client-identifier, hardware), 0, 4) = 1:00:0C:29)
            or (substring (pick-first-value (option dhcp-client-identifier, hardware), 0, 4) = 1:00:50:56)
            or (substring (pick-first-value (option dhcp-client-identifier, hardware), 0, 4) = 1:00:05:69);
            # match pick-first-value (option dhcp-client-identifier, hardware);
        }
        # subclass "myvms" 1:00:16:3E:00:00:11;
        pool {
            allow members of "vms";
            range dynamic-bootp 192.168.1.128 192.168.1.138;
        }
}