如何将DHCP池或子网与类的声明相关联

我有ISC DHCP服务器4.1.1的以下工作configuration,它将固定地址发送到注册的客户端。 其中一些客户端configuration为PXE引导(对于FAI和SCCM )。

# General declarations authoritative; option domain-name "department.example.edu"; option domain-name-servers 8.8.8.8, 8.8.4.4; default-lease-time 86400; class "fai" { match hardware; next-server fai.department.example.edu; filename "fai/pxelinux.0"; } class "sccm" { match hardware; next-server sccm.department.example.edu; filename "sccm/pxelinux.0"; } # Public network (one of many). # Ethernet outlets are in public areas. By policy we require users to # register their MAC addresses, and clients obtain fixed addresses. subnet 10.20.0.0 netmask 255.255.0.0 { option subnet-mask 255.255.0.0; option broadcast-address 10.20.255.255; option routers 10.20.0.1; } # Three of many hosts registered for fixed address assignments in the public network host host1.department.example.edu { hardware ethernet ca:fe:ba:be:00:01; fixed-address 10.20.1.1; } host linux2.department.example.edu { hardware ethernet ca:fe:ba:be:00:02; fixed-address 10.20.1.2; } subclass "fai" 1:ca:fe:ba:be:00:02; host windows3.department.example.edu { hardware ethernet ca:fe:ba:be:00:03; fixed-address 10.20.1.3; } subclass "sccm" 1:ca:fe:ba:be:00:03; 

现在,我想添加对另一个子网的支持,我们将把一个池中的dynamic地址分配给任何DHCP客户端(因为该VLAN上的所有以太网出口位于安全位置的IT工作台上)。 问题是, 如何将现有的SCCM声明作为IT工作台的默认设置?

 # New IT workbench subnet. I'd like the "sccm" settings to be the default # for this subnet. # # The VLAN only has outlets in a secure location, so MAC address registration # is not necessary. subnet 192.168.1.0 netmask 255.255.255.0 { option subnet-mask 255.255.255.0; option broadcast-address 192.168.1.255; option routers 192.168.1.1; pool { range 192.168.1.2 192.168.1.254; # Point A: what declarations to put here, if anything? } # Point B: what declarations to put here, if anything? } # Point C: what declarations to put here, if anything? 

从概念上讲,我可以写在B点

  next-server sccm.department.example.edu; filename "sccm/pxelinux.0"; 

但那会重演我自己。 如果可能的话,我希望将子网与现有的"sccm"类关联起来。 我能写些什么才能起到效果?

  subclass "sccm" "anything-in-192.168.1.0/24"; 

(我不需要使用SCCM声明的类,如果一个组或其他机制有效,那也可以。)